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 4 years ago
01local event = game.ReplicatedStorage.tooodsPet:WaitForChild("PetEvent")
02local InvEvent = game.ReplicatedStorage.tooodsPet:WaitForChild("RemoveEvent")
03local equipped = game.Players.LocalPlayer:WaitForChild("stats").PetEquip
04 
05script.Parent.MouseButton1Click:Connect(function()
06    if not equipped then
07        event:FireServer(game.Players.LocalPlayer)
08        equipped = true
09    else
10        InvEvent:FireServer(game.Players.LocalPlayer)
11        equipped = false
12    end
13end)

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 — 4y

1 answer

Log in to vote
1
Answered by
rabbi99 714 Moderation Voter
4 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 — 4y
Ad

Answer this question