Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Hey twaster, Alright I'll show you how this works.
- local Plr =game.Players.LocalPlayer -- Gets Local Player
- local stat =Plr:WaitForChild("stats") -- Doesn't continue until "stats" is found in player
- local rep =stat:WaitForChild("rep") --Doesn't continue until the value "rep" is found in stat
- rep.Changed:connect(function() -- Fires function once the value "rep" was changed (i.e. 49 turns into 50
- 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)
- -- There is a "AddedRep" TextLabel in the parent of this script. Please use it to your advantage or/and use your "output"
- -- Thanks Senpai! <3
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement