How to fix this trail from appearing to random people?

So I have a trail gamepass where if you buy the gamepass a trail will appear behind your character in-game when you walk, like this:

Screenshot_20

Now for some reason (sometimes, not always), the trail appears behind other players when they reset/respawn for a few seconds, and then it goes away, what could be the reason for this happening and how do I prevent it from happening so that only the people with the gamepass can have the trail appear behind them?

Here is a picture of the scripts (I put them in ServerScriptService):
Screenshot_15

Trail script:
Screenshot_16

TrailGamepass script:

The trail itself is in ServerStorage:
Screenshot_18

Trail properties:

Please explain thoroughly as Iā€™m not a good scripter.

Try setting trail.Enabled to false by default.

1 Like