Advertisement
StenHisDirt

Untitled

Jul 25th, 2020 (edited)
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.66 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local Mouse1 = Instance.new("Frame")
  4. local TextLabel = Instance.new("TextLabel")
  5. local Mouse2 = Instance.new("Frame")
  6. local TextLabel_2 = Instance.new("TextLabel")
  7. local S = Instance.new("Frame")
  8. local TextLabel_3 = Instance.new("TextLabel")
  9. local Space = Instance.new("Frame")
  10. local Frame_2 = Instance.new("Frame")
  11. local W = Instance.new("Frame")
  12. local TextLabel_4 = Instance.new("TextLabel")
  13. local D = Instance.new("Frame")
  14. local TextLabel_5 = Instance.new("TextLabel")
  15. local A = Instance.new("Frame")
  16. local TextLabel_6 = Instance.new("TextLabel")
  17. local Resizer = Instance.new("Frame")
  18. local UISizeConstraint = Instance.new("UISizeConstraint")
  19.  
  20. ScreenGui.Parent = game.CoreGui
  21. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  22.  
  23. Frame.Parent = ScreenGui
  24. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  25. Frame.BackgroundTransparency = 1.000
  26. Frame.Position = UDim2.new(0.577625573, 0, 0.417690367, 0)
  27. Frame.Size = UDim2.new(0, 170, 0, 169)
  28.  
  29. Mouse1.Name = "Mouse1"
  30. Mouse1.Parent = Frame
  31. Mouse1.BackgroundColor3 = Color3.fromRGB(97, 97, 97)
  32. Mouse1.BorderSizePixel = 0
  33. Mouse1.Position = UDim2.new(0.0399999991, 0, 0.779999971, 0)
  34. Mouse1.Size = UDim2.new(0, 76, 0, 32)
  35.  
  36. TextLabel.Parent = Mouse1
  37. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  38. TextLabel.BackgroundTransparency = 1.000
  39. TextLabel.Size = UDim2.new(0, 76, 0, 32)
  40. TextLabel.Font = Enum.Font.SourceSans
  41. TextLabel.Text = "Mouse1"
  42. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  43. TextLabel.TextScaled = true
  44. TextLabel.TextSize = 50.000
  45. TextLabel.TextWrapped = true
  46.  
  47. Mouse2.Name = "Mouse2"
  48. Mouse2.Parent = Frame
  49. Mouse2.BackgroundColor3 = Color3.fromRGB(97, 97, 97)
  50. Mouse2.BorderSizePixel = 0
  51. Mouse2.Position = UDim2.new(0.515999973, 0, 0.779999971, 0)
  52. Mouse2.Size = UDim2.new(0, 76, 0, 32)
  53.  
  54. TextLabel_2.Parent = Mouse2
  55. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  56. TextLabel_2.BackgroundTransparency = 1.000
  57. TextLabel_2.Size = UDim2.new(0, 76, 0, 32)
  58. TextLabel_2.Font = Enum.Font.SourceSans
  59. TextLabel_2.Text = "Mouse2"
  60. TextLabel_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  61. TextLabel_2.TextScaled = true
  62. TextLabel_2.TextSize = 50.000
  63. TextLabel_2.TextWrapped = true
  64.  
  65. S.Name = "S"
  66. S.Parent = Frame
  67. S.BackgroundColor3 = Color3.fromRGB(97, 97, 97)
  68. S.BorderSizePixel = 0
  69. S.Position = UDim2.new(0.354669183, 0, 0.328729033, 0)
  70. S.Size = UDim2.new(0, 50, 0, 50)
  71.  
  72. TextLabel_3.Parent = S
  73. TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  74. TextLabel_3.BackgroundTransparency = 1.000
  75. TextLabel_3.Size = UDim2.new(0, 50, 0, 50)
  76. TextLabel_3.Font = Enum.Font.SourceSans
  77. TextLabel_3.Text = "S"
  78. TextLabel_3.TextColor3 = Color3.fromRGB(0, 0, 0)
  79. TextLabel_3.TextScaled = true
  80. TextLabel_3.TextSize = 100.000
  81. TextLabel_3.TextWrapped = true
  82.  
  83. Space.Name = "Space"
  84. Space.Parent = Frame
  85. Space.BackgroundColor3 = Color3.fromRGB(97, 97, 97)
  86. Space.BorderSizePixel = 0
  87. Space.Position = UDim2.new(0.0405463725, 0, 0.645760596, 0)
  88. Space.Size = UDim2.new(0, 157, 0, 20)
  89.  
  90. Frame_2.Parent = Space
  91. Frame_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  92. Frame_2.BorderSizePixel = 0
  93. Frame_2.Position = UDim2.new(0.292074978, 0, 0.349999994, 0)
  94. Frame_2.Size = UDim2.new(0, 63, 0, 6)
  95.  
  96. W.Name = "W"
  97. W.Parent = Frame
  98. W.BackgroundColor3 = Color3.fromRGB(97, 97, 97)
  99. W.BorderSizePixel = 0
  100. W.Position = UDim2.new(0.354669183, 0, 0.0129329525, 0)
  101. W.Size = UDim2.new(0, 50, 0, 50)
  102.  
  103. TextLabel_4.Parent = W
  104. TextLabel_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  105. TextLabel_4.BackgroundTransparency = 1.000
  106. TextLabel_4.Size = UDim2.new(0, 50, 0, 50)
  107. TextLabel_4.Font = Enum.Font.SourceSans
  108. TextLabel_4.Text = "W"
  109. TextLabel_4.TextColor3 = Color3.fromRGB(0, 0, 0)
  110. TextLabel_4.TextScaled = true
  111. TextLabel_4.TextSize = 100.000
  112. TextLabel_4.TextWrapped = true
  113.  
  114. D.Name = "D"
  115. D.Parent = Frame
  116. D.BackgroundColor3 = Color3.fromRGB(97, 97, 97)
  117. D.BorderSizePixel = 0
  118. D.Position = UDim2.new(0.670824468, 0, 0.328729033, 0)
  119. D.Size = UDim2.new(0, 50, 0, 50)
  120.  
  121. TextLabel_5.Parent = D
  122. TextLabel_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  123. TextLabel_5.BackgroundTransparency = 1.000
  124. TextLabel_5.Size = UDim2.new(0, 50, 0, 50)
  125. TextLabel_5.Font = Enum.Font.SourceSans
  126. TextLabel_5.Text = "D"
  127. TextLabel_5.TextColor3 = Color3.fromRGB(0, 0, 0)
  128. TextLabel_5.TextScaled = true
  129. TextLabel_5.TextSize = 100.000
  130. TextLabel_5.TextWrapped = true
  131.  
  132. A.Name = "A"
  133. A.Parent = Frame
  134. A.BackgroundColor3 = Color3.fromRGB(97, 97, 97)
  135. A.BorderSizePixel = 0
  136. A.Position = UDim2.new(0.0391325094, 0, 0.328729033, 0)
  137. A.Size = UDim2.new(0, 50, 0, 50)
  138.  
  139. TextLabel_6.Parent = A
  140. TextLabel_6.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  141. TextLabel_6.BackgroundTransparency = 1.000
  142. TextLabel_6.Size = UDim2.new(0, 50, 0, 50)
  143. TextLabel_6.Font = Enum.Font.SourceSans
  144. TextLabel_6.Text = "A"
  145. TextLabel_6.TextColor3 = Color3.fromRGB(0, 0, 0)
  146. TextLabel_6.TextScaled = true
  147. TextLabel_6.TextSize = 100.000
  148. TextLabel_6.TextWrapped = true
  149.  
  150. Resizer.Name = "Resizer "
  151. Resizer.Parent = Frame
  152. Resizer.BackgroundColor3 = Color3.fromRGB(97, 97, 97)
  153. Resizer.BorderSizePixel = 0
  154. Resizer.Position = UDim2.new(1.00572908, 0, 1.00571144, 0)
  155. Resizer.Size = UDim2.new(0, 4, 0, 4)
  156.  
  157. local UserInputService = game:GetService("UserInputService")
  158. local Player = game.Players.LocalPlayer
  159. local Mouse = Player:GetMouse()
  160. local w
  161. local a
  162. local s
  163. local d
  164. local Space2
  165. local Button1
  166. local Button2
  167. spawn(function()
  168. while wait() do
  169. if w then
  170. TextLabel_4.TextColor3 = Color3.fromRGB(97,97,97)
  171. W.BackgroundColor3 = Color3.fromRGB(255,255,255)
  172. else
  173. TextLabel_4.TextColor3 = Color3.fromRGB(255,255,255)
  174. W.BackgroundColor3 = Color3.fromRGB(97,97,97)
  175. end
  176. if a then
  177. TextLabel_6.TextColor3 = Color3.fromRGB(97,97,97)
  178. A.BackgroundColor3 = Color3.fromRGB(255,255,255)
  179. else
  180. TextLabel_6.TextColor3 = Color3.fromRGB(255,255,255)
  181. A.BackgroundColor3 = Color3.fromRGB(97,97,97)
  182. end
  183. if s then
  184. TextLabel_3.TextColor3 = Color3.fromRGB(97,97,97)
  185. S.BackgroundColor3 = Color3.fromRGB(255,255,255)
  186. else
  187. TextLabel_3.TextColor3 = Color3.fromRGB(255,255,255)
  188. S.BackgroundColor3 = Color3.fromRGB(97,97,97)
  189. end
  190. if d then
  191. TextLabel_5.TextColor3 = Color3.fromRGB(97,97,97)
  192. D.BackgroundColor3 = Color3.fromRGB(255,255,255)
  193. else
  194. TextLabel_5.TextColor3 = Color3.fromRGB(255,255,255)
  195. D.BackgroundColor3 = Color3.fromRGB(97,97,97)
  196. end
  197. if Space2 then
  198. Frame.BackgroundColor3 = Color3.fromRGB(97,97,97)
  199. Space.BackgroundColor3 = Color3.fromRGB(255,255,255)
  200. else
  201. Frame.BackgroundColor3 = Color3.fromRGB(255,255,255)
  202. Space.BackgroundColor3 = Color3.fromRGB(97,97,97)
  203. end
  204. if Button1 then
  205. TextLabel.TextColor3 = Color3.fromRGB(97,97,97)
  206. Mouse1.BackgroundColor3 = Color3.fromRGB(255,255,255)
  207. else
  208. TextLabel.TextColor3 = Color3.fromRGB(255,255,255)
  209. Mouse1.BackgroundColor3 = Color3.fromRGB(97,97,97)
  210. end
  211. if Button2 then
  212. TextLabel_2.TextColor3 = Color3.fromRGB(97,97,97)
  213. Mouse2.BackgroundColor3 = Color3.fromRGB(255,255,255)
  214. else
  215. TextLabel_2.TextColor3 = Color3.fromRGB(255,255,255)
  216. Mouse2.BackgroundColor3 = Color3.fromRGB(97,97,97)
  217. end
  218. end
  219. end)
  220. UserInputService.InputBegan:Connect(function(input)
  221. if input.KeyCode == Enum.KeyCode.W then
  222. w = true
  223. elseif input.KeyCode == Enum.KeyCode.A then
  224. a = true
  225. elseif input.KeyCode == Enum.KeyCode.S then
  226. s = true
  227. elseif input.KeyCode == Enum.KeyCode.D then
  228. d = true
  229. elseif input.KeyCode == Enum.KeyCode.Space then
  230. Space2 = true
  231. end
  232. end)
  233. UserInputService.InputEnded:Connect(function(input)
  234. if input.KeyCode == Enum.KeyCode.W then
  235. w = false
  236. elseif input.KeyCode == Enum.KeyCode.A then
  237. a = false
  238. elseif input.KeyCode == Enum.KeyCode.S then
  239. s = false
  240. elseif input.KeyCode == Enum.KeyCode.D then
  241. d = false
  242. elseif input.KeyCode == Enum.KeyCode.Space then
  243. Space2 = false
  244. end
  245. end)
  246. Mouse.Button1Down:connect(function()
  247. Button1 = true
  248. end)
  249. Mouse.Button1Up:connect(function()
  250. Button1 = false
  251. end)
  252. Mouse.Button2Down:connect(function()
  253. Button2 = true
  254. end)
  255. Mouse.Button2Up:connect(function()
  256. Button2 = false
  257. end)
  258. for i,v in pairs(Frame:GetDescendants()) do
  259. if v:IsA("Frame") then
  260. v.BorderSizePixel = 0
  261. v.BackgroundTransparency = 0.6
  262. elseif v:IsA("TextLabel") then
  263. v.TextTransparency = 0.6
  264. end
  265. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement