So i have been Trying To Figure Out How i Can make a script for my trail object so that it appears for a player that might have bought a gamepass? or just in general for the creator's of that game. Here is what i have so far and i did have iLordOfAviation Help me with it but what he said didnt help much XD
game.Players.PlayerAdded:Connect(function(player) if player.Name == "your username" then local Trail =game.ServerStorage["Rainbow Trail"] game.Players.PlayerAdded:Connect(function(plr) plr.CharacterAdded:Connect(function(char) local plrTrail = Trail:Clone() plrTrail.Parent = char.Torso plrTrail.Attachment0 = char.Head.FaceFrontAttachment plrTrail.Attachment1 = char.Torso.WaistBackAttachment end end)
I Doubt this was Good Information XD Sorry if i messed up
I think you should move over Rainbow Trial to ReplicatedStorage
game.Players.PlayerAdded:Connect(function(player) if player.Name == "your Name" then local Trail =game.ReplicatedStorage["Rainbow Trail"] game.Players.PlayerAdded:Connect(function(plr) plr.CharacterAdded:Connect(function(char) local plrTrail = Trail:Clone() plrTrail.Parent = char.Torso plrTrail.Attachment0 = char.Head.FaceFrontAttachment plrTrail.Attachment1 = char.Torso.WaistBackAttachment end end)
local Trail = game.ServerStorage["Rainbow Trail"] game.Players.PlayerAdded:Connect(function(plr) plr.CharacterAdded:Connect(function(char) if plr.Name == "your username" then local plrTrail = Trail:Clone() plrTrail.Parent = char.HumanoidRootPart if char:FindFirstChild("UpperTorso") then plrTrail.Attachment0 = char.Head.FaceFrontAttachment plrTrail.Attachment1 = char.Torso.RootRigAttachment else plrTrail.Attachment0 = char.Head.FaceFrontAttachment plrTrail.Attachment1 = char.Torso.WaistBackAttachment end end) local character = script.Parent.Parent.Parent end)