Roblox News Twitch Roblox News YouTube Roblox News Duck Hunt 2014 Roblox News Egg Hunt 2014 Spotlight of Silence

Saturday, August 11, 2012

Some Gui Functions!

Yo, it's me again. Zak. I am going to show you some gui functions and the way of changing them. This will be a short tutorial on GUI. So remember- pay attention!

Creating your own function:
Creating a function of your own can easily be done, you can just do something like...

So, this is a function I made up in a few seconds.
function hover() --Custom function
BLANK--in these blank lines, will be what the script will do when you "hover" over the gui.
end --Ending the function.
script.Parent.MouseEnter:connect(hover) --script.Parent=the button you will hover over. MouseEnter:connect(hover)= connects the custom function to the mouse enter method.

Now, we'll add some things inside...

Here I have a frame, textbutton and a screengui - obviously! :P
The frame is not visible, so we can make it visible when you hover over it!
Inside the code:

A short video, what it does:
What about other functions?
Now, MouseEnter() is just one method. There is tons of others, and they never stop....
How about an intro? All we need is a frame, a screengui, and a textlabel!!
How about this...
Frame Size= {1, 0, 1, 0}
Frame position= {0, 0, 0, 0}
TextLabel Size = {0, 0, 0, 0}
TextLabel Position = {0.5, 0, 0.5 0}
[Note]: The TextLabel is in the Frame.
The script that is in the frame:

You can just cut out the textstroketransparency if you aren't using TextStroke. :)
What it does:
If you want to delete the background after the text has faded, or even fade the background at the same time, just do this instead of the code above...

for i=0.01, 1, 0.01 do

1 comment:

Write your comment here... OR Flingi will eat you