The tutorial is great, I just messed up multiple things. Luckily, figuring out what is wrong can help you learn scripting. Thanks for this tutorial!
@EpicPaintballer101 Жыл бұрын
I made multiple cards and multiple doors for different levels, but when I remove "L1" from the script, it's still able to be used, but the light still turns red. if plr.Character:FindFirstChild("L1") or plr.Character:FindFirstChild("L2") or plr.Character:FindFirstChild("L3") then first door if plr.Character:FindFirstChild("L2") or plr.Character:FindFirstChild("L3") then second door
@Crrrypto Жыл бұрын
if you have multiple doors make sure to have the name of the proximityprompts different in each door for example adding a 2 at the end or it will open the rest
@gambitplayzrblx Жыл бұрын
@@Crrrypto Ok thanks I needed multiple doors and I didn't know I had to do that
@T_Zeny Жыл бұрын
I love the way you explain everything you do that made it easy to understand, very nice job!
@genuineviolist9792 жыл бұрын
hi! this video was really helpful and exactly what I needed. you’re doing a good job 👍
@davd13092 жыл бұрын
Great tutorial, exactly what I needed
@unclepullar2 жыл бұрын
is there a copy and paste for the script? (i am bad at scripting so i copy and paste)
@n_kachi2 жыл бұрын
just learn my guy
@unclepullar2 жыл бұрын
@@n_kachi well I tried :/
@laser88062 жыл бұрын
I would just recommend finding a frame with the full script and write in notepad but you have to watch some of it cause you need certain properties on parts.
@RumblingStarter2 жыл бұрын
@@unclepullar hes right. You gotta learn to script and not just copy and paste everything. Lua is easy dont worry.
@unclepullar Жыл бұрын
@Phantom Quackz yes i am a pro now B))
@_bread.x2 жыл бұрын
Great tutorial! Channel is incredibly underrated
@gstudioz9086 Жыл бұрын
Good tutorial, I made some modification to the script like using CFrame angles to open the door, and added sounds to it.
@miahxgamer6 ай бұрын
wait could you tell me how you added sounds? i wanted to add a sound that only plays once you open the door. if you know how to do this it would be very helpful! ✨✨
@chillaz80222 жыл бұрын
I joined Ur discord server btw, I made an obby game but now I don't know what to do tbh
@PowerMonkeyMBG2 жыл бұрын
just keep practicing & gradually move onto more complex things :)
@gambitplayzrblx Жыл бұрын
Perfect! Helped a lot! You just earned 1+ sub!
@Thefirst1108master4 ай бұрын
@PowerMonkey can you do a part 2 on how to add sound
@ETS_9611 ай бұрын
can you update this tutorial?
@jdn0073 Жыл бұрын
Any way to add sound when opening/closing?
@frost_winters10132 жыл бұрын
This video was quick and you was talking a bit too fast and wasnt really showing what u was clicking sometimes it helps if u show what ur clicking to be able to follow. But man this was gooooood. Keep it up just maybe make sure we see the words of what u clicking
@miahxgamer6 ай бұрын
Hi! this video was very helpful and made a great addition to my game! one question, is there a way i could make a sound play when the door is opened? thx!
@Bloxxers_rclNotAClanner Жыл бұрын
exactly what i needed, but im gonna make the keycard opening thing serversided
@notsheepe4 ай бұрын
needed this
@173sawYT Жыл бұрын
You should make a keycard door using tweenservice editor plugin
@keanoheye-eh8fv7 ай бұрын
Can you do that the keycard is for a team only
@ec79992 жыл бұрын
hey thanks for great tutorial but how can I make the key dissapear once the door is open, and the door will stay forever
@iamdoncabz2 жыл бұрын
Yeah how?
@Acloneot2 жыл бұрын
can i just ask? how did you do that thing in 1:30?
@PowerMonkeyMBG2 жыл бұрын
hold cmd (on Mac) -- scales both sides evenly :>
@Acloneot2 жыл бұрын
@@PowerMonkeyMBG i'm on windows
@PowerMonkeyMBG2 жыл бұрын
@@Acloneot try ctrl or alt then, should work :)
@Acloneot2 жыл бұрын
@@PowerMonkeyMBG okay thanks
@Justahumanchill6 ай бұрын
i wanted to do same thing but door unfreeze PLEASE ANSWER FAST NEED U
@xx_humbuzz_xx2093 Жыл бұрын
How can i add a sound for when it opens, closes and for when it denies access because the player isnt with the keycard equiped?
@Pablita_Devs Жыл бұрын
hey this is really helpfull, but my game requires a gate you can open and close by yourself, could you help me out?
@Crushboy Жыл бұрын
Can I still make the door with multiple parts in a group as the door?
@ranyx_pala5 ай бұрын
this video is helpful because there's no other one but its rly bad organised
@user-tg9zr2bj4i Жыл бұрын
Hello, im unsure whats going wrong but i can use the keycard on the door but nothing happens after the three seconds
@4BurritoBandits Жыл бұрын
Can the position be from cframe or origin?
@StarRookieRoblox8 ай бұрын
It doesnt work for me, and I have tried this multiple times
@AlgorIDK1439 ай бұрын
I did the code but it didn't work. rlly disappointing.
@macabreoven Жыл бұрын
Proximity prompt won’t show up! Edit: it’s fixed if I move the prompt to a part and turn off req line of sight but when I put it back to the model it breaks.
@krampa-b4k8 ай бұрын
how do you add a sound to it?
@crep2cat Жыл бұрын
how do you make when the player is not holding the card and it will pop out a gui telling the user that you need to hold the card
@Topher7lol Жыл бұрын
can you make this a free model?
@drkrok93992 жыл бұрын
Can you show how to make the same door but with no Proximity prompt, please :D btw nice video!
@guitarwitharyan69582 жыл бұрын
Just use a click detector!
@CompagnoThorosky2 жыл бұрын
@@guitarwitharyan6958 Yeah
@RealMiniPK3 ай бұрын
nobody ever replies but how do i give the proximity prompt a cooldown so people cant spam open
@ened302 жыл бұрын
fun fact: instead of local doorOpenTween = TweenService:Create(door.PrimaryPart, TweenInfo, {Position = door.PrimaryPart:GetAttribute("openPos")}) do TweenService:Create(door.PrimaryPart, TweenInfo.new(3), {Position = door.PrimaryPart.CFrame * Vector3.new(0,12,0)}):Play() same as local doorCloseTween = TweenService:Create(door.PrimaryPart, TweenInfo, {Position = door.PrimaryPart:GetAttribute("closePos")}) do TweenService:Create(door.PrimaryPart, TweenInfo.new(3), {Position = door.PrimaryPart.CFrame * Vector3.new(0,-12,0)}):Play() so you dont need any more useless close and open parts
@ApolloAnimz Жыл бұрын
Well then this brings up the issue of it being able to spam it sending it to freaking space
@ened30 Жыл бұрын
@@ApolloAnimz cooldown will fix it right away
@yk33012 жыл бұрын
how do u hold the key card its not working?
@RumblingStarter2 жыл бұрын
Name one of the parts “Handle”. Make sure to weld all the parts inside the tool together.
@_Nightmare666 Жыл бұрын
@erenjaeger637 hey bro i did everythink the same but when i hold the keycard, keycard stucks and if i keep drop and taking my hand its pushing me up how do i fix that ?
@mr.kubitea Жыл бұрын
Man! scipt don't work and turn up your microphone
@EtoSuper10 ай бұрын
Please help, I don't know why, but it doesn't work for me. I did everything exactly. And rechecked the script :(
@scpo5s267 Жыл бұрын
hey is there anything that ı can make it like lvl1 to lvl5 door with 6 different keycards
@Udon-Inc. Жыл бұрын
If you’re still looking for the anwser, copy and paste the keycard 6 diff times(or however many keycards you have) make the same number of keycards as well, each door and keycard has to be called something different, like KeycardDoor1 and Keycard 1 (ect), then replace the ‘door’ with the name of the keycard and door.
@ThatOneFri10 ай бұрын
I have a problem, when I pick up the keycard I get stuck on the floor, so I can't go open the door How do I fix this? Edit: Nevermind, I fixed the issue. Thanks for the tutorial tho! Very helpful ^w^
@Gaming_Dark172 жыл бұрын
good but you can make a tutorials for the same door but with a clickdetector pls
@pentioxdx Жыл бұрын
It doesn't work for me, ProximityPompt isn't showing up and keycard when equiping is laying down on floor
@user-tg9zr2bj4i Жыл бұрын
Because you need to rename the Part (the keycard) as handle
@qwedsagaming275711 ай бұрын
is there a possible way to add different keycards that work and dont work
@miahxgamer6 ай бұрын
im pretty sure you would just create another keycard with a different name. and since that name isnt in the code that card wouldnt work
@Saphlord Жыл бұрын
im getting erros while doing it so idk if i did anything wrong consedring i copied everything u did but yeah :(
@barrierwins Жыл бұрын
but how can i ad a sound when it is opening
@zuveresgames2 жыл бұрын
This channel should called not PowerMonkey, it should be called PowerCoder
@spinermarwin60339 ай бұрын
It was a very nice Video but me door doesnt close
@stahltron98312 жыл бұрын
I got this error: PrimaryPart is not a valid member of Part "Workspace.doorPackage.door.sensor.door" can someone help me?
@gamingchair6969 Жыл бұрын
Set the primary part to frame in door
@KrazyPersonofRobloxia2 жыл бұрын
It works but when I move the door somewhere else and open the door it just goes to a different place.
@velocity87452 жыл бұрын
it wont work :/
@1mfp Жыл бұрын
Hello, we need the same door with different level key cards!
@TheBucketWasTaken2 жыл бұрын
Bruh it didn’t work and i checked every line of script! Can you make a copy and paste because i spent 2 hours :(
@markelshowcases34642 жыл бұрын
same
@gamingchair6969 Жыл бұрын
Lol it took me 30 minutes
@scriptedradio9707 Жыл бұрын
I just wanted to make this keycard door cuz I was bored but dude- there is so much unnecessary code in the script like you can make it short as with the same result. My door also doesn’t open when my keycard is in my inventory equipped, when I hold E on the prompt the sensor goes red? And doesn’t open. I see that it worked for some people but majority are saying that it didn’t. Next time explain the code line by line properly so people of any coding skill can understand. Thank you.
@scriptedradio9707 Жыл бұрын
Btw I found where the issue is but not sure if I should waste my time on it, already made my own custom keycard door so I don’t need this anymore.
@scriptedradio9707 Жыл бұрын
Lol another update, I fixed it! On line 9 the word after Findfirstchild was not the same as the one I pulled out of the keycard tool into workspace.
@sickzmyth6 ай бұрын
i wasted 19 minutes to get a broken door that made everything fall apart and the prompt didn't even show up. i don't know what i did wrong or i just have a curse since it seemingly worked fine for everyone else here
@notsheepe4 ай бұрын
same here
@Gobal_Defense_Organization Жыл бұрын
IT TOOK ME HOURS
@d3r1dd3r32 жыл бұрын
7:48 timestamp
@Syanojr5 ай бұрын
the keycard is not a tool for me :( please help me
@Zyplexx Жыл бұрын
Could you leave the script in the description or reply to me with it?
@nickophobia5665 Жыл бұрын
thx
@CompagnoThorosky2 жыл бұрын
Cant you just union the frame to have less parts?
@VincentIndexGames Жыл бұрын
this is a little hard because the door I’m making has multiple parts
@GrandyXD2 жыл бұрын
How do you add Touch Interest its not working
@M1CL1X Жыл бұрын
hello, i'm having a problem, when i use the keycard to open it, it says a error "Workspace.DoorPackage.r:12: attempt to index nil with 'GetAttribute' " What can i do? ,_,
@ETS_96 Жыл бұрын
im getting the same problemo
@Bloxxers_rclNotAClanner Жыл бұрын
12:02
@HasTheTimeGone2 жыл бұрын
all the doors open for me how do i fix it
@ItzBeatrix_H3 Жыл бұрын
I need help when I pick up the card then i go to the door it takes 0 seconds to unlock but the door doesnt open like when i interact it takes 0 seconds can anyone help?
@scriptedradio9707 Жыл бұрын
I have the same issue, i tried everything even editing the script but nothing. Legend has it I’m still trying to find the problem today.
@scriptedradio9707 Жыл бұрын
Hah jk I found my issue, hopefully it’s the same for you so it can be fixed. So basically the Keycard tool, the part he takes out of the tool and that is put into workspace has to be called Keycard. Now you can call it someone else on Line 9 by changing the name to whatever you like. In my case I changed the name to Card and then the name of the keycard part in workspace to Card. Hopefully it fixes your issue but you did post your comment 3 months ago so I doubt you would be still trying to find the issue.
@ItzBeatrix_H3 Жыл бұрын
@@scriptedradio9707 Thank you for giving me tips, and I didn't manage to fix the problem since then but your reply was helpful, thank you once again!
@EpicChip10 ай бұрын
EPIC
@JoeMama-wq8ij Жыл бұрын
how do you select all the parts at once?
@rugbyrailhub Жыл бұрын
hold control and click on the objects
@kratos49562 жыл бұрын
if i were to have multiple clearance keycards, would i just add a comma at line 8? (example below) if plr.Character:FindFirstChild("keycard1, keycard2")
@jadenforeman2 жыл бұрын
Hey, I'm trying to do the same thing with multiple keycards. I'll add commas and see if it works or not.
@yomems_2 жыл бұрын
try doing ("Keycard1", "Keycard2")
@uk_sam12 жыл бұрын
Thank you, you SAVED my life.
@_Nightmare666 Жыл бұрын
@@yomems_ i try that its working but there is a promlem when i use the first card to the second door , door light go red but opens the door how do i fix that ?
@yomems_ Жыл бұрын
@@_Nightmare666 its been 6 months and i dont really remember exactly the code anymore. try removing the card or try if plr.Character:FindFirstChild("keycard1") or plr.Character:FindFirstChild("keycard2") then if you're limiting the door to only one card, just remove the "or" and the card you want to remove
@scythix35722 жыл бұрын
Great tutorial and everything I was able to get the models done. But you keep just saying things rapidly, and it keeps getting me confused.
@mr.orange27122 жыл бұрын
Why did you cut the video and add a part without us knowing. Also it does not work...
@Hoppy_242 жыл бұрын
So the problem im having right now is i cannot see the prompt?
@AMNN-vl8kr2 жыл бұрын
on the prompt turn off requires line of sight
@brewr2 жыл бұрын
model?
@Opuqide2 жыл бұрын
Is it possible to add like a sound to the door for opening and closing, including Access Granted and Denied? if so, do please send me a Script that is in Close Connection
@ukiniakingdomex18372 жыл бұрын
if u search how make e to press sound and found one video use it and put script in a part with the promp part and put ur sound in ur door but if it two sound ifk
@NOOBER_PLAYZ22 Жыл бұрын
Can u pls give model plsssss
@official_darth_gonk33152 жыл бұрын
hey i absoloutly loved this tutorial but the prompt doesnt seem to pop up? do you know why?
@AMNN-vl8kr2 жыл бұрын
on the prompt turn off requires line of sight
@cris_sym2 жыл бұрын
can anyone paste the script please. for me it doesnt work
@anastascompany58282 жыл бұрын
I did everything that you did, but door doesn't work >:(
@gamingchair6969 Жыл бұрын
How???? I did it and it worked. Did you set the primary part to the frame?
@evadekarmaa9695 Жыл бұрын
@@gamingchair6969 same things happening with me and mine is set to frame
@Gobal_Defense_Organization Жыл бұрын
WHY NO SCRIPT IN FREAKING COMMENTS
@helix91702 жыл бұрын
Hey.. Is there a model? I cant seem to get it working...
@AMNN-vl8kr2 жыл бұрын
here is the script. local TweenService = game:GetService("TweenService") local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0) local ProximityPromptService = game:GetService("ProximityPromptService") ProximityPromptService.PromptTriggered:Connect(function(prompt, plr) if prompt.Name == "keycardDoor" then local sensor = prompt.Parent local door = sensor.Parent.door if plr.Character:FindFirstChild("keycard") then sensor.light.BrickColor = BrickColor.new("Lime green") local doorOpenTween = TweenService:Create(door.PrimaryPart, tweenInfo, {Position = door.PrimaryPart:GetAttribute("openPos")}) doorOpenTween:Play() wait(3) local doorCloseTween = TweenService:Create(door.PrimaryPart, tweenInfo, {Position = door.PrimaryPart:GetAttribute("closePos")}) doorCloseTween:Play() sensor.light.BrickColor = BrickColor.new("Neon orange") else sensor.light.BrickColor = BrickColor.new("Really red") wait(1) sensor.light.BrickColor = BrickColor.new("Neon orange") end end end)
@Petety2 жыл бұрын
The prompt isn’t showing 😢
@PowerMonkeyMBG2 жыл бұрын
make sure the RequiresLineOfSight property is not checked in the ProximityPrompt
@Petety2 жыл бұрын
@@PowerMonkeyMBG now i only see it from far away but not close up and the exit isnt working
@FatFroggers2 жыл бұрын
It did not work for me.
@LatestOfSpeed2 жыл бұрын
This tutorial was very confusing as to how you organise the models. 20 minutes of my life wasted. Disliked.
@CrystalDevs2 жыл бұрын
My time wasted too, it didn’t even work.
@realeliasplays Жыл бұрын
mine looks like among us
@Tortoise142 жыл бұрын
Cmon i spent an hour trying to do this doesnt even work waste of time
@MrMetro-ce2sl2 жыл бұрын
Please give me the script its a nightmare to write
@MrMetro-ce2sl2 жыл бұрын
@@AMNN-vl8kr Thx
@markelshowcases34642 жыл бұрын
@@MrMetro-ce2sl can you send a copy, cuz I don't see this guy you mentioned
@l_arryryt Жыл бұрын
9:28
@anthonyoggy Жыл бұрын
local TweenService = game:GetService("TweenService") local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0) local ProximityPromptService = game:GetService("ProximityPromptService") ProximityPromptService.PromptTriggered:Connect(function(prompt, plr) if prompt.Name == "keycardDoor" then local sensor = prompt.Parent local door = sensor.Parent.door if plr.Character:FindFirstChild("keycard") then sensor.light.BrickColor = BrickColor.new("Lime green") local doorOpenTween = TweenService:Create(door.PrimaryPart, tweenInfo, {Position = door.PrimaryPart:GetAttribute("openPos")}) doorOpenTween:Play() wait(3) local doorCloseTween = TweenService:Create(door.PrimaryPart, tweenInfo, {Position = door.PrimaryPart:GetAttribute("closePos")}) doorCloseTween:Play() sensor.light.BrickColor = BrickColor.new("Neon orange") else sensor.light.BrickColor = BrickColor.new("Really red") wait(1) sensor.light.BrickColor = BrickColor.new("Neon orange") end end end)
@Gl1tch3r_0ff1ci4al Жыл бұрын
thanks :D
@taosiumessi Жыл бұрын
thaknk you so much
@crigoritostudio5 ай бұрын
bro why you no put the f**** model on description >:(
@8Bit90002 жыл бұрын
5:08
@DutcherChannel Жыл бұрын
Going too fast, I can't even follow the steps 💀
@Nasoulinos3236 Жыл бұрын
you
@renzwwww Жыл бұрын
DOES NOT WORK!
@tomasplay10 Жыл бұрын
a😬
@pangea19172 жыл бұрын
didnt work
@MrMetro-ce2sl2 жыл бұрын
pls copy and paste
@BMPiercing Жыл бұрын
Doesnt work
@rayzerblox Жыл бұрын
confusing i gave up :/
@Sr_Cannon2 жыл бұрын
I SPENT 3 HOURS ON THIS FOLLOWED EACH STEP AND IT DIDN'T WORK THIS IS BULL CRAP