Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. -- Hey twaster, Alright I'll show you how this works.
  2.  
  3. local Plr =game.Players.LocalPlayer -- Gets Local Player
  4. local stat =Plr:WaitForChild("stats") -- Doesn't continue until "stats" is found in player
  5. local rep =stat:WaitForChild("rep") --Doesn't continue until the value "rep" is found in stat
  6. rep.Changed:connect(function() -- Fires function once the value "rep" was changed (i.e. 49 turns into 50
  7. script.Parent.Position = UDim2.new(rep.Value/100--[[Turns rep's value into a decimal]], 0, 0.06--[[Make's it stay the same position in Y as before]], 0)
  8. -- There is a "AddedRep" TextLabel in the parent of this script. Please use it to your advantage or/and use your "output"
  9. -- Thanks Senpai! <3
  10. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement