I honestly don't know how to make this work with FE on. If no one can help me, I guess I'll have to make my game non-FE. I'd really appreciate it, if you could tell me how to make this script work with FE:
Tool = script.Parent
Light = script.Parent.Light
Lightsaber = hashtags
canDamage = script.Parent.canDamage
debounce = false
cooldown = 1
Player = game:GetService("Players").LocalPlayer
Tool.Equipped:connect(function(mouse)
mouse.Button1Down:connect(function()
Light.Touched:connect(function(hit)
if hit.Parent:FindFirstChild('Humanoid') and not debounce then
if canDamage.Value == true then debounce = true
hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 5
wait(2)
debounce = false
else
canDamage.Value = false
wait(cooldown)
end
end
end)
end)
end) |