Hi. I am having trouble scripting my game, and im trying to make a conditional kill script that is called on-touch of an object when the transparency of "Shot" is 0.9. I have this script currently, and it doesnt work...
if game.workspace.Shot.Transparency == 0.9 then
script.Parent.Parent.Parent.FieldOfDeath.Touched:connect(function(hit)
if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid.Health = 0
end
end)
end

1 comment
mabye capatilize workspace is line 4? I posted here because i wasn't sure if you would get the notification or not.