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.

5 comments

0

local script and thats it

0

i think

0

Was GravityController defined in a variable? If not then use script:Destroy. To make it local use a localscript.

0

so instead of GravityController:Destroy() use script.GravityController:Destroy()?

0

For some reason in the output it says Sand is not a valid member of workspace even though it is a part