Hello. Im making a tool that spawns a bomb when you activate it, but for some reason the localscript gives 2 tools and when i activate it nothing happens, nothing prints. Any help is appreciated. Thank you.
localscript code:
local tool = Instance.new("Tool", game.Players.LocalPlayer.Backpack)
tool.Activated:Connect(function()
print("worked")
game.Workspace.bombsummon:Fireserver()
end)
Is bombsummon a RemoteEvent? If so it goes in the ReplicatedStorage and you would have to say:
game.ReplicatedStorage.bombsummon:FireServer() instead of game.Workspace.bombsummon:FireServer()
I changed the parent to ReplicatedStorage, but it still doesnt work. It seems that the problem is that it does not detect when i activate the tool properly. Also it gives me 2 tools for some reason.