About: Tutorial:GUI/Reset GUI   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

The position is a UDim2 position. The first table is the X and the second table is the Y. In both tables, the first number is the scale. The scale is on a scale of 0-1. Halfway would be 0.5, Quarter-way would be 0.25. The second number is the offset. The offset on the Y table is -10 because I want the TextButton to be halfway on the Y axis take away 10 pixels.

AttributesValues
rdfs:label
  • Tutorial:GUI/Reset GUI
rdfs:comment
  • The position is a UDim2 position. The first table is the X and the second table is the Y. In both tables, the first number is the scale. The scale is on a scale of 0-1. Halfway would be 0.5, Quarter-way would be 0.25. The second number is the offset. The offset on the Y table is -10 because I want the TextButton to be halfway on the Y axis take away 10 pixels.
dcterms:subject
abstract
  • The position is a UDim2 position. The first table is the X and the second table is the Y. In both tables, the first number is the scale. The scale is on a scale of 0-1. Halfway would be 0.5, Quarter-way would be 0.25. The second number is the offset. The offset on the Y table is -10 because I want the TextButton to be halfway on the Y axis take away 10 pixels. 1. * Set it's size to: {0.1, 0}, {20, 0} 2. * Set the BackgroundColor3 to any color you like. 3. * Set the TextColor3 to any color you like (make sure it stands out from the background color.) 4. * Now, go to Insert > Object > Script and move the script inside of the TextButton. 5. * Double-click the script. Copy and paste this in: local player = script.Parent.Parent.Parent.Parent -- Get the player function onMouseClicked() if player.Character ~= nil then -- If the player isn't respawning then if player.Character:findFirstChild("Humanoid") then -- If we can find the player's humanoid then player.Character.Humanoid:TakeDamage(100) -- Take away the player's health. end end end script.Parent.MouseButton1Down:connect(onMouseClicked) -- Connect to the onMouseClicked function when the button is pressed 1. * Make sure everything is setup then try it out!
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software