Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Unexpected Unicode character: U+2028?

Asked by 3 years ago
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

0
Delete line that this error is on, and rewrite it. sometimes happens imKirda 4491 — 3y

1 answer

Log in to vote
1
Answered by
rabbi99 714 Moderation Voter
3 years ago

I get this a lot. Just rewrite the code and it should be good.

0
Rather than that just copy the entire script and paste it back in place, works every time. This is helpful for if you don't know what line the error is on. TommyHArden 101 — 3y
Ad

Answer this question