BASIC RESET GUI
Stuff in the '[' and ']'s are notes.
Well, to start off open Tools and insert a ScreenGui into StarterGui
[
Now you can add items to ScreenGui to make them visible,
]
Add a Frame to ScreenGui
[
Frames are very basic - Used mainly for coloring areas and holding other GUIs
]
Now you should have this:
StarterGui
+ScreenGui
++Frame
Mess arround with the position and size
[
Position and Size are UDim2 values.
This is how they work:
{ScaleX,OffsetX},{ScaleY,OffsetY}
Scale is 0-1 (But it can go higher, not reccomended at start) and its the size generated in proportion to its parents size.
Offset is in Pixels, not so good for positioning, but good for making Squares and GUIs that MUST be in a certain size to work (Probably cos theyll be pixilated if larger)
]
Add a TextButton to Frame
[
TextButtons cal be clicked and dragged.
]
Now you should have this:
StarterGui
+ScreenGui
++Frame
+++TextButton
Mess around with the Position and Size
Add a LocalScript to the TextButton
Now you should have this:
StarterGui
+ScreenGui
++Frame
+++TextButton
++++LocalScript
Here is a basic script for a Reset (Based on our Family Tree)
script.Parent.MouseButton1Down:connect(function(x,y)
script.Parent.Parent.Parent.Parent.Parent.Character.Head:Remove()
end)
WERE DONE! =3 |