So I have a script, and I keep getting that error, any ideas?
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) if msg == ";noclip" then --change open sesame to what ever you want game:GetService("Players").LocalPlayer.Character.Head.Touched:connect(function(obj) if obj ~= workspace.Terrain then obj.CanCollide = false wait(1) obj.CanCollide = true end end) game:GetService("Players").LocalPlayer.Character.Torso.Touched:connect(function(obj) if obj ~= workspace.Terrain then obj.CanCollide = false wait(1) obj.CanCollide = true end end) end end) end) game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) if msg == ";esp" then script.Parent.MouseButton1Click:connect(function() -- Made by Clifford from Intriga Discord -- Edited by Foxxy#2439 -- local localPlayer=game.Players.LocalPlayer function highlightModel(objObject) for i,v in pairs(objObject:children())do if v:IsA'BasePart'and v.Name~='HumanoidRootPart'then local bHA=Instance.new('BoxHandleAdornment',v) bHA.Adornee=v bHA.Size= v.Name=='Head' and Vector3.new(1.25,1.25,1.25) or v.Size bHA.Color3=v.Name=='Head'and Color3.new(1,0,0)or v.Name=='Torso'and Color3.new(0,1,0)or Color3.new(0,0,1) bHA.Transparency=.5 bHA.ZIndex=1 bHA.AlwaysOnTop=true end if #v:children()>0 then highlightModel(v) end end end function unHighlightModel(objObject) for i,v in pairs(objObject:children())do if v:IsA'BasePart' and v:findFirstChild'BoxHandleAdornment' then v.BoxHandleAdornment:Destroy() end if #v:children()>0 then unHighlightModel(v) end end end function sortTeamHighlights(objPlayer) repeat wait() until objPlayer.Character if objPlayer.TeamColor~=localPlayer.TeamColor then highlightModel(objPlayer.Character) else unHighlightModel(objPlayer.Character) end if objPlayer~=localPlayer then objPlayer.Changed:connect(function(strProp) if strProp=='TeamColor'then if objPlayer.TeamColor~=localPlayer.TeamColor then unHighlightModel(objPlayer.Character) highlightModel(objPlayer.Character) else unHighlightModel(objPlayer.Character) end end end) else objPlayer.Changed:connect(function(strProp) if strProp=='TeamColor'then wait(.5) for i,v in pairs(game.Players:GetPlayers())do unHighlightModel(v) if v.TeamColor~=localPlayer.TeamColor then highlightModel(v.Character) end end end end) end end for i,v in pairs(game.Players:GetPlayers())do v.CharacterAdded:connect(function() sortTeamHighlights(v) end) sortTeamHighlights(v) end game.Players.PlayerAdded:connect(function(objPlayer) objPlayer.CharacterAdded:connect(function(objChar) sortTeamHighlights(objPlayer) end) end) end) end end
Well, first of all, your script is kinda messy which makes it hard for us to read and makes it hard for you to remember where your script does its functions. But, when analyzing your errors, look at the location.
The location is "workspace.Script"
But now, you have a number next to it. 104? Well that's probably a number line in your script. and it has the ")" next to it and right next to it again, has expected. So, the script is basically telling you it wants you to know that a ")" is expected to be at line 104 to close the Connect Function at Line 24.