How to make a KEY DOOR just like Roblox Piggy! | Roblox Studio
Вставка
- Опубліковано 18 жов 2024
- in today's video, I am showing you how to create a key door just like Roblox's piggy! if you enjoyed please subscribe!
Tool grip editor: www.roblox.com...
I'm so sorry to say this, but they raised the price from 5 robux to 100 robux. BOOO 😠
Discord server: / discord
sub count: 23, wow that grew fast
tags (ignore): roblox studio, roblox, coding, coding a game in roblox, how to code a game in roblox, coding in roblox studio, coding in roblox, coding in roblox studio 2023, coding in roblox tutorial, coding in roblox studio tutorial, computer programming, how to make a game, how to make a roblox game, how to get roblox studio, roblox studio tutorial, how to use roblox studio, how to animate, how to make a game in roblox, how to code in roblox studio, how to build in roblox studio, piggy, roblox piggy, how to make a key door, how to make door in roblox. key door roblox studio, how to make a key door in roblox studio. piggy key door. how to piggy
Wow, this is a masterpiece 👏
When i pick up the key i get stuck in the floor and when i try it again it puts me in the same place
I want to add a plank on the door so i need a crowbsr to break it,can you help me out?
It's the same thing
script
local plank = script.Parent.plank
plank.Touched:Connect(function(hit)
if hit.Parent:WaitForChild("") then
Hey when i tried to do this it worked accept from rhe fact that when the padlock fell it didnt disappear do u know why?
bro thank you so much for this! u eXplained well as well
Great video!
it wont work also I want to make my horror game that you can only get one item in your invetory basically saying if you grab a key and grab another key it replaces the first key you got and puts it back in its spot can you help me with that?
this tut did help tho
noicerz very guuuuud vid
great video! helped lots. But i Want to know how to make your inventory space with only one item, as well as how to make the item go in your inventory when you click the item instead of run on it?
I can help with that! dm me on discord
@@trixscriptzi figured out how to click and make it go into the inventory, but i still want to know how to limit inventory space to 1 as well as how to make the key disappear when i click on it (meaning how to make it so that it disappears on the ground when it goes to my inv)
@@trixscriptzit’s also not letting me join the server, can i just add you?
@@trixscriptz what is your discord?
every time i dont have the key the door is invisible
im not sure why but i followed the tutorial and it works but not when the key hits it, like as soon as i run the door is transparency 0 and cancollide off and the lock is on the floor, any ideas why?
dm me on discord and ill see whats up
@@trixscriptz its all good i fixed it
how do i make it that when i die the tool spawns back in its old place where it was before i took it
thats a bit more advanced, join my discord server and DM me and I'll help you out!
@@trixscriptz sure
@@trixscriptz your invite is invalid
@darkplayer07 discord.com/invite/TvNY4ssjZR
@@trixscriptz thanks
How can you do that after opening the Door the Key gets destroyed or used like in doors after you opden the door the Key disappers
inside the function do Tool:Destroy(). this completely removed the tool from the game
@@trixscriptz Should I apply that to the script in the door? And how do I make an enemy npc be able to open the doors after they have been opened?
im the 1000th view
W!! welcome!
thanks i made the key spawn in random spots!
Amazing! that could become a horror game! (just an idea, you don't have to do it)
can u write the code in the description next time?
when i pick up the key, i get stuck in the floor
Make sure if there are multiple pieces in the key you use a weld constraint to connect the handle to each of them
Bruh, when I tried the game after putting in the entire script, it didn't work at all, only the sound was heard.
I checked all the lines of code and they were fine.
I keep quiet, I made the door and the DoorFrame but like you but I was only wondering if it was going to work and it didn't work with the one in the video but when I did the same but with the cage it did work
you didn't union the lock right
also im having some trouble with the code
It doesn't work, i make my own key and lock is that a problem?
dm me on discord
@@trixscriptz saw late, i used meshes on market and it works now ty anyway ❤
why is it not working on mine:
check typos
When I play I didn't see the key. why?
The key works like i can pick it up but the door won’t open
come on my discord server and DM me
why did the door didnt open
i cant pick up the key for some reason
If anyone wants the script
local door = script.Parent.Door
local pad = script.Parent.Padlock
local open = script.Parent.Open
local db = true
door.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Key") then
if db == true then
db = false
open:Play()
pad.Anchored = false
wait(1)
door.Transparency = 1
door.CanCollide = false
end
end
end)
ay, that could be helpful for a quick snip lol
theres a starman waiting in the sky...
Can you help me it doesent work
ask me on discord
I can't pick up the key from the floor! what can ı do??
give it touch interest
Hey, when I get the key it makes me unable to move, anyone help?
unanchor the handle, beginner mistake lol.
@@trixscriptz it was already unanchored but it didnt let me, so i took another mesh from the toolbox and that one worked. thank you for the tutorial i really needed it!
me after using a free model that takes 5 seconds with more keys and doors
I mean.. 🤷♂️
its not a virus ive used it in half of my games
Is this a local door?
I tried the whole thing and the key didn’t work. I need help
Nvm I fixed it I just had the spaces all wrong
im 1001 view
W
8:40 Mine will not open.
Edit: I did not code it correctly, lol
glad you figured it out!
Very good video, But can you tell me how to make the key delete after the door opens like in piggy?
add a tool:Destroy() inside the function. this removes the whole thing completely.
@@trixscriptz I tried that and it doesn’t know what tool to remove
@@trixscriptz also like piggy it needs to be one item only in your inventory do you know how to do that?
actually i see that its now 100 robux the tool grip editor
I found out a way to make it work without the grip thing, make a part for the handle, where ever the parts FRONT is is where the key is gonna face. next weld constraight the Kelly to the handle, its hard ti understand but you'll get a hand of it
um i got a free version
@@trixscriptz
Mine did not work for a flipping reason
come on my server and DM me