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

Why isn't the script not working, Is it the way I stored the players variable?

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)

3 comments

0

try putting it in starter player scripts

0

ok ill try

0

Sorry it didn't work

1 answer

✓ Accepted answer

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)

1 comment

0

Thx it worked

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