game.Workspace.Sand.Touched:Connect(function(Object)
if Object.Parent:FindFirstChild("Humanoid") then
GravityController:Destroy()
end
end)
Would this delete the script if I were to touch the sand? I want this only to happen locally.
game.Workspace.Sand.Touched:Connect(function(Object)
if Object.Parent:FindFirstChild("Humanoid") then
GravityController:Destroy()
end
end)
Would this delete the script if I were to touch the sand? I want this only to happen locally.
This discussion is preserved as it was. New answers, comments, and votes are closed.
5 comments
local script and thats it
i think
Was GravityController defined in a variable? If not then use script:Destroy. To make it local use a localscript.
so instead of GravityController:Destroy() use script.GravityController:Destroy()?
For some reason in the output it says Sand is not a valid member of workspace even though it is a part