Im trying to make a script that clones an accessory and puts it in a player uppon joining the server.
But the problem is a error that appears in my script:
Players = game:GetService("Players") Players.PlayerAdded:Connect(function(Player) Player.CharacterAdded:Connect(function(Character) print("Sword Added") local Character = Player.Character or Player.CharacterAdded:Wait() local GrandSword = game:GetService("ReplicatedStorage").GrandSword:Clone() GrandSword.Parent = Character local Weld = Instance.new("Weld") Weld.Parent = GrandSword Weld.Part0 = GrandSword.Handle Weld.Part1 = Character.Torso Weld.C0 = CFrame.new(-3.7,0,-.6) * CFrame.Angles(0, math.rad(-44.5), 0) end) end)
The error: ServerScriptService.Script:13: Expected ')' (to close '(' at column 64), got '?'
In my eyes every "(" that has been opened has been closed already so idk, help?
Try using script analysis and click the errors, it will show you exactly where it is
The problem was in a wrong character.Looks like there was a character in the line 13 that looked like the character i wanted but it wasnt actually the character i wanted.