Discuss Scratch

IloveRoblox003
Scratcher
1000+ posts

Help with Scripts (Lua)

My LocalScripts aren't working, I used print() in both a Script and LocalScript and only the Script printed it

How do I fix this, I need the LocalPlayer to get game.Players.LocalPlayer

Also I'm posting here because I can't post on the DevForum (Im still level 0)

Last edited by IloveRoblox003 (March 18, 2025 15:54:37)

codingfire23
Scratcher
41 posts

Help with Scripts (Lua)

I don't understand what exactly you are trying to do, are you trying to print LocalPlayer to the console?
IloveRoblox003
Scratcher
1000+ posts

Help with Scripts (Lua)

codingfire23 wrote:

I don't understand what exactly you are trying to do, are you trying to print LocalPlayer to the console?

print(game.Players.LocalPlayer.Character.PrimaryPart.Position)

even
print(“Hello World”)
doesn't work
codingfire23
Scratcher
41 posts

Help with Scripts (Lua)

If you're printing on a localscript, it will print to only the client's console. Please check that by pressing F9 and tell me if anything comes up.
IloveRoblox003
Scratcher
1000+ posts

Help with Scripts (Lua)

codingfire23 wrote:

If you're printing on a localscript, it will print to only the client's console. Please check that by pressing F9 and tell me if anything comes up.
It doesn't work, Output doesn't show it, and even when I press F9, it doesn't print. However if I run it on the Command Bar while running, it works.
codingfire23
Scratcher
41 posts

Help with Scripts (Lua)

Strange, I will try and debug your issue when i get home from school today.
IloveRoblox003
Scratcher
1000+ posts

Help with Scripts (Lua)

codingfire23 wrote:

Strange, I will try and debug your issue when i get home from school today.
Oh, I solved the problem. Someone said LocalScript only works in certain places (starterplayer, starterplayerscript, characterplayerscript, starterpack, startergui) , and if I put it somewhere else, it won't work unless I script it to be.
codingfire23
Scratcher
41 posts

Help with Scripts (Lua)

IloveRoblox003 wrote:

codingfire23 wrote:

Strange, I will try and debug your issue when i get home from school today.
Oh, I solved the problem. Someone said LocalScript only works in certain places (starterplayer, starterplayerscript, characterplayerscript, starterpack, startergui) , and if I put it somewhere else, it won't work unless I script it to be.
oh
snoopythe3
Scratcher
500+ posts

Help with Scripts (Lua)

This isn't roblox
IloveRoblox003
Scratcher
1000+ posts

Help with Scripts (Lua)

snoopythe3 wrote:

This isn't roblox
It is, have you ever heard of Scripting and Roblox Studio?
Codingkid452
Scratcher
47 posts

Help with Scripts (Lua)

IloveRoblox003 wrote:

snoopythe3 wrote:

This isn't roblox
It is, have you ever heard of Scripting and Roblox Studio?
they mean that the scratch forum is not for roblox scripting help
IloveRoblox003
Scratcher
1000+ posts

Help with Scripts (Lua)

Codingkid452 wrote:

IloveRoblox003 wrote:

snoopythe3 wrote:

This isn't roblox
It is, have you ever heard of Scripting and Roblox Studio?
they mean that the scratch forum is not for roblox scripting help
Yea, I don't have access to the devforums, it takes weeks to get in.

Besides, in Advanced Topics, one of the things you can talk about are different coding languages

Last edited by IloveRoblox003 (March 23, 2025 15:17:23)

Powered by DjangoBB