First of all I want to say that I used two codes and both of them don't work in team test but do in solo. Both do the same function but written differently. My partner and I believe it's roblox updates but are not sure.. Please help.
script.Parent.Touched:connect(function(dood) if dood.Parent and dood.Parent:FindFirstChild("Humanoid") then dood.Parent.Torso.Velocity = Vector3.new(0,250,0) end end)
And
v = 250 function onTouched(part) if part.Parent ~= nil then local h = part.Parent:findFirstChild("Humanoid") if h~=nil then h.Parent.Torso.Velocity=Vector3.new(0,v,0) wait(0.5) end end end script.Parent.Touched:connect(onTouched)
This will be 500x easier
function c(hit) hit.Parent.Humanoid.JumpPower = 200 hit.Parent.Humanoid.Jump = true wait(1) hit.Parent.Humanoid.JumpPower = 50 end script.Parent.Touched:Connect(c)