game.Players.PlayerAdded:Connect(function(player) -- This line will make sure LocalPlayer(s) spawn. player.CharacterAdded:Connect(function(character) character:WaitForChild("HumanoidRootPart") local attachment0 = Instance.new("Attachment") -- Attachments are used for other stuff, too. attachment0.Parent = character.HumanoidRootPart attachment0.Position = Vector3.new(1, 0, 0) -- (X, Y, Z) local attachment1 = Instance.new("Attachment") attachment1.Parent = character.HumanoidRootPart attachment1.Position = Vector3.new(-1, 0, 0) local UselessTrail = Instance.new("Trail") -- This line makes a trail. UselessTrail.Parent = game.ServerStorage -- Use game.ServerStorage for proper reference. local UsefulTrail = UselessTrail:Clone() -- This one makes UselessTrail look Useful. UsefulTrail.Parent = character UsefulTrail.Attachment0 = attachment0 -- This is necessary. UsefulTrail.Attachment1 = attachment1 end) end)
Your AddCharacter function needs a closing paren ")" after the "end".
game.Players.PlayerAdded:Connect(function(player)
-- This line will make sure LocalPlayer(s) spawn.
player.CharacterAdded:Connect(function(character)
character:WaitForChild("HumanoidRootPart")
local attachment0 = Instance.new("Attachment")
-- Attachments are used for other stuff, too.
attachment0.Parent = character.HumanoidRootPart
attachment0.Position = Vector3.new(1, 0, 0) -- (X, Y, Z)
local attachment1 = Instance.new("Attachment")
attachment1.Parent = character.HumanoidRootPart
attachment1.Position = Vector3.new(-1, 0, 0)
local UselessTrail = Instance.new("Trail") -- This line makes a trail.
UselessTrail.Parent = game.ServerStorage -- Use game.ServerStorage for proper reference.
local UsefulTrail = UselessTrail:Clone() -- This one makes UselessTrail look Useful.
UsefulTrail.Parent = character
UsefulTrail.Attachment0 = attachment0 -- This is necessary.
UsefulTrail.Attachment1 = attachment1
end)
end)
Fixed
@@Kaizo_very i can't even you but thx
1:17 only Work in Published game, not studio lite
@@Kaizo_very ik already