I am testing things on studio and I test to make one kill effect script for my tool (its not local script)
and the script looks like this:
local killThing = game.ReplicatedStorage.TestEffect
tool.Blade.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Humanoid.Health <= 0 then
print("dead")
killThing:Clone()
KillEffect.Parent = hit.Parent
end
end)
It prints(“dead”) but doesnt change the KillEffect Parent.
Any Idea?