This is a server script in serverscript service
game.Players.PlayerAdded:Connect(function(plr)
if plr.StarterPack:FindFirstChild("ClassicSword")
then
plr.Character.Humanoid.JumpPower = plr.Character.Humanoid.JumpPower + 99999
end
end)
This is a server script in serverscript service
game.Players.PlayerAdded:Connect(function(plr)
if plr.StarterPack:FindFirstChild("ClassicSword")
then
plr.Character.Humanoid.JumpPower = plr.Character.Humanoid.JumpPower + 99999
end
end)
Its because StarterPack is not in the player. Instead, it should say Backpack. Try this:
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(character) -- Waits for the character to load and fires whenever the character loads
if plr:WaitForChild("Backpack"):FindFirstChild("ClassicSword") then
plr.Character.Humanoid.JumpPower = plr.Character.Humanoid.JumpPower + 99999
end
end
end)
Thx it worked
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
try putting it in starter player scripts
ok ill try
Sorry it didn't work