Alright, so In this script I'm getting the error "Unexpected Symbol near '?' " It doesn't tell me where it is. I'm doing this script where i equip a tool a gui pops up and when I unequip it, it disappears. Any help would be appreciated! Thank you for your time.
Script:
Tool = script.Parent function onEquippedLocal() local character = script.Parent.Parent local player = game.Players:GetPlayerFromCharacter(character) if player==nil then return end guiMain = script.Parent.ScreenGui:clone() guiMain.Parent = player.PlayerGui end function onUneqippedLocal() guiMain:Remove() end Tool.Equipped:connect(onEquippedLocal) Tool.Unequipped:connect(onUnequippedLocal)