OK so MY game works pretty well, keep in mind im new to scripting. theres multiple maps and every map is chosen randomly. then when players are tped onto the map a random tool aka weapon gets chosen and puts it in the players backpack. now the sword and meelee items work great, like the energy sword, but a few of the guns like the laser gun and tommy gun and the knife have issues. basically when the weapon is chosen it equips it on the player immediatly and it shows that you dont have that weapon in your hands or physically. then if u click it disapears. now I did try to reequip the tool and the item did work then its something about when it starts like idk. ALSO keep in mind these gears are imported directly from the roblox avatar shop/catalog. so these are roblox's models or tools. this is really weird can someone help? I would appreciate it.
this is the local script in the laser gun and only a part of it that I think it may have something to do.
function Equipped(Mouse)
Character = Tool.Parent
Player = Players:GetPlayerFromCharacter(Character)
Humanoid = Character:FindFirstChild("Humanoid")
if not CheckIfAlive() then
return
end
PlayerMouse = Player:GetMouse()
Mouse.Button1Down:connect(function()
InvokeServer("MouseClick", {Down = true})
end)
Mouse.Button1Up:connect(function()
InvokeServer("MouseClick", {Down = false})
end)
Mouse.KeyDown:connect(function(Key)
InvokeServer("KeyPress", {Key = Key, Down = true})
end)
Mouse.KeyUp:connect(function(Key)
InvokeServer("KeyPress", {Key = Key, Down = false})
end)
end
function Unequipped()
for i, v in pairs(Animations) do
if v and v.AnimationTrack then
v.AnimationTrack:Stop()
end
end
Animations = {}
end
Tool.Equipped:connect(Equipped)
Tool.Unequipped:connect(Unequipped)

3 comments
Let us see the script...
i think this is this script
it might fall throughbt he void before being in the backpack