Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Roblox keeps giving me this error message, I have no idea what is wrong with my script?

I'm making an if statement where if a Script is disabled then The script:

if workspace.Scrapee.Disabled == true then
wait(3)
local Head = game.Workspace.a.Head
local message1 = "insert your message here"
local message2 = "Insert your second message here"
game:GetService("Chat"):Chat(script.Parent.Head, message1, Enum.ChatColor.White)
end

And it keeps giving me this error message: 18:34:17.434 - Workspace.??? ?.Script:3: Unexpected Unicode character: U+200f.

I have no idea what I'm doing wrong...

(The Scrapee script becomes disabled when a button is clicked inside the game)

3 comments

0

Please format your code in a code block.

0

it might be the qusetion marks try to rename thingfs

0

If your object in workspace is called '??? ?' then you need to do: game.Workspace["??? ?"].Head since the name has a space in it.

1 answer

U+200F is the the right-to-left unicode control character. It's meant for languages such as Hebrew and Arabic that write right to left. I'm not entirely sure where that character is located in your code. Try pasting it into this website (I tried myself but U+200F wasn't there, SH might be removing certain control characters.)

If my answer solved your problem best, please remember to upvote and accept it.

2 comments

0

game:GetService("Chat"):Chat(script.Parent.Head, message1, Enum.ChatColor.White) This might also be the problem, but idk

0

thank you! script.Parent worked instead of workspace

This discussion is preserved as it was. New answers, comments, and votes are closed.