local event = game.ReplicatedStorage.tooodsPet:WaitForChild("PetEvent") local InvEvent = game.ReplicatedStorage.tooodsPet:WaitForChild("RemoveEvent") local equipped = game.Players.LocalPlayer:WaitForChild("stats").PetEquip script.Parent.MouseButton1Click:Connect(function() if not equipped then event:FireServer(game.Players.LocalPlayer) equipped = true else InvEvent:FireServer(game.Players.LocalPlayer) equipped = false end end)
It gives an Unexpected Unicode character: U+2028. Did you mean ' '? My keyboard is a US keyboard, so I don't know what is wrong
I get this a lot. Just rewrite the code and it should be good.