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

My script won't run in a regular game and it only works in Studio when I run script?

The script is a local script and it is pasted into the Local Script part, But the only time it runs is when I am in studio, click Test, and Run Script.

Is there a way to fix it?

The script is too long so I CANNOT paste it into this box

But here is the link to the model FOR the script so hopefully somebody can figure out what is wrong and reply back to me.

https://www.roblox.com/library/985106598/dragon <

-1961

6 comments

0

Is filtering enabled?

0

Bryson Nope

0

Where is the localscript located?

0

I keep it in workspace, maybe that's wrong?

0

Read my bio @x1961x

0

Read my bio @x1961x

1 answer

✓ Accepted answer

The problem is you are trying to run a LocalScript inside of the workspace. If you look at the wiki, it tells you that LocalScripts can only function in client related services like the Backpack, StarterGui, ReplicatedStorage, etc. That's why it is called a Local Script, because the script is meant for the client only and not the server. Please accept my answer if this helped!

3 comments

0

I'ma test it, if it works then gg man that's great, I won't have any problem accepting at all.

1

Dude holy, thanks alot you know if I could I would give you 10 accepts, but since I can only do 1 for now you deserve it anyway.

0

Thanks!

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