so uhhh for some reason the script wont stop going after the remoteevent gets triggered
local script
local PlayerL = PlayerS.LocalPlayer
local Claymore = script.Parent
local Sword = Claymore.Handle
local CRE = script.ClickRE
Claymore.Activated:Connect(function()
local Debounce = false
Debounce = true
Sword.Touched:Connect(function(Hit)
if Hit then
local HitHumanoidH = Hit.Parent:FindFirstChild("Humanoid")
CRE:FireServer(HitHumanoidH)
end
end)
wait(0.5)
Debounce = false
end)```
# script (bugged)
```local Claymore = script.Parent
local Sword = Claymore.Handle
local CRE = Claymore.ClickLS.ClickRE
CRE.OnServerEvent:Connect(function(Player, HitHumanoidH)
local Debounce = false
Debounce = true
Sword.Touched:Connect(function()
if HitHumanoidH then
if HitHumanoidH then
print(1)
end
end
end)
wait(0.5)
Debounce = false
end)```
im trying to make a script for a sword from scratch and, uhh... yeah. this happens
** You are now Level 4! **