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

I don't understand what's wrong with this, I tested it, and it worked fine, any help?

Asked by 5 years ago

https://gyazo.com/c9a641080ba5c080c2dcb40f2dff817f

I know it probably has something to do with (Game.Workspace.Shadow2) But i really don't know how to fix it. And I tested it with a Print("") and it worked fine.

0
you should put the code in a code block, not an image fanofpixels 718 — 5y
0
I'm not sure if this is your problem or not, but first of all, Game.Workspace is deprecated. game.Workspace is also deprecated. What you need to use is simply: workspace. So that part of the code should be (workspace.Shadow2). lunatic5 409 — 5y
0
Also, try to indent your code properly. I used to have problems with this too, but it is a bad habit to get into. Indenting your code properly makes it looks cleaner, easier to read, and just nicer in general. lunatic5 409 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

"Game" is depracated, use "game" instead:

Game.Workspace.Shadow2 -- no
game.Workspace.Shadow2 -- yes
0
I'm not sure about this, but if I'm correct, game.Workspace is also deprecated. The best way to acces the workspace is through just "workspace". So his code should read "(workspace.Shadow2)". But, game.Workspace might not be deprecated. All I know is that workspace is either just a shorter way of typing game.Workspace, a more efficient method of accessing the workspace, or a replacement for lunatic5 409 — 5y
0
game.Workspace all together. Either way, I think it would be smarter to use "workspace" rather than Game.Workspace or game.Workspace. lunatic5 409 — 5y
Ad

Answer this question