#My code isnt lasting forever
1 messages · Page 1 of 1 (latest)
while true do
HOw do i use it
while true do
(script here)
end
this is really unnecessary code that can be done in a few seconds
yeah
but it works
How do i fix it
is this just copy and pasted ??
Yea
probably
do somethin like uhhhh
tweenservice
yea
but its advanced
How do i tweenservice
nah dont mind about it
k
hard to learn
local TS=game:GetService("TweenService")
while task.wait() do
TS:Create(workspace.Part, TweenInfo.new(1), {Transparency=1}):Play()
task.wait(1)
TS:Create(workspace.Part, TweenInfo.new(1), {Transparency=0}):Play()
end```
tweening isnt rlly that advanced
pretty simple
@fringe path consider watching brawldev beginner and advanced tutorials if you're serious about scripting.
** You are now Level 26! **
now this is like 100x better because it causes way way way less lag
you're calling tweenservice:Create, every frame. lol
no because the server only has to read 3 lines of code
** You are now Level 1! **
lines of code dont affect performance
you could just do 1k lines of code and Roblox can still handle it if you dont call them everytime
use tween service
I have it
is it solved?
ah there u go!
Thx