SHARE
TWEET

Stat Changes Gui

PandaBoySub Dec 5th, 2019 121 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local _local = game.Players.LocalPlayer
  2. -- Objects
  3.  
  4. local WindowH = Instance.new("ScreenGui")
  5. local Window = Instance.new("Frame")
  6. local TopBar = Instance.new("Frame")
  7. local X = Instance.new("ImageButton")
  8. local HeaderOfTopBar = Instance.new("TextLabel")
  9. local ChangeList = Instance.new("TextButton")
  10. local Content = Instance.new("Frame")
  11. local StatsList = Instance.new("ScrollingFrame")
  12. local StatButton = Instance.new("TextButton")
  13. local Buttons = Instance.new("Frame")
  14. local Change = Instance.new("TextButton")
  15. local CurrentStat = Instance.new("TextLabel")
  16. local Value = Instance.new("TextBox")
  17. local CurrentPlayer = Instance.new("TextLabel")
  18. local PlayerList = Instance.new("ScrollingFrame")
  19. local PlayerButton = Instance.new("TextButton")
  20.  
  21. -- Properties
  22.  
  23. WindowH.Name = "WindowH"
  24. WindowH.Parent = (pcall(function() WindowH.Parent = game.CoreGui end) and game.CoreGui) or (game.Players.LocalPlayer.PlayerGui)
  25.  
  26. Window.Name = "Window"
  27. Window.Parent = WindowH
  28. Window.Active = true
  29. Window.BackgroundColor3 = Color3.new(0.333333, 0.666667, 1)
  30. Window.BorderColor3 = Color3.new(0.333333, 0.666667, 1)
  31. Window.BorderSizePixel = 3
  32. Window.Draggable = true
  33. Window.Position = UDim2.new(0, 177, 0, 137)
  34. Window.Size = UDim2.new(0, 471, 0, 322)
  35.  
  36. TopBar.Name = "TopBar"
  37. TopBar.Parent = Window
  38. TopBar.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
  39. TopBar.BackgroundTransparency = 0.30000001192093
  40. TopBar.BorderSizePixel = 0
  41. TopBar.Size = UDim2.new(0, 471, 0, 29)
  42.  
  43. X.Name = "X"
  44. X.Parent = TopBar
  45. X.BackgroundColor3 = Color3.new(1, 1, 1)
  46. X.Position = UDim2.new(0, 442, 0, 0)
  47. X.Size = UDim2.new(0, 29, 0, 28)
  48. X.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  49. X.Image = "rbxassetid://190837466"
  50.  
  51. HeaderOfTopBar.Name = "HeaderOfTopBar"
  52. HeaderOfTopBar.Parent = TopBar
  53. HeaderOfTopBar.BackgroundColor3 = Color3.new(0, 0, 0)
  54. HeaderOfTopBar.BackgroundTransparency = 0.89999997615814
  55. HeaderOfTopBar.Size = UDim2.new(0, 322, 0, 28)
  56. HeaderOfTopBar.Font = Enum.Font.SourceSans
  57. HeaderOfTopBar.Text = " Welcome to Anonymous's StatChanger GUI"
  58. HeaderOfTopBar.TextColor3 = Color3.new(1, 1, 1)
  59. HeaderOfTopBar.TextScaled = true
  60. HeaderOfTopBar.TextSize = 14
  61. HeaderOfTopBar.TextWrapped = true
  62. HeaderOfTopBar.TextXAlignment = Enum.TextXAlignment.Left
  63.  
  64. ChangeList.Name = "Change List"
  65. ChangeList.Parent = TopBar
  66. ChangeList.BackgroundColor3 = Color3.new(0.764706, 0.580392, 0.580392)
  67. ChangeList.BackgroundTransparency = 0.60000002384186
  68. ChangeList.BorderColor3 = Color3.new(0.87451, 0.87451, 0.87451)
  69. ChangeList.Position = UDim2.new(0, 354, 0, 6)
  70. ChangeList.Size = UDim2.new(0, 82, 0, 16)
  71. ChangeList.Font = Enum.Font.ArialBold
  72. ChangeList.Text = "Change List"
  73. ChangeList.TextColor3 = Color3.new(0.568627, 0, 0)
  74. ChangeList.TextSize = 11
  75. ChangeList.TextWrapped = true
  76.  
  77. Content.Name = "Content"
  78. Content.Parent = Window
  79. Content.BackgroundColor3 = Color3.new(0, 0, 0)
  80. Content.BackgroundTransparency = 0.5
  81. Content.BorderColor3 = Color3.new(0.611765, 0.611765, 0.611765)
  82. Content.Position = UDim2.new(0, 0, 0, 29)
  83. Content.Size = UDim2.new(0, 471, 0, 293)
  84.  
  85. StatsList.Name = "StatsList"
  86. StatsList.Parent = Content
  87. StatsList.BackgroundColor3 = Color3.new(0.262745, 0.262745, 0.262745)
  88. StatsList.BackgroundTransparency = 0.60000002384186
  89. StatsList.BorderColor3 = Color3.new(0, 0, 0)
  90. StatsList.BorderSizePixel = 0
  91. StatsList.Position = UDim2.new(0, 235, 0, 0)
  92. StatsList.Size = UDim2.new(0, 236, 0, 293)
  93. StatsList.BottomImage = ""
  94. StatsList.ScrollBarThickness = 5
  95. StatsList.TopImage = ""
  96.  
  97. StatButton.Name = "StatButton"
  98. StatButton.Parent = StatsList
  99. StatButton.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
  100. StatButton.BackgroundTransparency = 0.86000001430511
  101. StatButton.Position = UDim2.new(0.0466101691, 0, 0.0102389064, 0)
  102. StatButton.Size = UDim2.new(0, 214, 0, 32)
  103. StatButton.Font = Enum.Font.SourceSans
  104. StatButton.Text = "Stat Names"
  105. StatButton.TextColor3 = Color3.new(1, 1, 1)
  106. StatButton.TextSize = 23
  107. StatButton.TextWrapped = true
  108.  
  109. Buttons.Name = "Buttons"
  110. Buttons.Parent = Content
  111. Buttons.BackgroundColor3 = Color3.new(0.34902, 0.34902, 0.34902)
  112. Buttons.BackgroundTransparency = 0.89999997615814
  113. Buttons.Size = UDim2.new(0, 236, 0, 293)
  114.  
  115. Change.Name = "Change"
  116. Change.Parent = Buttons
  117. Change.BackgroundColor3 = Color3.new(0.470588, 0.470588, 0.470588)
  118. Change.BackgroundTransparency = 0.5
  119. Change.Position = UDim2.new(0.0466101691, 0, 0.69624573, 0)
  120. Change.Size = UDim2.new(0, 214, 0, 31)
  121. Change.Font = Enum.Font.SourceSans
  122. Change.Text = "Change"
  123. Change.TextColor3 = Color3.new(1, 1, 1)
  124. Change.TextSize = 19
  125. Change.TextWrapped = true
  126.  
  127. CurrentStat.Name = "CurrentStat"
  128. CurrentStat.Parent = Buttons
  129. CurrentStat.BackgroundColor3 = Color3.new(1, 1, 1)
  130. CurrentStat.BackgroundTransparency = 1
  131. CurrentStat.Position = UDim2.new(0, 11, 0, 267)
  132. CurrentStat.Size = UDim2.new(0, 214, 0, 26)
  133. CurrentStat.Font = Enum.Font.SourceSans
  134. CurrentStat.Text = "Current Stat"
  135. CurrentStat.TextColor3 = Color3.new(1, 1, 1)
  136. CurrentStat.TextScaled = true
  137. CurrentStat.TextSize = 14
  138. CurrentStat.TextStrokeTransparency = 0.69999998807907
  139. CurrentStat.TextWrapped = true
  140. CurrentStat.TextXAlignment = Enum.TextXAlignment.Left
  141.  
  142. Value.Name = "Value"
  143. Value.Parent = Buttons
  144. Value.BackgroundColor3 = Color3.new(0.34902, 0.34902, 0.34902)
  145. Value.BackgroundTransparency = 0.60000002384186
  146. Value.Position = UDim2.new(0, 11, 0, 6)
  147. Value.Size = UDim2.new(0, 214, 0, 32)
  148. Value.Font = Enum.Font.SourceSans
  149. Value.PlaceholderColor3 = Color3.new(1, 1, 1)
  150. Value.Text = "Value here"
  151. Value.TextColor3 = Color3.new(1, 1, 1)
  152. Value.TextSize = 21
  153. Value.TextWrapped = true
  154.  
  155. CurrentPlayer.Name = "CurrentPlayer"
  156. CurrentPlayer.Parent = Buttons
  157. CurrentPlayer.BackgroundColor3 = Color3.new(1, 1, 1)
  158. CurrentPlayer.BackgroundTransparency = 1
  159. CurrentPlayer.Position = UDim2.new(0, 11, 0, 241)
  160. CurrentPlayer.Size = UDim2.new(0, 224, 0, 26)
  161. CurrentPlayer.Font = Enum.Font.SourceSans
  162. CurrentPlayer.Text = "fantasygamery"
  163. CurrentPlayer.TextColor3 = Color3.new(1, 1, 1)
  164. CurrentPlayer.TextScaled = true
  165. CurrentPlayer.TextSize = 14
  166. CurrentPlayer.TextStrokeTransparency = 0.69999998807907
  167. CurrentPlayer.TextWrapped = true
  168. CurrentPlayer.TextXAlignment = Enum.TextXAlignment.Left
  169.  
  170. PlayerList.Name = "PlayerList"
  171. PlayerList.Parent = Content
  172. PlayerList.BackgroundColor3 = Color3.new(1, 1, 1)
  173. PlayerList.BackgroundTransparency = 0.89999997615814
  174. PlayerList.BorderColor3 = Color3.new(0.333333, 0.666667, 1)
  175. PlayerList.Position = UDim2.new(0, 235, 0, 0)
  176. PlayerList.Size = UDim2.new(0, 236, 0, 293)
  177. PlayerList.Visible = false
  178. PlayerList.BottomImage = ""
  179. PlayerList.ScrollBarThickness = 5
  180. PlayerList.TopImage = ""
  181. PlayerList.BorderSizePixel=0
  182.  
  183. PlayerButton.Name = "PlayerButton"
  184. PlayerButton.Parent = PlayerList
  185. PlayerButton.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
  186. PlayerButton.BackgroundTransparency = 0.86000001430511
  187. PlayerButton.Position = UDim2.new(0.0466101691, 0, 0.0102389064, 0)
  188. PlayerButton.Size = UDim2.new(0, 214, 0, 32)
  189. PlayerButton.Font = Enum.Font.SourceSans
  190. PlayerButton.Text = "Player's Names"
  191. PlayerButton.TextColor3 = Color3.new(1, 1, 1)
  192. PlayerButton.TextSize = 23
  193. PlayerButton.TextWrapped = true
  194. ------------------
  195. local stats = {}
  196. local pos = 0
  197. local Stats = function() return _local:FindFirstChild'leaderstats' end
  198. local point = 1
  199. local _player = function() return game.Players[CurrentPlayer.Text] end
  200. local head = HeaderOfTopBar.Text
  201. repeat wait(.5) HeaderOfTopBar.Text='Waiting for leaderstats'..string.rep('.',point) if point >= 3 then point=1 else point=point+1 end until Stats()~= nil and Stats() ~= false
  202. HeaderOfTopBar.Text = head
  203. local value=function() return tonumber(Value.Text) or 0 end
  204. if Stats() ~=  nil then
  205. for _,v in pairs(Stats():GetChildren()) do
  206. table.insert(stats, v)
  207. pos = pos+50
  208. button = StatButton:Clone()
  209. button.Parent = StatsList
  210. button.Position = UDim2.new(0.047, 0,0,pos)
  211. button.Name = v.Name
  212. button.Text = "[Stat]: "..v.Name
  213.  
  214. end
  215. for _,v in pairs(StatsList:GetChildren()) do
  216. if v.Name ~= "StatButton" then
  217. v.MouseButton1Down:connect(function()
  218. CurrentStat.Text = v.Name
  219. end)
  220. end
  221. end
  222. else
  223. pos = pos+50
  224. button = StatButton:Clone()
  225. button.Parent = StatsList
  226. button.Position = UDim2.new(0.047,0,0,pos)
  227. button.Name = 'NoStats'
  228. button.Text = "No Stats Found"
  229.  
  230. end
  231. local pos2 = 0
  232. for _,p in pairs(game.Players:GetChildren()) do
  233. pos2 = pos2+50
  234. playerbutton = PlayerButton:Clone()
  235. playerbutton.Parent = PlayerList
  236. playerbutton.Position = UDim2.new(0.047,0,0,pos2)
  237. playerbutton.Name = p.Name
  238. playerbutton.Text = p.Name
  239. for _,p in pairs(PlayerList:GetChildren()) do
  240. _G.p = p
  241. if p.Name ~= "PlayerButton" then
  242. p.MouseButton1Down:Connect(function()
  243. CurrentPlayer.Text = p.Name
  244. end)
  245. end
  246. end
  247. end
  248. local back = HeaderOfTopBar.Text
  249. Change.MouseButton1Down:Connect(function()
  250. HeaderOfTopBar.Text = "Changing to ["..value().."]"
  251. wait(1)
  252. local Wait = .6
  253. _player().leaderstats[CurrentStat.Text].Value = value()
  254. HeaderOfTopBar.Text = "Checking..."
  255.  
  256. local statVal = tonumber(value())
  257.  
  258.  
  259. if game.Players[CurrentPlayer.Text].leaderstats[CurrentStat.Text].Value == statVal and game.Players[CurrentPlayer.Text].leaderstats[CurrentStat.Text].ClassName ~= "StringValue" then
  260. HeaderOfTopBar.Text = "Done!"
  261. print("Value= ["..statVal.."]")
  262. elseif game.Players[CurrentPlayer.Text].leaderstats[CurrentStat.Text].ClassName == "StringValue" and game.Players[CurrentPlayer.Text].leaderstats[CurrentStat.Text].Value == value() then
  263. HeaderOfTopBar.Text = "Done!"
  264. print("Value= ["..Value.Text.."]")
  265. else HeaderOfTopBar.Text = "ERROR: Check your Value or The game has anti Stat Change"
  266.  
  267. warn("Check your Value or The game has anti Stat Change")
  268. print("Value=["..statVal.."]")
  269. Wait = 5
  270. end
  271. wait(Wait)
  272. HeaderOfTopBar.Text = back
  273. end)
  274. local backSize = Window.Size
  275. X.MouseButton1Down:Connect(function()
  276. if Window.Size == backSize then
  277.  
  278.  for _, x in pairs(Window:GetChildren()) do
  279. if x.Name ~= "TopBar" then
  280.  
  281. x.Visible = false
  282.  
  283. end
  284. end
  285.  
  286. Window:TweenSize(UDim2.new(0, 471,0, 28),'Out','Quad',1,true)
  287.  
  288. elseif Window.Size ~= backSize then
  289. Window:TweenSize(UDim2.new(0, 471,0, 322),'Out','Quad',1,true)
  290. wait(.8)
  291. for _, x in pairs(Window:GetChildren()) do
  292.  
  293. if x.Name ~= "TopBar" then
  294. x.Visible = true
  295. end
  296. end
  297.  
  298. end
  299. end)
  300.  
  301. ChangeList.MouseButton1Down:Connect(function()
  302. if PlayerList.Visible == true and StatsList.Visible == false then
  303. PlayerList.Visible = false
  304. StatsList.Visible = true
  305. elseif PlayerList.Visible == false and StatsList.Visible == true then
  306. PlayerList.Visible = true
  307. StatsList.Visible = false
  308. end
  309. end)
  310. player = _G.p
  311. game.Players.PlayerRemoving:Connect(function(plr)
  312. if player.Name == plr.Name then
  313. player:Destroy()
  314. pos2 = pos2-50
  315. end
  316. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top