Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How I make burn trail to be enabled/disabled when blade is activated or not?

Asked by 6 years ago

trail = script.Parent.burntrail

script.Parent.Touched:connect(function(hit) if hit:FindFirstChild("Burn") ~= nil then local Burn = hit.Burn if Burn.Value == true then print("Is on!") trail.Disabled = false else local Burn = hit.Burn if Burn.Value == false then print("Is off!") trail.Disabled = true end end end end)

Answer this question