Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Help with Scripts (Lua)
- 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)
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)
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)
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)
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)
ohStrange, 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.
- IloveRoblox003
-
Scratcher
1000+ posts
Help with Scripts (Lua)
This isn't robloxIt is, have you ever heard of Scripting and Roblox Studio?
- Codingkid452
-
Scratcher
47 posts
Help with Scripts (Lua)
they mean that the scratch forum is not for roblox scripting helpThis isn't robloxIt is, have you ever heard of Scripting and Roblox Studio?
- IloveRoblox003
-
Scratcher
1000+ posts
Help with Scripts (Lua)
Yea, I don't have access to the devforums, it takes weeks to get in.they mean that the scratch forum is not for roblox scripting helpThis isn't robloxIt is, have you ever heard of Scripting and Roblox Studio?
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)
- Discussion Forums
- » Advanced Topics
-
» Help with Scripts (Lua)



