So I am trying to make a positioning script and the positioning wont even work. I keep on getting this error that I don't understand it say it expects ')' but I don't know where to put it. I get this error on line 18 but it says at column 65, I dont know what that is. Btw Im trying to position a model on a player
here is my script
local Lighting = game.Lighting
local Vest = Lighting:WaitForChild("Flak Jacket")
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:connect(function(character)
character:WaitForChild("UpperTorso")
local ClonedVest = Vest:Clone()
ClonedVest.Parent = character
ClonedVest:SetPrimaryPartCFrame(character:WaitForChild("UpperTorso"))
local Weld = Instance.new("Weld")
Weld.Part0 = ClonedVest.Main
Weld.Part1 = character:WaitForChild("UpperTorso")
Weld.Parent = character:WaitForChild("UpperTorso")
Vest:SetPrimaryPartCFrame(Vest:GetPrimaryPartCFrame() * (0,0,5))
end)
end)

4 comments
I did just that and nothing happened
That is because you are changing the Vest when you should be changing the ClonedVest.
the output says "Unable to cast Instance to CoordinateFrame"
Which line is the error occuring?