How would i fix this when there are no errors in the dev console? [closed]
I Have A Damage Script Inside Of A Part That Is Set To 0.2 Transparency By Another Script, The Code For The Damage Script:
2 | script.Parent.Touched:connect( function (part) |
3 | if game.Players:FindFirstChild(part.Parent.Name) and script.Parent.Transparency = = 0.2 and cooldown = = true then |
5 | part.Parent.Humanoid.Health = part.Parent.Humanoid.Health -math.random( 180000 , 255000 ) |
for some reason this does not work and i don't understand why. There are no errors in the dev console. However, the same script without a cooldown and transparency check works just fine
Working Script:
1 | script.Parent.Touched:connect( function (part) |
2 | if game.Players:FindFirstChild(part.Parent.Name) then |
3 | part.Parent.Humanoid.Health = part.Parent.Humanoid.Health - math.random( 180000 , 255000 ) |
Anyone know why the first script won't work?
Locked by User#24403
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?