How to make a simple tool in Roblox Studio

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hiy today I'm be showing you how to make a simple tool on Roblox studio so I'll try to keep this one quick first you want a mesh and it doesn't really matter what the mesh is it's just like what's your item going to look like so I'm going to make a healing Burger so inside the toolbox I'll look for a burger mesh and I found one make sure there's no scripts cuz like some people put viruses in these so you have your mesh part looks like this it's a hamburger cheeseburger now we need to make a part so we need to make the handle so take a part and size it to be about the same size as your uh Burger mesh or whatever your meshes and then name it handle with a capital H now this is a little janky I don't have a mouse right now so I'm just trying to make it work now then take the mesh part put it inside of the handle and then instead of workspace create a tool and put the handle inside of the tool and I'm going to name the tool Burger so now we have a tool oh yeah make the transparency of the handle one turn off can Collide oops can Collide and do the same for the burger just so you don't accidentally touch it do not touch the burger All right so now that we have the burger itself in needed to make it work so I'm going to make a so the Burger can heal you so you add a script and we'll just name it tool Handler so we need to add a few variables so local tool equals script. parent and then local whoa my monitor just killed itself okay local player equals tool. parent. parar okay local character cated root part equals nil nil so basically since we don't have a uh we we haven't gotten the character or the humanid root part yet I'm just setting both of the variables inside of one variable cuz you can do that so they're both equal to nil meaning they just don't equal anything it's the same as doing this like this also says to the nil but this is easier to read so all right tool. equip yeah equip connect function and then we'll do tool. handle. anchored equals false just to make sure it's not anchored and then oh yeah make sure the burger is not anchored either all right it's not all right character equals tool. parent and then human root part equals character find first child hum oops God humanoid root part so now we have set the values for character and humanoid root part so we can make the tool actually do its thing tool. activated connect function all right so now we can actually make the script heal the player so if character oops if character. humanoid do health is less than 100 then character. humanoid do Health Plus equals 50 so you'll get 50 healing from this and then tool destroy and we'll also make it so we know if the player is dead so if character. humanoid that health is greater than than zero then and then I can paste that code back in so now we have this simple tool which will heal the player so we'll take the tool and we'll put it inside of starter pack so the player has it in their inventory so there I am yeah I'm low if I eat the burger oh I forgot okay inside of the handle uh add a weld a weld constraint oh God my computer's glitching make the burger zero and make the handle one and we can try it again all right so we have our Burger so if I go and hurt my character it's nothing personal now I can eat the see my health is low I can eat the burger and I spelled Health wrong all right one last go I have to change on the server okay you can eat the burger and you'll gain plus 50 health so the code works now just make sure you spelled Health right unlike me I spiled it health you don't want Health all right so the cool thing about this script now is you can make it do basically anything regarding the player so if you use the speed coil mesh which you could do very easily instead of using this burger mesh just find a speed coil one you could change the script so say I wanted to make the burger give you a small speed boost character. humanoid walkspeed uh uh equals I think the six I think the default 16 so 24 and then c. weight 3 seconds and then character. humanoid walk spe equals 16 so this burger will give you a small speed boost and then it will be gone so oh yeah we have to be hurt so I'm at one Health I eat the burger just slightly faster now but it's not very obvious so I'm going to make it so our walk speed's like 60 all right so a simple tool that's how you can make basically any simple tool like a speed coil uh I don't know gravity coil but it's mostly just a consumable I'll show how to make like weapons in another tutorial but for now hope you enjoyed I tried to make this one as quick as possible uh yeah enjoy
Info
Channel: RKGAM3ZS
Views: 1,420
Rating: undefined out of 5
Keywords: roblox studio, roblox, roblox scripting tutorial, roblox tutorials, roblox studio tutorial, roblox studio challenge, how to script in roblox studio, how to use roblox studio, roblox studio tutorials, how to script on roblox for beginners, roblox studio for beginners, roblox studio tips, installing roblox studio, roblox studio building tips, game development, how to make items in roblox, roblox studio item giver
Id: H6yx2BN5RT0
Channel Id: undefined
Length: 7min 16sec (436 seconds)
Published: Mon Apr 15 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.