Uh, Unexpected Unicode character: U+2028. Did you mean ' '?

For some reason, this happens, I don’t think it’s an error, but well, this doesn’t works :confused:

function Cooking:End()
	if self.Cooking then
		self.Cooking = false
	end
	self.GrabAnimation:Stop()
	self.Step = 0
	self.Ingredients = {}
	self.StepInformation = nil
	for i,v in ipairs(self.GuiConnections) do
		v:Disconnect()
	end
	self:GrabIngredient(nil)
	local Thingy = game.ReplicatedStorage.CookingSystem.Ingredients:FindFirstChild(self.CookingWhat)
    if Thingy then
		Thingy:Clone()
		Thingy.Handle.Anchored = true
		Thingy:SetPrimaryPartCFrame(self.SomethingGrilling.Handle)
		self.SomethingGrilling:Destroy()
		local ClickDetector = Instance.new('ClickDetector',Thingy)
		self.GuiConnections['ClickDetector'] = ClickDetector.MouseClick:Connect(function()
			for i,v in ipairs(Thingy) do
				v.CanCollide = false
				self:GrabIngredient(Thingy)
			end
			self.GuiConnections['ClickDetector']:Disconnect()
		end)
	end
end

Error is at ‘Thinhy’

1 Like

Sorted it out by copy and pasting the code, looks like it was a Roblox error

1 Like

If you used Shift+Enter, this shall be the reason for this.

1 Like

Why does it happens, tho?
30chars

A bug with the last update, it was working before. Not sure if they fixed or not, probably no.

If I recall correctly, pressing Shift + Enter tells the word to only go down one line instead of creating a gap like when pressing Enter . Pressing Shift + Enter does not create a paragraph while Enter does, which explains the bug and the unicode error.

There was a bug report related to this as well:

1 Like