player=game.Players.LocalPlayer
y = 1
x = game.ServerStorage["Baton"]:Clone();
game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.E then
if y == 1 then
player:EquipTool(x)
y = 2
elseif y == 2 then
player:UnequipTools()
y = 1
end
end
end)
w = game.ServerStorage["BillyClubRiotShield"]:Clone();
game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.Q then
if y == 1 then
player:EquipTool(w)
y = 2
elseif y == 2 then
player:UnequipTools()
y = 1
end
end
end)
nothing that i do is working please help this worked on serverscript service then i changed it to a localscript and it broke
