How can I make this touched function work in normal servers? There are two simple scripts: One script is located in ServerScriptService which creates the falling parts, and it inserts the second script into each part. The second script is located in ServerStorage, and it has a simple onTouched function:
script.Parent.Touched:connect(function(hit)
if hit.Anchored then
script.Parent.Anchored = true
script.Parent.RotVelocity = Vector3.new(0, 0, 0)
script:Destroy()
end
end)
All the scripts function great when I play in Roblox Studio. Here is a GIF showing how it is suppose to work: http://www.giphy.com/gifs/3oz8xXd07rTffQokEw However, when I play in a server, some parts anchor mid air, and sometimes the touched script does not change the RotVelocity to (0, 0, 0). Here is another GIF illustrating how messed up the game is: http://www.giphy.com/gifs/l0HluLPMclF5GTOOk Why is this happening? Is there a way to make it work like when I play in Roblox Studio? Thank you for reading this!

1 comment
Did you watch the GIFs? It works normally in Roblox Studio, so that is not the problem. I think it is the touch script functions slow. Thanks for trying though! I upvoted. ;3