Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to fix a lagging script?

Asked by 10 years ago

**Hello, I have this script i created, I use it for a snow removal game, But it seems the script lags.. ** any ideas to edit the script?

fuction onTouched(Hit)
if Hit.Name == "Snow" then
Hit:Destroy()
end
end
script.Parent.Touched:connect(onTouched)

print 'Script Created By Dogboy12ss (:'

Thanks, Dogboy12ss (:

0
Thank's i'll look into that. OshkoshTrucks 0 — 10y
0
Okay. Roboy5857 20 — 10y

2 answers

Log in to vote
2
Answered by
Mazux 140
10 years ago

That shouldn't cause lag..

0
When i have the block and i the part that deletes the block hit's it.. It takes awhile to disappear OshkoshTrucks 0 — 10y
0
That is likely due to the scripts you've got in your game, scripts almost instantly check and react to values.. Mazux 140 — 10y
0
I have 2 scripts other then the main script we are talking about, That would be Kohl's admin and a custom script my friend has made OshkoshTrucks 0 — 10y
0
It's likely a laggy connection speed. No other possibility really. Mazux 140 — 10y
Ad
Log in to vote
-2
Answered by 10 years ago

I'm not sure but, Check Line 7

Answer this question