I've tried to reformat the script so it would work but I still have no luck, I'm trying to make a script the teleports a player to a certain location if they're on Red Team but to different coordinates if they're on Blue Team, any suggestions? function Click() This is where the error is V if script.Parent.MouseButtonDown:connect(Click) and player.team = BrickColor.Red then script.Parent.Parent.Parent.Parent.Character.HumanoidRootPart.CFrame = CFrame.new(-13.2, 0.5, -35.27)
else if script.Parent.MouseButtonDown:connect(Click) and player.team = BrickColor.Blue script.Parent.Parent.Parent.Parent.Character.HumanoidRootPart.CFrame = CFrame.new(-13.2, 0.5, -35.27) end end

3 comments
after the BrickColor.Blue put then, That should fix it
Can you put your code in a lua quotes that would make it look easier to read
Thank you! I am new to scripting and the website so this really helped a lot, now I can keep working on my game!