Hello!
So I was making a very simple script that actually always worked back then… I tried it now and the JumpPower part of the script does not work, only the WalkSpeed… What happened? How do I make the entire script work. FYI, nothing is displayed in the output. Here is the code I tried:
script.Parent.Touched:Connect(function(part)
if part.Parent:FindFirstChild("Humanoid") then
part.Parent.Humanoid.WalkSpeed = 100
part.Parent.Humanoid.JumpPower = 0
end
end)
script.Parent.Touched:Connect(function(part)
if part.Parent:FindFirstChild("Humanoid") then
part.Parent.Humanoid.WalkSpeed = 100
part.Parent.Humanoid.UseJumpPower = true
part.Parent.Humanoid.JumpPower = 0
end
end)