Advertisement
dahpiglz

HeadScaler

Aug 11th, 2017
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.92 KB | None | 0 0
  1. local avoid = ("robloxandtyler")
  2. local player = game.Players.LocalPlayer
  3. local screengui = Instance.new("ScreenGui")
  4. screengui.Parent = player.PlayerGui
  5. local textbutton3 = Instance.new("TextButton")
  6. local textbutton4 = Instance.new("TextButton")
  7. local textbar3 = Instance.new("TextBox")
  8. textbar3.Parent = screengui
  9. textbar3.Position = UDim2.new(0, 0, 0.428, 0)
  10. textbar3.Size = UDim2.new(0, 126, 0, 18)
  11. textbar3.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  12. textbar3.TextColor3 = Color3.new(240, 240, 240)
  13. textbar3.BackgroundTransparency = (0)
  14. textbar3.BorderSizePixel = (0)
  15. textbutton3.Parent = screengui
  16. textbutton3.Text = ("Freeze")
  17. textbutton3.Position = UDim2.new(0, 0, 0.392, 0)
  18. textbutton3.Size = UDim2.new(0, 126, 0, 18)
  19. textbutton3.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  20. textbutton3.TextColor3 = Color3.new(240, 240, 240)
  21. textbutton3.BackgroundTransparency = (0)
  22. textbutton3.BorderSizePixel = (0)
  23. textbutton4.Parent = screengui
  24. textbutton4.Text = ("Thaw")
  25. textbutton4.Position = UDim2.new(0, 0, 0.410, 0)
  26. textbutton4.Size = UDim2.new(0, 126, 0, 18)
  27. textbutton4.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  28. textbutton4.TextColor3 = Color3.new(240, 240, 240)
  29. textbutton4.BackgroundTransparency = (0)
  30. textbutton4.BorderSizePixel = (0)
  31.  
  32.  
  33. function onClick()
  34. if textbar3.Text == ("all") then
  35. for i,w in pairs(game.Players:GetChildren()) do
  36. local character = game.Workspace:FindFirstChild(w.Name)
  37. for i,v in pairs(character:GetChildren()) do
  38. if v.ClassName == ("Part") then
  39. if v.Parent.Name ~= (avoid) then
  40. v.Anchored = true
  41. end
  42. end
  43. end
  44. end
  45. end
  46. if textbar3.Text ~= ("all") then
  47. character = game.Workspace:FindFirstChild(textbar3.Text)
  48. for i,v in pairs(character:GetChildren()) do
  49. if v.ClassName == ("Part") then
  50. v.Anchored = true
  51. end
  52. end
  53. end
  54. end
  55.  
  56. textbutton3.MouseButton1Click:connect(onClick)
  57.  
  58. function onClick()
  59. if textbar3.Text == ("all") then
  60. for i,w in pairs(game.Players:GetChildren()) do
  61. local character = game.Workspace:FindFirstChild(w.Name)
  62. for i,v in pairs(character:GetChildren()) do
  63. if v.ClassName == ("Part") then
  64. if v.Name ~= (avoid) then
  65. v.Anchored = false
  66. end
  67. end
  68. end
  69. end
  70. end
  71. if textbar3.Text ~= ("all") then
  72. character = game.Workspace:FindFirstChild(textbar3.Text)
  73. for i,v in pairs(character:GetChildren()) do
  74. if v.ClassName == ("Part") then
  75. v.Anchored = false
  76. end
  77. end
  78. end
  79. end
  80.  
  81. textbutton4.MouseButton1Click:connect(onClick)
  82.  
  83. local screengui = Instance.new("ScreenGui")
  84. screengui.Parent = player.PlayerGui
  85. local textbutton2 = Instance.new("TextButton")
  86. local textbar2 = Instance.new("TextBox")
  87. textbar2.Parent = screengui
  88. textbar2.Position = UDim2.new(0, 0, 0.370, 0)
  89. textbar2.Size = UDim2.new(0, 126, 0, 18)
  90. textbar2.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  91. textbar2.TextColor3 = Color3.new(240, 240, 240)
  92. textbar2.BackgroundTransparency = (0)
  93. textbar2.BorderSizePixel = (0)
  94. textbutton2.Parent = screengui
  95. textbutton2.Text = ("Kill")
  96. textbutton2.Position = UDim2.new(0, 0, 0.352, 0)
  97. textbutton2.Size = UDim2.new(0, 126, 0, 18)
  98. textbutton2.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  99. textbutton2.TextColor3 = Color3.new(240, 240, 240)
  100. textbutton2.BackgroundTransparency = (0)
  101. textbutton2.BorderSizePixel = (0)
  102.  
  103. function onClick()
  104. if textbar2.Text == ("all") then
  105. for i,w in pairs(game.Players:GetChildren()) do
  106. local character = game.Workspace:FindFirstChild(w.Name)
  107. for i,v in pairs(character:GetChildren()) do
  108. if v.ClassName == ("Part") then
  109. if character.Name ~= (avoid) then
  110. v:Remove()
  111. end
  112. end
  113. end
  114. end
  115. if textbar2.Text ~= ("all") then
  116. character = game.Workspace:FindFirstChild(textbar2.Text)
  117. character:Remove()
  118. end
  119. end
  120. end
  121.  
  122. textbutton2.MouseButton1Click:connect(onClick)
  123.  
  124. local player = game.Players.LocalPlayer
  125. local screengui = Instance.new("ScreenGui")
  126. screengui.Parent = player.PlayerGui
  127. local textbutton5 = Instance.new("TextButton")
  128. textbutton5.Parent = screengui
  129. textbutton5.Position = UDim2.new(0, 0, 0.275, 0)
  130. textbutton5.Size = UDim2.new(0, 126, 0, 18)
  131. textbutton5.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  132. textbutton5.TextColor3 = Color3.new(240, 240, 240)
  133. textbutton5.BackgroundTransparency = (0)
  134. textbutton5.Text = ("Gravity")
  135.  
  136. textbutton5.BorderSizePixel = (0)
  137.  
  138. function onClick()
  139. game.Workspace.Gravity = (196.2)
  140. end
  141.  
  142. textbutton5.MouseButton1Click:connect(onClick)
  143.  
  144. local player = game.Players.LocalPlayer
  145. local screengui = Instance.new("ScreenGui")
  146. screengui.Parent = player.PlayerGui
  147. local textbutton6 = Instance.new("TextButton")
  148. textbutton6.Parent = screengui
  149. textbutton6.Position = UDim2.new(0, 0, 0.298, 0)
  150. textbutton6.Size = UDim2.new(0, 126, 0, 18)
  151. textbutton6.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  152. textbutton6.TextColor3 = Color3.new(240, 240, 240)
  153. textbutton6.BackgroundTransparency = (0)
  154. textbutton6.Text = ("NoGravity")
  155.  
  156. textbutton5.BorderSizePixel = (0)
  157.  
  158. function onClick()
  159. game.Workspace.Gravity = (0)
  160. end
  161.  
  162. textbutton6.MouseButton1Click:connect(onClick)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement