Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to fix a lagging script?

**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 (:

2 comments

0

Thank's i'll look into that.

0

Okay.

2 answers

That shouldn't cause lag..

4 comments

0

When i have the block and i the part that deletes the block hit's it.. It takes awhile to disappear

0

That is likely due to the scripts you've got in your game, scripts almost instantly check and react to values..

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

0

It's likely a laggy connection speed. No other possibility really.

This discussion is preserved as it was. New answers, comments, and votes are closed.