I create a part, if players touch it, they will be push to the sky but it doesn't work when i set Cancollide = false, how can i fix that ? This is my script
1 | script.Parent.Touched:Connect( function (hit) |
2 | local hum = hit.Parent:FindFirstChild( "Humanoid" ) |
3 | if hum ~ = nil then |
4 | script.Parent.Velocity = Vector 3. new( 0 , 100 , 0 ) |
5 | end |
6 | end ) |
Sorry if it's too confusing, my english is not good
1 | Should be like this because then it make the hit object go upwards hope this helps |
2 |
3 | script.Parent.Touched:Connect( function (hit) |
4 | local hum = hit.Parent:FindFirstChild( "Humanoid" ) |
5 | if hum ~ = nil then |
6 | hit.Velocity = Vector 3. new( 0 , 100 , 0 ) |
7 | end |
8 | end ) |