#proximity promt not working on roblox but its working on studio

1 messages · Page 1 of 1 (latest)

high monolith
#

@cedar thorn

delicate magnet
#

oh shi

#

wait like 5mins

high monolith
#

shure

delicate magnet
#

so i can analize this script

cedar thorn
#

... (234 lines left)

#

bfr

high monolith
#

dont blame the script i know its overcomplicated and i am jhust stupid but i am prettyx now to studio / luau

#

script is basicly a massive blast door that can be closed / opened and aut opens after 60 secs

sour pike
#

why not send the script here?

high monolith
cedar thorn
#

what the issue even

sour pike
#

we can read it

high monolith
cedar thorn
#

is it a serverscript or a localscript?

high monolith
#

same goes for an airlock i made and a keycard door (all other stuff with click detectors work)

high monolith
cedar thorn
#

wheres the security door parented.

delicate magnet
#

i just read half of this script

dry hornetBOT
#

studio** You are now Level 4! **studio

delicate magnet
#

and i didint see any bugs

high monolith
#

workspace

flint notch
delicate magnet
#

r there any errors in output4?

cedar thorn
delicate magnet
#

oh

cedar thorn
#

hedgy u cant have a local script in the workspace

high monolith
delicate magnet
#

my first game i made

#

i put a local script in workspace

#

and i got mad it didint work

high monolith
cedar thorn
high monolith
#

my brain thought you mean module script

cedar thorn
#

ah

delicate magnet
#

so the error is a remote event

#

so u use a remote event for opening the door?

high monolith
#

no

delicate magnet
#

so u use any remote events?

high monolith
#

only for a keycard image

#

but its not related

delicate magnet
#

ok

#

so there r no errors related to the door

high monolith
#

its like so weierd cause i also have a door that can be opend from one side via click detector and from the otherside with the keycard thingi but it works fine from the click detector side

delicate magnet
#

how did u make that it detects a keycard

misty narwhal
#

why do you need 200 lines to make a proximityprompt

#

🤔

delicate magnet
#

for an animation

misty narwhal
#

and how is that relevant

#

to the proximityprompt

#

🤔

delicate magnet
#

idk

cedar thorn
misty narwhal
#

ok but why would i need to know that

#

when the problem is a prompt

high monolith
dry hornetBOT
#

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

misty narwhal
#

🤔

delicate magnet
#

cuz u asked

sour pike
#

watch a yt on proximity prompt

cedar thorn
sour pike
#

see how its implemented

delicate magnet
cedar thorn
#

its js easier to debug and organise with modules

high monolith
delicate magnet
#

no

high monolith
cedar thorn
delicate magnet
#

i made a local script in workspace and got mad it didint work

sour pike
#

200 lines but ur new to studio?

delicate magnet
#

fr

#

there r 72 messeges alr

#

edy

high monolith
delicate magnet
#

oh

high monolith
#

back to the main thing

misty narwhal
high monolith
#

its not

misty narwhal
#

yes

#

stop lying

delicate magnet
#

so u made it all alone

#

and also ur new to studio?

high monolith
delicate magnet
#

ok\

high monolith
#

and put it all together ( also learned like the basics

#

i have scripting experience i am just new tu luau

cedar thorn
# high monolith the whole principe

module scripts are just tables which u store stuff in

in a module script u can store functions which u can call from another script where you required the module like this:

local ModuleScript = require(script.Module)

basically giving the ModuleScript variable all the functions

then u do ModuleScript:Function() (as long as the module script had the function called :Function())

and u can connect ur arguments into it then the stuff will happen

delicate magnet
#

it can take long

#

but if uu have a lot of time

#

you can script it agian and

#

make it carfuly

#

and u will see the error probly

high monolith
#

should i start using that?

cedar thorn
#

u gatta make sure u are using them right

#

this is what a good explorer looks like

#

everythings in modules

high monolith
#

also how would you organize that in my example

cedar thorn
delicate magnet
#

also is ur workspace sorted like in folders?

high monolith
#

i mean i coded some time in godot and i worked there with multiple scripts communicating (p.e. o acript for player that checks imput sends signal to door to open

cedar thorn
#

usually ye

high monolith
cedar thorn
#

wait

#

m

#

mb

#

thought that was to me 🙁

cedar thorn
high monolith
#

cause i havent really worked with server player communication yet

#

would you have one module script on the door to open / close it and one on the keycard thingy or what?

cedar thorn
#

I'd have a module that handles interactions and other modules that handle tweening, vfx etc

#

u could also use a module loader to write less

high monolith
cedar thorn
high monolith
cedar thorn
#

i have no scripts in workspace only their designated places, except a guide module somewhere cuz im working on a asset to sell

high monolith
#

so for this door i dont get yet where i should put the scripts

#

cause i have my model in workspace with a normal script

cedar thorn
#

it depends

#

if u want it in workspace or sss

high monolith
#

diffrence?

cedar thorn
#

sss is more scalable and for big systems if ur adding other stuff in the future

high monolith
#

its just a small door but late i want to add a system that can shut it in an emergency

#

so prob sss

#

if i understood that right youd put the module script on the thing you want to use if its just like a chair that you acn sit on but if you want to script like a big electric system that can turn lights on and can be sabotaged youd put it on sss

#

@cedar thorn

cedar thorn
#

ye ig

high monolith
#

ok but like where tf and how do i put it in sss

dry hornetBOT
#

studio** You are now Level 4! **studio

high monolith
#

do i just make a folder saying safetydoor logic and put my module scripts in there and how do i acces the model then?

sour pike
#

nah just learn some basic scripting if ur new

#

then do modules

high monolith
#

also my problem is something that they cant explain so ill just recode everything eith modules

sour pike
#

oh ok

#

u need a module loader

high monolith
#

ik

sour pike
#

look the metatable video by crusherfire

#

if u want

high monolith
#

@cedar thorn I don't wanna be annoying but I found the problem of my error and I wanted to ask you if you'd recommend me to switch to module scripts for everything (alr getting the hang of it) or only for big things and for small things just server scripts

flint notch
cedar thorn
#

Cuz then u can make each specific moduleworth 100 lines so u have rlly nice animations and vfx rather than having one script worth 1000 lines

#

Without module scripts its like reading a book in a loud crowded space but with modules its like reading a book in a library

high monolith
#

i dont wanna be annoying and you dont need to help me but i started using modul scripts and i got a yield error but i cant find the problem

#

i thought its an model loading error cause it saifd it could find but i added wait for child and its just not wokring

cedar thorn
#

Yield error is like not finding it

#

Show me how it looks like

sweet veldt
#

Holy yap session in here, go in game use the proximity prompt and press. F9

#

You can see the error

high monolith
sweet veldt
#

Huh?

high monolith
high monolith
sweet veldt
#

Then there isn't one.

high monolith
#

cause thats better ig

sweet veldt
#

It's far better.

#

Hold on can we hop on call

#

Cause this got kinda interesting

high monolith
#

where?

sweet veldt
#

Let me grab a coffee

#

And do you want to hop on private, or public?

high monolith
sweet veldt
#

That's fine gives me time to read the text file

high monolith
#

see ya

sweet veldt
#

thats fine man no stress

high monolith
#

@sweet veldt

sweet veldt
#

yo sorry

#

im ready