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

How do I change script to use on other players?

Asked by 6 years ago
Edited 6 years ago

1st script:

--how to hammer 101 this only works for city life--
plr = "yournamehere" --player to give tool to


plr = game:GetService'Players'[plr]
game:GetService'ReplicatedStorage'.ITEM_PURCHASE:InvokeServer('meme', '7', '1055299')
lp = game:GetService'Players'.LocalPlayer
hat = lp.Character:WaitForChild'meme'
hammer = hat.GravityHammer
hammer.Parent = lp:FindFirstChildOfClass'Backpack'
--DIRTY HACKS TO PARENT HAT/TOOLS WITH REPLICATION ON FE--
hat.Parent = nil
hammer.Parent = lp.Character
game:GetService'RunService'.Stepped:wait()
hammer.Parent = plr.Character
for i = 1,3 do
local lol = lp:FindFirstChildOfClass'Backpack':FindFirstChildOfClass'HopperBin'
if lol:FindFirstChild'LocalScript' then lol:Destroy() end
end

2nd Script:

local plr = game:GetService("Players").LocalPlayer
while true do
wait()
spawn(function()
game.ReplicatedStorage.Remotes.Training.Blast:InvokeServer({Energy = {Value = 999999999999}}, game.Players.LocalPlayer.Stats, game.Players.LocalPlayer.Character.HumanoidRootPart, game.Players.LocalPlayer.Character.RightHand, game.Players.LocalPlayer.Character)
end)
spawn(function()
game.ReplicatedStorage.Remotes.Training.Combat:InvokeServer(game.Players.LocalPlayer.Stats, {Humanoid = game.Players.LocalPlayer.Character.Humanoid})
end)
spawn(function()
game.ReplicatedStorage.Remotes.Training.Defense:InvokeServer(plr.Stats, plr.Status, plr.Character.Humanoid, plr.Character.RightHand)
end)
game.ReplicatedStorage.Remotes.Training.Agility:FireServer(game.Players.LocalPlayer.Stats)
end

Basicly I want the 2nd Script to be changed so I can use it on another player like the first script. Doesnt need to have the exact type of coding but similar.

Answer this question