I made a code but it's not working. There's a place in the studio which has the cancollide property false.I added this script in but it's not working.How can I make it work?It works in Studio but not in Player
function onTouched(part)
if part.Parent ~= nil then
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil then
if (h.Parent.Torso.Velocity.y < 44) then
h.Parent.Torso.Velocity=Vector3.new(0,h.Parent.Torso.Velocity.y+25,0)
end
end
end
end
script.Parent.Touched:connect(onTouched)

2 comments
It should work fine if I read it, but what is it doing - or even: what is it not doing? Also, check the output for any error messages. I just came back from a very long break, so my knowledge might be very rusty.
I edited the question