#i need help please

1 messages · Page 1 of 1 (latest)

fathom storm
#

so im trying to make a cross the road simulator, where cars barrel down a street while you try and cross it.
but heres the thing: i dont know how to make the cars do that
can someone PLEASE help me asap 😭

wheat jolt
#

do you know how to script?

fathom storm
#

thats why im looking for help cus i have no idea how to code in lua

wheat jolt
#

do you know how to code in anything else?

fathom storm
#

i vaguely remember kinda how to code in c#

wheat jolt
#

memorizing tutorials or comprehension?

fathom storm
#

memorizing tutorials 💔

wheat jolt
#

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

fathom storm
#

cant i use something like chatgpt for some of it

wheat jolt
#

no.

fathom storm
#

for like help understanding

fathom storm
wheat jolt
#

but in very, very small amounts

fathom storm
#

ok

wheat jolt
#

chances are, you probably could make a game like this entirely with ai, but for anything more you do need proper knowledge

fathom storm
#

hm

restive cryptBOT
#

studio** You are now Level 1! **studio

fathom storm
#

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

wheat jolt
#

a specific thing like making the cars move and do thing on impact cover very little

fathom storm
#

oh okay

#

im talking like barreling at mach 10 though

#

and making the player get flung with the car and killing them

#

idk

wheat jolt
#

i could teach you (at least try) if you'd like, but no guarantees you'll understand, i'm not great at teaching

fathom storm
#

yes please 😭

wheat jolt
#

alr

#

so

#

you got studio open?

fathom storm
#

yes

wheat jolt
#

alr

#

we're gonna start with the very very basics

fathom storm
#

okk

wheat jolt
#

alr

#

this is script

fathom storm
#

for the cars

wheat jolt
#

we're not focusing on the cars rn

fathom storm
#

sorry i would put a question mark but that key is broken

fathom storm
#

ok i found the script

wheat jolt
#

this is code

#
print("Hello world!")
#

code is pretty much just instructions for the computer

fathom storm
#

woah

#

ok

wheat jolt
#

let's start with variables

fathom storm
#

ok

wheat jolt
#

you know what a variable is?

fathom storm
#

mm

#

not really

wheat jolt
#

ok

#

a variable is a thing that stores data

#

that data can be anything

fathom storm
#

okay

wheat jolt
#

in lua specifically, it is defined with

local variable = (value you want variable to be)
fathom storm
#

ohh

wheat jolt
#

so now i want you to make a variable named whatever you want with its value as 10

fathom storm
#

like in studio

wheat jolt
#

doesn't matter, you could type it here or in studio or send a screenshot or whatever\

fathom storm
#

ok

#

local varible = (10)

wheat jolt
#

sorry, should've been more clear, you don't include the parentheses

fathom storm
#

oh sorry 😭

wheat jolt
#

don't apologize, it's my error

fathom storm
#

local varible = 10

wheat jolt
#

that's good

#

now make a second variable, named whatever you want, with its value as anything you want

#

any number*

fathom storm
#
local varible = 19027382673947```
restive cryptBOT
#

studio** You are now Level 2! **studio

wheat jolt
#

so a new name

fathom storm
#

so do i replace "variable" with something else

wheat jolt
#

you should but redefining variables is very useful, but that's more advanced stuff, we're just on the basics right now

fathom storm
#

ok

random sorrel
#

wwsp

restive cryptBOT
#

studio** You are now Level 1! **studio

fathom storm
#

local really cool name = 192738

fathom storm
random sorrel
#

hola

fathom storm
#

hola

random sorrel
#

hola

wheat jolt
random sorrel
#

anyways what yall doing

fathom storm
#

local reallycoolname = 2934738674

wheat jolt
#

wonderful

random sorrel
#

coo;

#

bro is cooking

#

so like type um

wheat jolt
#

now type the lines for varible and reallycoolname into the script on studio

fathom storm
wheat jolt
#

yep

fathom storm
#

ok

#

it doesnt let me send images

#

but i did it

wheat jolt
#

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

fathom storm
#

ohh ok

wheat jolt
#

so your script looks something like this?

fathom storm
#

yes

wheat jolt
#

alr

fathom storm
#
local reallycoolname = 2934738674```
wheat jolt
#

it's like this

fathom storm
#

ohh ok

#
local varible = 10
local reallycoolname = 29283834
#

booyah

wheat jolt
#

ok

#

so

random sorrel
#

?

#

so uh

#

?

wheat jolt
#

do you have an output window to the left or bottom of your screen?

wheat jolt
fathom storm
#

no

wheat jolt
#

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

fathom storm
#

ok

#

got it

wheat jolt
#

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?

fathom storm
#

it prints whats happening

restive cryptBOT
#

studio** You are now Level 3! **studio

wheat jolt
#

you input whatever you want into the parentheses of the function

#

can you guess now?

fathom storm
#

uhh

#

idk

wheat jolt
#

ok

#

so

#

the print() function will print anything in the parentheses

fathom storm
#

oh

#

wait lol

#

it prints what you put into the paretheses

wheat jolt
#

that's a general thing to know with functions, they can take input through their parentheses

fathom storm
#

ok

#

wait hold on im gonna go to the bathroom

#

brb

wheat jolt
#

so now i'd like you to type either of your variables into the parentheses (not their value) then run the game

wheat jolt
fathom storm
#

im back\

wheat jolt
#

ok

fathom storm
wheat jolt
#

aight

fathom storm
#

so print(reallycoolname)

wheat jolt
#

yep

fathom storm
#

like where do i put it though

wheat jolt
#

anywhere

fathom storm
#

oh ok

wheat jolt
#

just has to be after the variable is defined

fathom storm
#

wait should i be doing this in a new baseplate

wheat jolt
#

doesn't matter

fathom storm
#

ok

#

ok i did it

wheat jolt
#

alright

#

so now tell me what it printed in the output

fathom storm
#

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)
wheat jolt
#

did you run the game?

fathom storm
#

i put

local varible = 10
local reallycoolname = 29283834

print(reallycoolname)```
fathom storm
wheat jolt
#

try running it again

fathom storm
#

ok

#

same thing