Welcome everyone. Today i'm gonna show you how to make a button what when is clicked that gives you a gun/item
I got a simple handgun
I typed tool lol. Insert a folder to ReplicatedStorage and name it ,,Guns'' or ,,Items'' :D
Put tool/gun in folder :D
Add a screen gui to StarterGui
Add a frame. If you want add and a text button/image button
Place Frame where you want :D
I'm gonna fix TextButton location to can move it :D
If you added a TextButton change text to ,,OPEN''
If you want can toggle TextScaled
Add a LocalScript to TextButton if you added one :D
Follow my steps
Add a TextButton to frame. After change text to name of Tool/Gun
Add LocalScript to TextButton of Frame
Type what i'm gonna type
If you don't type like me that didn't gonna work
You enjoy? Like the video :D
I typed Guns but type your Folder's name.
That move Gun/Item to backpack
DONE :D
If you added and a open button make frame invisible like me
Oops i forgot add a close button to frame D:
You already know story.
Enjoy? Hit like button.
That works. :D Say in comments if it worked for you.
Can't get 2 or more same items.
If you don't copied script, can copy it now.
Everyone want to be popular, this is a way: Create games, Cool Games
Read
NEED BE LOCAL SCRIPT OR THAT NOT WORKS
Note: All scripts need be local scripts
Không có nhận xét nào:
Đăng nhận xét