Okay guys I have this little trail script, what I want is when the player jump, the trails the trails enable the time of the jump
Here is the scripts:
game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(char) local trail = game.ServerStorage.Trail:Clone() trail.Prent = char.Head local attachmnt0 = Instance.new("Attachment,char.Head) attachment0.Name= "TrailAttachment0" local attachment1 = Instance.newAttachment,char.HumanodRootPartattachment1.Name = "TrailAttachment1" trail.Attachment0 = attachment0 trail.Attachment1 attachment1 end) end) How can i add a disable/enable function to a script?

1 comment
Don't come on this site with alvinbloxx's code, expecting for it to be fixed. There also isn't an attempt at disabling/enabling it.