Hey there,
So i’ve made this script that when the event is fired it clones a Particle into wherever it hits and I’m trying to make a GUI when pressed on/off if off the Particles should be disabled.
Fire Script:
hurt = true -- Damage
for _, child in pairs(wep:GetChildren()) do
if child:IsA("Part") then
child.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") ~= nil and hurt == true then
soundsclone.Hit:Play()
hit.Parent:FindFirstChild("Humanoid"):TakeDamage(25)
hurt = false
Bleed:Fire(hit)
Listener Script:
Bleed.Event:Connect(function(hit)
local bloodclone = blood:Clone()
bloodclone.Parent = hit print(hit)
bloodclone.Enabled = true
wait(.35)
bloodclone:Destroy()
end)
Thanks to anyone who can guide/help me,
