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

How to change the transparency of a trail?

Asked by
zomspi 541 Moderation Voter
4 years ago

This is what I have:

player.Character.HumanoidRootPart:FindFirstChild("Streak").Transparency = NumberSequence.new(0.5)

Thanks!

1
That is the right way to change the transparency of a trail to 0.5 Nanomatics 1160 — 4y
0
You're changing it correctly, what errors are you getting? bum5Br 97 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

I am new to scripting so idk if this will work but its worth a shot.

trail = player.Character.HumanoidRootPart:FindFirstChild("Streak")
trail.transparency = NumberSequence.new(0.5)
0
Thanks, but that is my exact script just re-worded, thanks anyway though! zomspi 541 — 4y
0
That doesn't mean it won't work. I would still try it as I don't believe you can change properties of a FindFirstChild if it isn't in a variable. I may be wrong but it could still work. Dreadd15 4 — 4y
0
A variable is something just simplified, example: trail == player.Character.HumanoidRootPart:FindFirstChild("Streak"), trail means the exact same thing as that long string, but it is just simplified, that's what a variable means zomspi 541 — 4y
Ad

Answer this question