So I have this script
local Nuber = 20 local NuberGoal = 21 wait(1) if Nuber > NuberGoal then script.Parent.CanCollide = false else script.Parent.CanCollide = true end
And I want it to change the Nuber > NuberGoal
part to something along the lines of when someone touches it from a certain direction it turns off CanCollide. Can someone help me?
put a hit function in there somewhere, you want it to be a touch, right?
script.Parent.Touched:connect( function(hit) --code end)
I'm basic, my mind is simplicity, but at the same time,t his might help a lot.