How to make a KEY DOOR just like Roblox Piggy! | Roblox Studio

Поделиться
HTML-код
  • Опубликовано: 10 сен 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

Комментарии • 74

  • @Marissaiscool53
    @Marissaiscool53 7 месяцев назад +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  7 месяцев назад +1

      ay, that could be helpful for a quick snip lol

    • @MagRobloxYT
      @MagRobloxYT Месяц назад

      theres a starman waiting in the sky...

  • @WilliamJones-jc6qg
    @WilliamJones-jc6qg 8 дней назад +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?

  • @damajicschoolbus6415
    @damajicschoolbus6415 11 месяцев назад +2

    Wow, this is a masterpiece 👏

  • @Doruk_adi_alinmis
    @Doruk_adi_alinmis 2 месяца назад +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 Месяц назад

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

  • @voltprotapper472
    @voltprotapper472 2 месяца назад +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  2 месяца назад +2

      I can help with that! dm me on discord

    • @voltprotapper472
      @voltprotapper472 2 месяца назад

      @@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 2 месяца назад

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

    • @voltprotapper472
      @voltprotapper472 2 месяца назад

      @@trixscriptz what is your discord?

  • @MIFTSHAFT
    @MIFTSHAFT 2 месяца назад +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?

  • @vi_idk12
    @vi_idk12 3 месяца назад

    Great video!

  • @LEVEL-UP-Camaa0_1-OFICIAL
    @LEVEL-UP-Camaa0_1-OFICIAL 4 месяца назад +1

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

    • @LEVEL-UP-Camaa0_1-OFICIAL
      @LEVEL-UP-Camaa0_1-OFICIAL 4 месяца назад +1

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

    • @LEVEL-UP-Camaa0_1-OFICIAL
      @LEVEL-UP-Camaa0_1-OFICIAL 4 месяца назад +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 2 месяца назад +1

      you didn't union the lock right

  • @Mewboy603
    @Mewboy603 7 дней назад

    why did the door didnt open

  • @OXY_thereal
    @OXY_thereal Месяц назад

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

  • @yourbestfriendtosuccess
    @yourbestfriendtosuccess 11 месяцев назад

    noicerz very guuuuud vid

  • @proglitcher1231
    @proglitcher1231 5 месяцев назад

    thanks i made the key spawn in random spots!

    • @trixscriptz
      @trixscriptz  5 месяцев назад

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

  • @the_beanguygamer
    @the_beanguygamer Месяц назад

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

    • @car_low
      @car_low 28 дней назад

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

  • @makkocrehm3343
    @makkocrehm3343 Месяц назад +2

    Can you help me it doesent work

  • @cheaterswillregret3856
    @cheaterswillregret3856 2 месяца назад

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

    • @trixscriptz
      @trixscriptz  2 месяца назад +1

      come on my discord server and DM me

  • @akcikas
    @akcikas 2 месяца назад

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

    • @trixscriptz
      @trixscriptz  2 месяца назад

      dm me on discord

    • @akcikas
      @akcikas 2 месяца назад

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

  • @Born56
    @Born56 5 месяцев назад +1

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

    • @trixscriptz
      @trixscriptz  5 месяцев назад +1

      unanchor the handle, beginner mistake lol.

    • @Born56
      @Born56 5 месяцев назад

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

  • @stub_
    @stub_ 4 месяца назад

    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  4 месяца назад

      dm me on discord and ill see whats up

    • @stub_
      @stub_ 4 месяца назад

      @@trixscriptz its all good i fixed it

  • @MaineDimpleFairy
    @MaineDimpleFairy Месяц назад

    why is it not working on mine:

  • @jacobradamacher8519
    @jacobradamacher8519 2 месяца назад

    i cant pick up the key for some reason

  • @Marissaiscool53
    @Marissaiscool53 7 месяцев назад +1

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

    • @trixscriptz
      @trixscriptz  7 месяцев назад +1

      glad you figured it out!

  • @Abirnox
    @Abirnox 3 месяца назад

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

    • @Abirnox
      @Abirnox 3 месяца назад

      Nvm I fixed it I just had the spaces all wrong

  • @LightSkip_rb
    @LightSkip_rb 5 месяцев назад

    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  5 месяцев назад +1

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

    • @Legy_lol
      @Legy_lol 3 месяца назад

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

  • @CB_Abdullah
    @CB_Abdullah 3 месяца назад

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

  • @theiacia4183
    @theiacia4183 3 месяца назад

    Is this a local door?

  • @darkplayer07
    @darkplayer07 4 месяца назад

    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  4 месяца назад

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

    • @darkplayer07
      @darkplayer07 4 месяца назад

      @@trixscriptz sure

    • @darkplayer07
      @darkplayer07 4 месяца назад

      @@trixscriptz your invite is invalid

    • @trixscriptz
      @trixscriptz  4 месяца назад

      @darkplayer07 discord.com/invite/TvNY4ssjZR

    • @darkplayer07
      @darkplayer07 4 месяца назад

      @@trixscriptz thanks

  • @Legox_life
    @Legox_life 5 месяцев назад +1

    im the 1000th view

  • @thestopmotiongaming
    @thestopmotiongaming 7 месяцев назад

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

    • @trixscriptz
      @trixscriptz  7 месяцев назад +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 7 месяцев назад

      um i got a free version
      @@trixscriptz

  • @papaskittlereal
    @papaskittlereal 11 месяцев назад

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

    • @trixscriptz
      @trixscriptz  11 месяцев назад

      I mean.. 🤷‍♂️

    • @papaskittlereal
      @papaskittlereal 11 месяцев назад

      its not a virus ive used it in half of my games

  • @FOXedits-vk7pv
    @FOXedits-vk7pv 2 месяца назад

    Mine did not work for a flipping reason

    • @trixscriptz
      @trixscriptz  2 месяца назад

      come on my server and DM me

  • @DevlyFlop
    @DevlyFlop 5 месяцев назад

    im 1001 view

  • @game_god7198
    @game_god7198 5 месяцев назад

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

    • @trixscriptz
      @trixscriptz  5 месяцев назад

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

    • @game_god7198
      @game_god7198 5 месяцев назад

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

    • @game_god7198
      @game_god7198 5 месяцев назад

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