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

КОМЕНТАРІ • 80

  • @damajicschoolbus6415
    @damajicschoolbus6415 Рік тому +2

    Wow, this is a masterpiece 👏

  • @Blejszipper2022
    @Blejszipper2022 13 днів тому

    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

  • @Doruk_adi_alinmis
    @Doruk_adi_alinmis 3 місяці тому +2

    I want to add a plank on the door so i need a crowbsr to break it,can you help me out?

    • @OXY_thereal
      @OXY_thereal 2 місяці тому

      It's the same thing
      script
      local plank = script.Parent.plank
      plank.Touched:Connect(function(hit)
      if hit.Parent:WaitForChild("") then

  • @WilliamJones-jc6qg
    @WilliamJones-jc6qg Місяць тому +1

    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?

  • @michaelleefook3515
    @michaelleefook3515 Місяць тому

    bro thank you so much for this! u eXplained well as well

  • @vi_idk12
    @vi_idk12 4 місяці тому

    Great video!

  • @MIFTSHAFT
    @MIFTSHAFT 3 місяці тому +1

    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?

  • @Secret_Halo
    @Secret_Halo 18 годин тому

    this tut did help tho

  • @yourbestfriendtosuccess
    @yourbestfriendtosuccess Рік тому

    noicerz very guuuuud vid

  • @voltprotapper472
    @voltprotapper472 3 місяці тому +2

    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?

    • @trixscriptz
      @trixscriptz  3 місяці тому +2

      I can help with that! dm me on discord

    • @voltprotapper472
      @voltprotapper472 3 місяці тому

      @@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)

    • @voltprotapper472
      @voltprotapper472 3 місяці тому

      @@trixscriptzit’s also not letting me join the server, can i just add you?

    • @voltprotapper472
      @voltprotapper472 3 місяці тому

      @@trixscriptz what is your discord?

  • @Secret_Halo
    @Secret_Halo 20 годин тому

    every time i dont have the key the door is invisible

  • @stub_
    @stub_ 5 місяців тому

    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?

    • @trixscriptz
      @trixscriptz  5 місяців тому

      dm me on discord and ill see whats up

    • @stub_
      @stub_ 5 місяців тому

      @@trixscriptz its all good i fixed it

  • @darkplayer07
    @darkplayer07 6 місяців тому

    how do i make it that when i die the tool spawns back in its old place where it was before i took it

    • @trixscriptz
      @trixscriptz  6 місяців тому

      thats a bit more advanced, join my discord server and DM me and I'll help you out!

    • @darkplayer07
      @darkplayer07 5 місяців тому

      @@trixscriptz sure

    • @darkplayer07
      @darkplayer07 5 місяців тому

      @@trixscriptz your invite is invalid

    • @trixscriptz
      @trixscriptz  5 місяців тому

      @darkplayer07 discord.com/invite/TvNY4ssjZR

    • @darkplayer07
      @darkplayer07 5 місяців тому

      @@trixscriptz thanks

  • @LightSkip_rb
    @LightSkip_rb 6 місяців тому

    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

    • @trixscriptz
      @trixscriptz  6 місяців тому +1

      inside the function do Tool:Destroy(). this completely removed the tool from the game

    • @Legy-lol
      @Legy-lol 4 місяці тому

      @@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?

  • @Legox_life
    @Legox_life 7 місяців тому +1

    im the 1000th view

  • @proglitcher1231
    @proglitcher1231 6 місяців тому

    thanks i made the key spawn in random spots!

    • @trixscriptz
      @trixscriptz  6 місяців тому

      Amazing! that could become a horror game! (just an idea, you don't have to do it)

  • @Secret_Halo
    @Secret_Halo 20 годин тому

    can u write the code in the description next time?

  • @the_beanguygamer
    @the_beanguygamer 2 місяці тому

    when i pick up the key, i get stuck in the floor

    • @car_low
      @car_low 2 місяці тому

      Make sure if there are multiple pieces in the key you use a weld constraint to connect the handle to each of them

  • @Camaa0_1-OFFICIAL
    @Camaa0_1-OFFICIAL 5 місяців тому +1

    Bruh, when I tried the game after putting in the entire script, it didn't work at all, only the sound was heard.

    • @Camaa0_1-OFFICIAL
      @Camaa0_1-OFFICIAL 5 місяців тому +1

      I checked all the lines of code and they were fine.

    • @Camaa0_1-OFFICIAL
      @Camaa0_1-OFFICIAL 5 місяців тому +1

      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

    • @naabuildercool4426
      @naabuildercool4426 3 місяці тому +1

      you didn't union the lock right

  • @Secret_Halo
    @Secret_Halo 20 годин тому

    also im having some trouble with the code

  • @akcikas
    @akcikas 3 місяці тому

    It doesn't work, i make my own key and lock is that a problem?

    • @trixscriptz
      @trixscriptz  3 місяці тому

      dm me on discord

    • @akcikas
      @akcikas 3 місяці тому

      ​@@trixscriptz saw late, i used meshes on market and it works now ty anyway ❤

  • @MaineDimpleFairy
    @MaineDimpleFairy 2 місяці тому

    why is it not working on mine:

  • @OXY_thereal
    @OXY_thereal 2 місяці тому

    When I play I didn't see the key. why?

  • @cheaterswillregret3856
    @cheaterswillregret3856 4 місяці тому

    The key works like i can pick it up but the door won’t open

    • @trixscriptz
      @trixscriptz  3 місяці тому +1

      come on my discord server and DM me

  • @Mewboy603
    @Mewboy603 Місяць тому

    why did the door didnt open

  • @jacobradamacher8519
    @jacobradamacher8519 3 місяці тому

    i cant pick up the key for some reason

  • @Marissaiscool53
    @Marissaiscool53 9 місяців тому +7

    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)

    • @trixscriptz
      @trixscriptz  9 місяців тому +1

      ay, that could be helpful for a quick snip lol

    • @MagRobloxYT
      @MagRobloxYT 2 місяці тому

      theres a starman waiting in the sky...

  • @makkocrehm3343
    @makkocrehm3343 2 місяці тому +2

    Can you help me it doesent work

  • @CB_Abdullah
    @CB_Abdullah 5 місяців тому

    I can't pick up the key from the floor! what can ı do??

  • @Kurdish75
    @Kurdish75 6 місяців тому +1

    Hey, when I get the key it makes me unable to move, anyone help?

    • @trixscriptz
      @trixscriptz  6 місяців тому +1

      unanchor the handle, beginner mistake lol.

    • @Kurdish75
      @Kurdish75 6 місяців тому

      @@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!

  • @papaskittlereal
    @papaskittlereal Рік тому

    me after using a free model that takes 5 seconds with more keys and doors

  • @theiacia4183
    @theiacia4183 4 місяці тому

    Is this a local door?

  • @Abirnox
    @Abirnox 4 місяці тому

    I tried the whole thing and the key didn’t work. I need help

    • @Abirnox
      @Abirnox 4 місяці тому

      Nvm I fixed it I just had the spaces all wrong

  • @DevlyFlop
    @DevlyFlop 7 місяців тому

    im 1001 view

  • @Marissaiscool53
    @Marissaiscool53 9 місяців тому +1

    8:40 Mine will not open.
    Edit: I did not code it correctly, lol

    • @trixscriptz
      @trixscriptz  9 місяців тому +1

      glad you figured it out!

  • @game_god7198
    @game_god7198 6 місяців тому

    Very good video, But can you tell me how to make the key delete after the door opens like in piggy?

    • @trixscriptz
      @trixscriptz  6 місяців тому

      add a tool:Destroy() inside the function. this removes the whole thing completely.

    • @game_god7198
      @game_god7198 6 місяців тому

      @@trixscriptz I tried that and it doesn’t know what tool to remove

    • @game_god7198
      @game_god7198 6 місяців тому

      @@trixscriptz also like piggy it needs to be one item only in your inventory do you know how to do that?

  • @thestopmotiongaming
    @thestopmotiongaming 8 місяців тому

    actually i see that its now 100 robux the tool grip editor

    • @trixscriptz
      @trixscriptz  8 місяців тому +1

      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

    • @thestopmotiongaming
      @thestopmotiongaming 8 місяців тому

      um i got a free version
      @@trixscriptz

  • @FOXedits-vk7pv
    @FOXedits-vk7pv 4 місяці тому

    Mine did not work for a flipping reason

    • @trixscriptz
      @trixscriptz  3 місяці тому

      come on my server and DM me