can someone help me rq, whenever I press on the sword and the sword touches the part its supposed to fire the event at, it keep firing and dont stop after one m1
Tool.Activated:Connect(function()
if db == false then
db = true
wait(.4)
hitbox.Touched:Connect(function(hit)
print(hit)
if hit == "Training Log" then
print("worked")
SwordTool:FireServer()
game.Players.LocalPlayer:WaitForChild("leaderstats"):WaitForChild("Clicks").Value = plr:FindFirstChild("leaderstats").Clicks.Value + 5 -- adding one every time
else
-- this is for sword image and the CLicks +
SwordTool:FireServer() -- make this fire a different event
game.Players.LocalPlayer:WaitForChild("leaderstats"):WaitForChild("Clicks").Value = plr:FindFirstChild("leaderstats").Clicks.Value + 1 -- adding one every time
print("No")
end
end)```
** You are now Level 6! **