Hello people!,
I have this local Script and script here I have set it up so that when the tool is equipped and the player clicks it is suppose to Fire a remote event and to print “a” but I have this problem where by when I unequipped it still prints “a”
here is the local script
local Lp = game.Players.LocalPlayer
local Mouse = Lp:GetMouse()
local Tool = script.Parent
local Fire = Tool.Fire
local Shoot = true
Tool.Equipped:Connect(function()
Mouse.Button1Up:Connect(function()
Fire:FireServer()
wait(1)
end)
end)
here is the normal script
local Tool = script.Parent
local Fire = Tool.Fire
Fire.OnServerEvent:Connect(function(plr)
if Tool.Equipped then
print("a")
end
end)
any help is appreciated!