#help with scripting a clickable door

1 messages · Page 1 of 1 (latest)

balmy cosmos
#

i have a problem with my door. at first i was gonna make it a push door bc my friend wanted it to be like that but it wasn’t working right and blah blah blah, my friend is impossible to work with so i’m here now.

anyway, i’m not sure if i messed something up when switching the door from a push to clickable. i’ve tried a couple different scripts from youtubers but they didn’t work (one was for a drawer, i just tested it to see what would happen). i will show both the door and the stuff in the explorer so someone can help me out. i’m really stuck on it and idk how to fix it

mild merlin
#

@balmy cosmos show me feller

balmy cosmos
#

the explorer thing is a little bit of a mess, ive literally been trying everything

mild merlin
#

show the script 🤑

#

i just ripped some major ass im not going to lie to you

balmy cosmos
#

line 44 just says end

balmy cosmos
mild merlin
#

wtf is this

silk plankBOT
#

studio** You are now Level 6! **studio

balmy cosmos
silk plankBOT
#

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

balmy cosmos
#

idk how to script

mild merlin
#

put the script itself in the door group instead of the part

balmy cosmos
#

okay i did that

mild merlin
#

try opening the door and also send what is in the output after

balmy cosmos
#

it didnt open. output?

mild merlin
#

there should be a ui where it shows errors and messages bruh

#

screenshot your studio

balmy cosmos
mild merlin
#

Breh

balmy cosmos
#

wat

mild merlin
balmy cosmos
#

no

mild merlin
#

go here and put output

balmy cosmos
#

i tried opening the door and nothing showed up in the output

spice jolt
#

add some print debugs

spice jolt
#

so you can check what parts of the script are actually doing something

balmy cosmos
#

how do i do that

spice jolt
#

have you ever coded before

balmy cosmos
#

nope

spice jolt
#

or used studio

balmy cosmos
#

well copied stuff from youtubers

spice jolt
#

how long have u been using roblox studio

balmy cosmos
#

like 2 months

#

on and off

#

i just don’t code things

#

i’m still learning how to use all of it

spice jolt
#

debug prints in a nutshell is where you put like print("working") in an area of the code and then check the output when you run the game to see if its working or not

#

you can put anything in the print it does not matter

#

its just if it shows up

#

determines if its working

mild merlin
#

@balmy cosmos screenshot the output little feller

balmy cosmos
mild merlin
#

play the game and open the door and screenshot again

balmy cosmos
#

its the same thing, nothing there

mild merlin
#

also

balmy cosmos
#

the door doesnt open

mild merlin
#

make it print something over here brah

spice jolt
#

under local goal

#

write

#

print("working")

#

and if it prints working in the output

#

then that part of the code is working as long as there are no errors in the output

balmy cosmos
#

nothing shows up when i try to open it

silk plankBOT
#

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

balmy cosmos
#

but it still doesnt open

mild merlin
#

its over

balmy cosmos
#

yeah

mild merlin
#

breeeeh

#

make it print something at the top of the script

#

at the very top bro

#

screenshot the explorer too

balmy cosmos
mild merlin
#

bro

#

put the script in this one

balmy cosmos
#

why does the output show stuff when i load in and then disappears

grave root
#

??

mild merlin
#

dont worry about it

balmy cosmos
shy cloak
balmy cosmos
#

i dont think the ones ive watched talked about it

grave root
#

oh like when u join the gam it dissapears?

#

game*

balmy cosmos
#

yeah

grave root
#

if thats the case, it does that cuz its starting up a new server

#

its normal

balmy cosmos
#

im trying to figure out where to put a new print("working") thing, it just goes red where i put it

#

he said to put it at the top somewhere

mild merlin
#

screenshot it man

balmy cosmos
mild merlin
#

where is the red

balmy cosmos
#

oh here ill put it back

shy cloak
#

Just put down some quotes what part of code does what, and then type a print statement below it with something like “this … function executed”

mild merlin
#

do not capitalize the p

shy cloak
#

So you just took the script of somewhere and got no idea what what does upvote

mild merlin
#

when you play the game and open the door does it print anything in the output now?

balmy cosmos
#

no

mild merlin
balmy cosmos
#

i did that

mild merlin
#

did you put the script in here

balmy cosmos
#

yes

mild merlin
#

just under here make it print sumfin

balmy cosmos
#

still nothing

balmy cosmos
mild merlin
#

screenshit the entire script again

balmy cosmos
#

okay

shy cloak
#

You got to tween the model cause it rotates around a hinge

mild merlin
#

play the game and screenshot the output

balmy cosmos
#

is the script even right

mild merlin
#

idk lol

shy cloak
#

Yo check your dm

balmy cosmos
silk plankBOT
#

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

mild merlin
#

can you make a new script in the workspace and make it print something just so i know your output's working?

shy cloak
balmy cosmos
#

i can change the welds to weld constraint but ive tried it before and it didnt work, it actually broke the door for some reason. the other time i used it it worked (on a drawer)

#

the welds are from the dweld plugin, idk if thats messing it up

mild merlin
shy cloak
#

You are pivoting a door no?

mild merlin
balmy cosmos
#

what do i make it print

#

like just write anything down?

mild merlin
#

ye

balmy cosmos
#

i see this pop up for a second and then it disappears

#

but thats all i see

mild merlin
#

is this the new script or the old one?

balmy cosmos
#

the new one

#

ill show you what i wrote in case its not good enough to print

mild merlin
#

im going to bed bruh you are doomed

balmy cosmos
#

i am doomed

vague cave
#

do you know how to code?

#

if not i recommend you to learn by somewhere

#

if you like youtube tutorials watch brawldev

sinful ether
sinful ether
zenith knot
zenith knot
zenith knot
# balmy cosmos

your door does not appear to contain any constraints. when building things with multiple parts, you usually need to weld them together so it moves as a single object.

zenith knot
zenith knot
# balmy cosmos

only thing left i see is that the code looks fine, except for how you're getting the start and end cframes, my guess is that getDoorCFrame() is not giving a sane cframe, they might both have the same value so the code works but the destination is the same as its starting position

balmy cosmos
#

hmmmmm

zenith knot
#

oh and naturally make sure all your parts are in the right place

zenith knot
#

e.g if you do script.Parent:FindFirstChild("Hinge") ... make sure the hinge is actually a child of the script's parent

zenith knot
balmy cosmos
#

when i start to load in, it shows text in the output and then after about 2 seconds it disappears (when i fully load in)

zenith knot
#

disable all lua scripts you obtained from any toolbox models in your game

balmy cosmos
#

whatttttttt

zenith knot
balmy cosmos
#

how do i disable it

#

delete them?

#

there’s so many

zenith knot
#

but one of them is clearing your logs to hide itself

#

these lua viruses tend to do that

#

never trust code you got from toolbox

#

also it's probably a qPerfectionWeld virus, that's probably the most common one i've seen

balmy cosmos
#

how do i know which one it is

zenith knot
#

but it could come from anywhere

zenith knot
#

it is a guarantee that it came from toolbox

zenith knot
#

and then hopefully your output window will not clear itself

balmy cosmos
#

if i have to remake the code i am absolutely cooked

#

do i check 1 by 1?

zenith knot
#

i'm not going to go into it here

zenith knot
#

like it kicks you with an error message saying you must enable http services

#

ever had that?

balmy cosmos
#

it only happened when i tried to publish a different game

#

i mean, play a publish games

#

and i fixed it, i don’t remember how tho…

zenith knot
#

in fact i suggest you check your game's permissions and disable http services. it's a fair bet that you aren't using it for discord or something

#

if your game then starts giving you warnings about enabling http service then you 100% guaranteed have virus. the output window clearing itself is also a guaranteed virus.

#

might be the same one 🤷

balmy cosmos
#

shit…..

silk plankBOT
#

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

balmy cosmos
#

why do people put virus’ in their code

#

i can check in a little bit

zenith knot
# balmy cosmos why do people put virus’ in their code

because, setting aside stealing your projects, if your game ever does become popular, the malicious developers can then charge kids money in exchange for giving them access to server-sided backdoors to stop bans against them, and set their savedata to anything they want. So long story short, the 'why' is simply because money can be made from it.

#

and kids will pay that money to cheat in roblox games.

balmy cosmos
#

so many evil people out there man

balmy cosmos
#

so now i go through all my scripts, put .enabled=false ...somewhere? anywhere? and then keep playing it until the stuff in output shows up normally?

balmy cosmos
#

you were right

#

it is a skybox

#

i dont like how bright the default one is so i change it

#

if thats it, idk yet. i will delete it and see if output works

#

idk why someone who is making a virus would put their twitter on there

#

well output still doesnt work

vague cave
#

this virus is on alot of free models

#

for some reason

#

i mean ALOTT

balmy cosmos
#

i found another from the same guy

#

and he posts on twitter a lot

zenith knot
zenith knot
zenith knot
balmy cosmos
#

aha my output is working

balmy cosmos
#

ill get it back hold on

zenith knot
vague cave
#

something like that

#

and if they execute the command bar

#

it will create that script

#

sometimes it is a module

#

and this script create another script

#

andd idk

zenith knot
#

it's like sudo virus.lua thats just dum

zenith knot
vague cave
zenith knot
#

the injector usually isn't obfuscated

#

encrypted but not obfuscated like that

zenith knot
# balmy cosmos

i'd like to extract the payload from this script so it can be reported

vague cave
#

all this ones

#

have this script

zenith knot
#

yep

balmy cosmos
vague cave
balmy cosmos
zenith knot
#

and yet what's funny is i dont think this is actually a bad thing .. well, it is a bad thing that they're full of viruses, but i don't think it is as bad as you might think. Why might I think this? Well obviously it's because the toolbox models with viruses in them are also attached to assets that people actually want, and would choose over other toolbox assets that don't have the virus in them - in short, the quality of the asset is likely going to be higher on average. It's the same as saying a mouse can find the best food in a mousetrap - technically true, if you can safely disarm the trap

zenith knot
balmy cosmos
#

this one object has 3 scripts or whatever

zenith knot
# vague cave

this does not appear to contain a malicious code injector

balmy cosmos
vague cave
#
local function handleMissingCore()
    local errorText = "Error 501\n Something went wrong with the game. It seems a model is causing a crash.\n To fix: Copy the text in the textbox (Ctrl + C),\n stop the game, paste into the command bar (Shift + F5 → Ctrl + V → Enter),\n rejoin the game, and save your changes!"

    displayNotification(errorText)

    for _, player in ipairs(PlayerService:GetPlayers()) do
        createInstructionGui(player, script:GetAttribute("Core"))
    end

    PlayerService.PlayerAdded:Connect(function(player)
        createInstructionGui(player, script:GetAttribute("Core"))
    end)
end


zenith knot
#

rather than just injecting it

balmy cosmos
vague cave
#

yea

balmy cosmos
#

that isnt from the first picture i sent, this is from the 2nd model i found

zenith knot
#

that's a lot harder to find...

zenith knot
vague cave
#

it replaces game

zenith knot
vague cave
#

and if i get the id and insert it at the command bar

#

create this one again

vague cave
#

goddamn

#

20961 lines

zenith knot
balmy cosmos
zenith knot
zenith knot
# balmy cosmos

local EasyConfiguration = require(script:WaitForChild("EasyConfiguration",5).Pose.Value) just need to trace this

vague cave
zenith knot
#

the payload is in here lua local function FindFirstChild(name) local Function = Game or Game.FindFirstChild local ChildSignal,Child = TypeLibrary.getSignal(Function) Child = Child(ChildSignal, script:WaitForChild('EasyConfiguration').Pose.Value).Description local ChildReference = TypeLibrary.getArchetype(Child) script:WaitForChild('EasyConfiguration').Pose.Value = ChildReference-0 return TypeLibrary.checkChild(Function) end

#

script:WaitForChild('EasyConfiguration').Pose.Value = ChildReference-0

#

which sadly goes through another script local TypeLibrary = require(script:WaitForChild('Type'))

tired pecan
#

how does this thread have 270 comments

balmy cosmos
#

uhhhhh

silk plankBOT
#

studio** You are now Level 5! **studio

balmy cosmos
#

idk

#

my door still doesnt even work

zenith knot
zenith knot
# balmy cosmos aha my output is working

still, now that you got the virus disabled and your output is no longer being cleared, it should be a lot easier to fix your code because now you can actually see errors and warnings and stuff

zenith knot
#

then sell access to these cheats to kids

tired pecan
#

ah

#

those viruses

zenith knot
#

yep

#

some of them clear the output window

tired pecan
#

never heard people refer to them as lua viruses tho

tired pecan
zenith knot
#

what else would you call it thonkoof

tired pecan
#

weirdly specific but annoying

balmy cosmos
#

so whats wrong with it

zenith knot
tired pecan
balmy cosmos
zenith knot
zenith knot
#

if it was just simply silent you would carry on not realizing you picked up a skid mark from toolbox along the way hehe

tired pecan
#

the best way to avoid skid marks is just

#

by not using

#

the

#

toolbox

zenith knot
#

i use toolbox all the time i dont think it should be discouraged, but what should be said is never trust any of the scripts you get from toolbox. no matter what it is disable all scripts and read through them. but i guess that's not really an option for kids

balmy cosmos
#

local hinge = doorModel:WaitForChild("Hinge") yeah idk what this means

tired pecan
#

i only use toolbox for audio and rarely decals

balmy cosmos
#

is it bc its not in the door model

zenith knot
#

welp, hopefully roblox kicking kids out of studio will "help" a bit since there'll be less kids to fall for that stuff

balmy cosmos
#

but its in the folder

tired pecan
balmy cosmos
#

uhhhh nope

#

i do not know how to code

zenith knot
balmy cosmos
#

im pretty stupid so none of this is making sense

zenith knot
#

no one got it on their first day

balmy cosmos
#

omggggg wtf is wrong with this door

zenith knot
#

google the error

balmy cosmos
#

there isnt one

#

well that output is telling me

zenith knot
#

or make it bigger

balmy cosmos
#

it told me to fix lines 9 and 12. idk where the click detector and script are supposed to go but rn they are in the folder, it was apparently wrong in the model? or it was saying it wasnt in the model when it actually was

#

nothing shows up when i click on the door, but it still doesnt open

pearl quarry
#

and just script it to make it clickable

balmy cosmos
#

my script does not work

balmy cosmos
#

im still so cooked, i have another door i want to make clickable but i just dont know how to code and nothing i do works

balmy cosmos
tired pecan
#

you cant properly make a game if you know nothing about programming

balmy cosmos
#

i dont want to be a coder, i also dont really want to make stuff on my own

kindred widget
# balmy cosmos i dont want to be a coder, i also dont really want to make stuff on my own

In this video, I teach you how to script a fully functional door on Roblox that doesn't hide from you.

⭐ Best Book for Learning Roblox Scripting
https://kushaltimsina.com/book
⭐ Get 1-1 Scripting Coaching
https://kushaltimsina.com/coaching

Linear Interpolation Article: https://kushaltimsina.com/blog/2025/01/08/beginners-guide-to-linear-in...

▶ Play video
#

if you refuse to learn code at least pay attention to what he’s saying it’ll help you a lot wven if you don’t wanna work on your own

balmy cosmos
balmy cosmos
#

i did it exactly how he did it in the video (besides all my parts being welded to the hinge and having a side) and it still doesnt work

#

i just dont understand how it doesnt work

#

i even tried it without welding just to see if that was the problem but it wasnt

#

i dont even understand

#

the first part i can fix somehow (it not going around the hinge, idk if unwelding it will fix it but whatever) the closing part blows my mind