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

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

Asked by
linx45 -1
7 years ago

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

0
Btw here is the link to the Forum post on Roblox https://forum.roblox.com/Forum/ShowPost.aspx?PostID=219491006 linx45 -1 — 7y
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. moncefci3 -3 — 7y
0
XD Thanks for respoding But i was asking how i can make it for one player linx45 -1 — 7y
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. ImNotACat6 0 — 7y

2 answers

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

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)
0
I never tested this script, hope it works PhoenixVortex_RBLX 33 — 7y
0
if not then here, learn from this video https://www.youtube.com/watch?v=ofx0wmGV-LY PhoenixVortex_RBLX 33 — 7y
0
Im sorry to say this but Alvin Blox's Tutorial Did not Work he didnt even answer my question's linx45 -1 — 7y
0
moving it doesnt effect anything moncefci3 -3 — 7y
0
where did you put the script? PhoenixVortex_RBLX 33 — 7y
Ad
Log in to vote
0
Answered by 7 years ago
Edited 7 years ago
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)
0
moncefci3 That script does not work im not even sure im doing this right XD linx45 -1 — 7y
0
did you change "your username"? moncefci3 -3 — 7y
0
Yes Yes I did linx45 -1 — 7y
0
place the trail on server storage and name it the exact caps and everything moncefci3 -3 — 7y

Answer this question