#proximity promt not working on roblox but its working on studio
1 messages · Page 1 of 1 (latest)
shure
so i can analize this script
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
why not send the script here?
wdym?
what the issue even
we can read it
the script works perfectly in the studio test but on a roblox server it doesnt
is it a serverscript or a localscript?
same goes for an airlock i made and a keycard door (all other stuff with click detectors work)
local on the securitydoor
wheres the security door parented.
i just read half of this script
** You are now Level 4! **
and i didint see any bugs
workspace
show output in roblox
r there any errors in output4?
localscript in workspace
oh
hedgy u cant have a local script in the workspace
my first game i made
i put a local script in workspace
and i got mad it didint work
mb not local script just the normal one
white one?
my brain thought you mean module script
ah
no
so u use any remote events?
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
how did u make that it detects a keycard
for an animation
idk
its the entire system for the door in one script
like i said i am stupid and new
** You are now Level 3! **
🤔
cuz u asked
watch a yt on proximity prompt
nah its fine aslong as it works
see how its implemented
ur not stupid ur smarter than me
its js easier to debug and organise with modules
cap
no
i gotta learn that but its confusing
what confuses u
i made a local script in workspace and got mad it didint work
200 lines but ur new to studio?
the whole principe
oh
back to the main thing
its ai generated
learned tweeening with youtube and the keycard mech
ok\
and put it all together ( also learned like the basics
i have scripting experience i am just new tu luau
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
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
i know what module scripts are but the organisation makes the problems
should i start using that?
u gatta make sure u are using them right
this is what a good explorer looks like
everythings in modules
also how would you organize that in my example
Script -> all of ur module scripts
also is ur workspace sorted like in folders?
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
usually ye
mine yes
then u shouldnt struggle with modules
ig i just have to understand the basics abuot it but how would you organize that in my example?
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?
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
so like one for everything but all in the door?
either in the door or serverscriptservice
can i dm you and you can explain me some things i have questions for or do you dont want that?
i have no scripts in workspace only their designated places, except a guide module somewhere cuz im working on a asset to sell
js ask here
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
diffrence?
sss is more scalable and for big systems if ur adding other stuff in the future
what do you mean by that
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
ye ig
ok but like where tf and how do i put it in sss
** You are now Level 4! **
do i just make a folder saying safetydoor logic and put my module scripts in there and how do i acces the model then?
i mean i can do basic scripting but if i learn that faseter (already understand the key usage) its better ig
also my problem is something that they cant explain so ill just recode everything eith modules
ik
@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
there is no cons to using module scripts
If u want the door o have lots of effects and different functions then ye modules will be nice
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
cinema
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
Holy yap session in here, go in game use the proximity prompt and press. F9
You can see the error
haha nice joke we already tried
Huh?
can i dm you cause this is complicated
it wont give an error
Then there isn't one.
but its not working i think the problem is that the script starts a automatic close but i just rescript the whole thing with module scripts
cause thats better ig
priv would be better but can we do that in like 15 mins cause i gotta eat smthing
That's fine gives me time to read the text file
its a stupid script i am pretty new also i started with module scripting (its bit confusing) ill tell oyu in call
see ya
thats fine man no stress