Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Making a Trail Appear on a Certain Player, is it possible?

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

4 comments

0

Btw here is the link to the Forum post on Roblox https://forum.roblox.com/Forum/ShowPost.aspx?PostID=219491006

0

Dude use a free model just type trail find rainbow trail and there you go i just saw it earlier, i'm sure its working, try to learn how it works and there you go you can do that too, hope this helped a bit.

0

XD Thanks for respoding But i was asking how i can make it for one player

0

If you're trying to use a Gamepass, then this might possibly help: http://wiki.roblox.com/index.php?title=Game_pass . Then again, it might not.

2 answers

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)

5 comments

0

I never tested this script, hope it works

0

if not then here, learn from this video https://www.youtube.com/watch?v=ofx0wmGV-LY

0

Im sorry to say this but Alvin Blox's Tutorial Did not Work he didnt even answer my question's

0

moving it doesnt effect anything

0

where did you put the script?

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)

4 comments

0

moncefci3 That script does not work im not even sure im doing this right XD

0

did you change "your username"?

0

Yes Yes I did

0

place the trail on server storage and name it the exact caps and everything

This discussion is preserved as it was. New answers, comments, and votes are closed.