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

I'm trying to make a simulator game but this happens how do i fix it?

Asked by 5 years ago
Edited 5 years ago

I'm trying to make a simulator but when I try to do my script and I type - it says unexpected symbol near '-'

here's a screen shot

use this link to see it pls help me fix this

http://prnt.sc/ntczo3

0
replace - with = Gameplayer365247v2 1055 — 5y
0
only use - if you need to substract Gameplayer365247v2 1055 — 5y
0
Yep, it's an end-of-function error. It expected you to put an equal sign there, not a hyphen. DeceptiveCaster 3761 — 5y

2 answers

Log in to vote
0
Answered by 5 years ago

It mean's pretty much what it states, "unexpected symbol". Try changing the top line to...

local tool = script.Parent

Let me know if that helps, if not leave a comment.

Ad
Log in to vote
0
Answered by 5 years ago

I think I know what you mean.

local tool = tool - script.parent

There. Lua doesn't recognise local tool = tool - script.parent. follow the script above.

0
and what the hell does subtracting a tool mean? He meant an equal sign not some weird math stuff. mixgingengerina10 223 — 5y

Answer this question