#i need help please
1 messages · Page 1 of 1 (latest)
do you know how to script?
no 😔
thats why im looking for help cus i have no idea how to code in lua
do you know how to code in anything else?
i vaguely remember kinda how to code in c#
memorizing tutorials or comprehension?
memorizing tutorials 💔
ok
so
you're not gonna be able to make a proper game solo without sufficient scripting knowledge
so start with learning the basics of scripting
cant i use something like chatgpt for some of it
no.
for like help understanding
ok
ok
chances are, you probably could make a game like this entirely with ai, but for anything more you do need proper knowledge
hm
** You are now Level 1! **
well how could i like do the thing im trying to do
jst so i can understand how to do this kind of stuff more
a specific thing like making the cars move and do thing on impact cover very little
oh okay
im talking like barreling at mach 10 though
and making the player get flung with the car and killing them
idk
i could teach you (at least try) if you'd like, but no guarantees you'll understand, i'm not great at teaching
yes please 😭
yes
okk
for the cars
we're not focusing on the cars rn
sorry i would put a question mark but that key is broken
this is code
print("Hello world!")
code is pretty much just instructions for the computer
let's start with variables
ok
you know what a variable is?
okay
in lua specifically, it is defined with
local variable = (value you want variable to be)
ohh
so now i want you to make a variable named whatever you want with its value as 10
like in studio
doesn't matter, you could type it here or in studio or send a screenshot or whatever\
sorry, should've been more clear, you don't include the parentheses
oh sorry 😭
don't apologize, it's my error
local varible = 10
that's good
now make a second variable, named whatever you want, with its value as anything you want
any number*
local varible = 19027382673947```
** You are now Level 2! **
hooray
ok so i should tell you now, varible is just redefined as the next number
so a new name
ah
so do i replace "variable" with something else
you should but redefining variables is very useful, but that's more advanced stuff, we're just on the basics right now
ok
wwsp
** You are now Level 1! **
local really cool name = 192738
hola
hola
hola
hola
another thing, variable names can't have spaces in them, sorry for not telling you
anyways what yall doing
its ok
basic coding lesson
local reallycoolname = 2934738674
wonderful
now type the lines for varible and reallycoolname into the script on studio
the script in serverscriptservice(questionmark)
yep
that's fine
you can also always to the code thing, but right after the first triple apostrophe, you type lua (no space)
that's how you get the color coding
ohh ok
so your script looks something like this?
yes
alr
local reallycoolname = 2934738674```
do you have an output window to the left or bottom of your screen?
a window that looks something like this
no
ok
look around under the view tab at the top of your screen
you should find an output button that will bring up the window
ok
the output window will print any errors the code encounters and anythign it's told to print
so
this is your first function (to my knowledge)
the print() function
can you guess what it does?
it prints whats happening
** You are now Level 3! **
close
you input whatever you want into the parentheses of the function
can you guess now?
that's a general thing to know with functions, they can take input through their parentheses
yes
so now i'd like you to type either of your variables into the parentheses (not their value) then run the game
aight
im back\
ok
did you do this?
let me do it now
aight
so print(reallycoolname)
yep
like where do i put it though
anywhere
oh ok
just has to be after the variable is defined
wait should i be doing this in a new baseplate
doesn't matter
20:53:38.634 29283834 - Server - Script:4
20:53:38.869 Requiring asset 5754612086.
Callstack:
cloud_8103941791.RobloxThemes.Plugin.Main.Themes.UICorner., line 2
- Server
20:53:38.955 Downloading asset failed for asset id 5754612086. Is the asset id correct and is the asset type "Model"? - Server
20:53:38.955 Stack Begin - Studio
20:53:38.955 Script 'cloud_8103941791.RobloxThemes.Plugin.Main.Themes.UICorner.', Line 2 - Studio
20:53:38.955 Stack End - Studio
20:53:39.174 require(assetId) cannot be called from a client. assetId = 5754612086 - Client
20:53:39.174 Stack Begin - Studio
20:53:39.174 Script 'cloud_8103941791.RobloxThemes.Plugin.Main.Themes.UICorner.', Line 2 - Studio
20:53:39.175 Stack End - Studio
20:53:39.404 Players:GetUserIdFromNameAsync() failed: Unknown user - Server - Handler:4
20:53:39.404 Stack Begin - Studio
20:53:39.404 Script 'PluginGuiService.PluginGui.Main.ThemesPage.ScrollingFrame.UserMade.1337.CreditsF.Handler', Line 4 - Studio - Handler:4
20:53:39.405 Stack End - Studio
20:53:39.500 Players:GetUserIdFromNameAsync() failed: Unknown user - Client - Handler:4
20:53:39.501 Stack Begin - Studio
20:53:39.501 Script 'PluginGuiService.PluginGui.Main.ThemesPage.ScrollingFrame.UserMade.1337.CreditsF.Handler', Line 4 - Studio - Handler:4
20:53:39.501 Stack End - Studio
20:54:30.602 Disconnect from ::ffff:127.0.0.1|59791 - Studio
(i have a plugin for themes)
did you run the game?
i put
local varible = 10
local reallycoolname = 29283834
print(reallycoolname)```
yes
yeah that's not what i was expecting at all
try running it again