Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

This trampoline works in solo but not in team testing?

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)

1 comment

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!

1 answer

✓ Accepted answer

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)

2 comments

0

Thanks! This helped us so much and it's much simpler than the other two codes we tried!

0

Np :)

This discussion is preserved as it was. New answers, comments, and votes are closed.