Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

This trampoline works in solo but not in team testing?

Asked by 7 years ago

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)
0
Try just using velocity setting(I think that's the name) for the trampoline. It's under properties and it worked for my trampoline game. Hope this helps! camxd01 48 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

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)
0
Thanks! This helped us so much and it's much simpler than the other two codes we tried! kakikito123 4 — 7y
0
Np :) GimmeWaffleBruh 18 — 7y
Ad

Answer this question