LOCAL SCRIPT For the past few days, I've been widely stuck and confused on how to get my trail to the player's character.

StarterGui TrailGUI Button - To open the GUI (works) Main - Gui that Opens Rainbow - To label (organazation) Enable - Enable Button SCRIPT - X, Not working script.

local player = game.Players.LocalPlayer

script.Parent.MouseButton1Down:connect(function()
	local plrTrail = script.Trail:Clone()
	wait(5)
		plrTrail.Parent = player.Character.HumanoidRootPart
if player ~= nil then
	if player.Character.Humanoid.Health== 0
	then
		plrTrail.Parent = player.Character.HumanoidRootPart
		wait(2)
			plrTrail.Attachment1 = player.Character.Torso.WaistBackAttachment
		else
			plrTrail.Attachment1 = player.Character.Torso.WaistBackAttachment
			end
end
end)

2 comments

0

I'd recommend cloning on the server via RemoteEvent as the changes will only be visible to the client. Also, connect is deprecated use Connect.

0

You can't use Torso attachments. Make attachments on your own thats why it won't work!