Advertisement
Guest User

The rake scriptt

a guest
Nov 12th, 2019
15,553
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.16 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3
  3.  
  4. -- Instances:
  5.  
  6. local The_rake = Instance.new("ScreenGui")
  7. local MainFrame = Instance.new("Frame")
  8. local TopFrame = Instance.new("Frame")
  9. local Time_Label = Instance.new("TextLabel")
  10. local Time_value = Instance.new("TextLabel")
  11. local Distance_label = Instance.new("TextLabel")
  12. local Distance_value = Instance.new("TextLabel")
  13. local X = Instance.new("TextLabel")
  14. local Z = Instance.new("TextLabel")
  15. local Y = Instance.new("TextLabel")
  16. local X_coordinate = Instance.new("TextLabel")
  17. local Y_coordinate = Instance.new("TextLabel")
  18. local Z_coordinate = Instance.new("TextLabel")
  19. local Power = Instance.new("TextLabel")
  20. local Power_value = Instance.new("TextLabel")
  21.  
  22. --Properties:
  23.  
  24. The_rake.Name = "The_rake"
  25. The_rake.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  26. The_rake.ResetOnSpawn = false
  27.  
  28. MainFrame.Name = "Main Frame"
  29. MainFrame.Parent = The_rake
  30. MainFrame.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  31. MainFrame.Position = UDim2.new(0.0097008897, 0, 0.0535117052, 0)
  32. MainFrame.Size = UDim2.new(0, 171, 0, 108)
  33.  
  34. TopFrame.Name = "Top Frame"
  35. TopFrame.Parent = The_rake
  36. TopFrame.BackgroundColor3 = Color3.new(0.105882, 0.105882, 0.105882)
  37. TopFrame.Position = UDim2.new(0.0097008897, 0, 0.0535117052, 0)
  38. TopFrame.Size = UDim2.new(0, 171, 0, 19)
  39.  
  40. Time_Label.Name = "Time_Label"
  41. Time_Label.Parent = The_rake
  42. Time_Label.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  43. Time_Label.Position = UDim2.new(0.0145513341, 0, 0.0852842778, 0)
  44. Time_Label.Size = UDim2.new(0, 58, 0, 23)
  45. Time_Label.Font = Enum.Font.SourceSans
  46. Time_Label.Text = "Time:"
  47. Time_Label.TextColor3 = Color3.new(1, 1, 1)
  48. Time_Label.TextSize = 14
  49.  
  50. Time_value.Name = "Time_value"
  51. Time_value.Parent = The_rake
  52. Time_value.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  53. Time_value.Position = UDim2.new(0.0614389665, 0, 0.0852842778, 0)
  54. Time_value.Size = UDim2.new(0, 85, 0, 23)
  55. Time_value.Font = Enum.Font.SourceSans
  56. Time_value.Text = "nil"
  57. Time_value.TextColor3 = Color3.new(1, 1, 1)
  58. Time_value.TextSize = 14
  59.  
  60. Distance_label.Name = "Distance_label"
  61. Distance_label.Parent = The_rake
  62. Distance_label.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  63. Distance_label.Position = UDim2.new(0.0145513341, 0, 0.123745821, 0)
  64. Distance_label.Size = UDim2.new(0, 58, 0, 23)
  65. Distance_label.Font = Enum.Font.SourceSans
  66. Distance_label.Text = "Distance:"
  67. Distance_label.TextColor3 = Color3.new(1, 1, 1)
  68. Distance_label.TextSize = 14
  69.  
  70. Distance_value.Name = "Distance_value"
  71. Distance_value.Parent = The_rake
  72. Distance_value.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  73. Distance_value.Position = UDim2.new(0.0614389665, 0, 0.123745821, 0)
  74. Distance_value.Size = UDim2.new(0, 85, 0, 23)
  75. Distance_value.Font = Enum.Font.SourceSans
  76. Distance_value.Text = "nil"
  77. Distance_value.TextColor3 = Color3.new(1, 1, 1)
  78. Distance_value.TextSize = 14
  79.  
  80. X.Name = "X"
  81. X.Parent = The_rake
  82. X.BackgroundColor3 = Color3.new(0.105882, 0.105882, 0.105882)
  83. X.BackgroundTransparency = 1
  84. X.BorderSizePixel = 0
  85. X.Position = UDim2.new(0.0145513341, 0, 0.0602006689, 0)
  86. X.Size = UDim2.new(0, 13, 0, 11)
  87. X.Font = Enum.Font.SourceSans
  88. X.Text = "X"
  89. X.TextColor3 = Color3.new(1, 1, 1)
  90. X.TextSize = 14
  91.  
  92. Z.Name = "Z"
  93. Z.Parent = The_rake
  94. Z.BackgroundColor3 = Color3.new(0.105882, 0.105882, 0.105882)
  95. Z.BackgroundTransparency = 1
  96. Z.BorderSizePixel = 0
  97. Z.Position = UDim2.new(0.0816212595, 0, 0.0602006726, 0)
  98. Z.Size = UDim2.new(0, 13, 0, 10)
  99. Z.Font = Enum.Font.SourceSans
  100. Z.Text = "Z"
  101. Z.TextColor3 = Color3.new(1, 1, 1)
  102. Z.TextSize = 14
  103.  
  104. Y.Name = "Y"
  105. Y.Parent = The_rake
  106. Y.BackgroundColor3 = Color3.new(0.105882, 0.105882, 0.105882)
  107. Y.BackgroundTransparency = 1
  108. Y.BorderSizePixel = 0
  109. Y.Position = UDim2.new(0.0523117483, 0, 0.0602006726, 0)
  110. Y.Size = UDim2.new(0, 14, 0, 10)
  111. Y.Font = Enum.Font.SourceSans
  112. Y.Text = "Y"
  113. Y.TextColor3 = Color3.new(1, 1, 1)
  114. Y.TextSize = 14
  115.  
  116. X_coordinate.Name = "X_coordinate"
  117. X_coordinate.Parent = The_rake
  118. X_coordinate.BackgroundColor3 = Color3.new(0.105882, 0.105882, 0.105882)
  119. X_coordinate.BackgroundTransparency = 0.5
  120. X_coordinate.BorderSizePixel = 0
  121. X_coordinate.Position = UDim2.new(0.0230148751, 0, 0.0602006726, 0)
  122. X_coordinate.Size = UDim2.new(0, 34, 0, 9)
  123. X_coordinate.Font = Enum.Font.SourceSans
  124. X_coordinate.Text = "nil"
  125. X_coordinate.TextColor3 = Color3.new(1, 1, 1)
  126. X_coordinate.TextSize = 18
  127.  
  128. Y_coordinate.Name = "Y_coordinate"
  129. Y_coordinate.Parent = The_rake
  130. Y_coordinate.BackgroundColor3 = Color3.new(0.105882, 0.105882, 0.105882)
  131. Y_coordinate.BackgroundTransparency = 0.5
  132. Y_coordinate.BorderSizePixel = 0
  133. Y_coordinate.Position = UDim2.new(0.0614389665, 0, 0.0602006726, 0)
  134. Y_coordinate.Size = UDim2.new(0, 31, 0, 9)
  135. Y_coordinate.Font = Enum.Font.SourceSans
  136. Y_coordinate.Text = "nil"
  137. Y_coordinate.TextColor3 = Color3.new(1, 1, 1)
  138. Y_coordinate.TextSize = 18
  139.  
  140. Z_coordinate.Name = "Z_coordinate"
  141. Z_coordinate.Parent = The_rake
  142. Z_coordinate.BackgroundColor3 = Color3.new(0.105882, 0.105882, 0.105882)
  143. Z_coordinate.BackgroundTransparency = 0.5
  144. Z_coordinate.BorderSizePixel = 0
  145. Z_coordinate.Position = UDim2.new(0.0900847986, 0, 0.0602006726, 0)
  146. Z_coordinate.Size = UDim2.new(0, 47, 0, 9)
  147. Z_coordinate.Font = Enum.Font.SourceSans
  148. Z_coordinate.Text = "nil"
  149. Z_coordinate.TextColor3 = Color3.new(1, 1, 1)
  150. Z_coordinate.TextSize = 18
  151.  
  152. Power.Name = "Power"
  153. Power.Parent = The_rake
  154. Power.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  155. Power.BorderColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  156. Power.Position = UDim2.new(0.0143229216, 0, 0.15912056, 0)
  157. Power.Size = UDim2.new(0, 58, 0, 23)
  158. Power.Font = Enum.Font.SourceSans
  159. Power.Text = "Power:"
  160. Power.TextColor3 = Color3.new(1, 1, 1)
  161. Power.TextSize = 14
  162.  
  163. Power_value.Name = "Power_value"
  164. Power_value.Parent = The_rake
  165. Power_value.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  166. Power_value.Position = UDim2.new(0.0611979179, 0, 0.160513639, 0)
  167. Power_value.Size = UDim2.new(0, 85, 0, 22)
  168. Power_value.Font = Enum.Font.SourceSans
  169. Power_value.Text = "nil"
  170. Power_value.TextColor3 = Color3.new(1, 1, 1)
  171. Power_value.TextSize = 14
  172.  
  173. -- Scripts:
  174.  
  175. local function ZUQU_fake_script() -- The_rake.Functions
  176. local script = Instance.new('LocalScript', The_rake)
  177.  
  178.  
  179. local player = game.Players.LocalPlayer
  180. local mouse = player:GetMouse()
  181.  
  182. local player = game.Players.LocalPlayer
  183. local mouse = player:GetMouse()
  184.  
  185. mouse.KeyDown:connect(function(key)
  186. if key == "x" then
  187. if script.Parent.Enabled == true then
  188. script.Parent.Enbabled = false
  189. elseif script.Parent.Enabled == false then
  190. script.Parent.Enabled = true
  191. end
  192. end
  193. end
  194. end)
  195.  
  196.  
  197.  
  198.  
  199. --Workspace player variable
  200. local player = game.Players.LocalPlayer.Name
  201. local nop = game.Workspace:FindFirstChild(player)
  202.  
  203. --Puts the xyz coords on the gui
  204. local player = game.Players.LocalPlayer.Name
  205. local nop = game.Workspace:FindFirstChild(player)
  206. local pos = nop.Head.Position
  207. local x = pos.X
  208. local y = pos.Y
  209. local z = pos.Z
  210. local fxpos = math.floor(x)
  211. local fypos = math.floor(y)
  212. local fzpos = math.floor(z)
  213. script.Parent.X_coordinate.Text = fxpos
  214. script.Parent.Y_coordinate.Text = fypos
  215. script.Parent.Z_coordinate.Text = fzpos
  216.  
  217. --shows the power on the gui
  218. local a = game:GetService("ReplicatedStorage").PowerValues.PowerLevel.Value
  219. local b = math.floor(a)
  220. script.Parent.Power_value.Text = b
  221.  
  222. --checks wether time is night or day so script doesnt break when rake isnt in workspace
  223. if game:GetService("ReplicatedStorage").Night.Value == true then
  224. --events for when time is night
  225. --shows the distance between you and the rake
  226. local magnitude = (game.Workspace.Rake.Head.Position - nop.Head.Position).Magnitude
  227. local magni = math.floor(magnitude)
  228. script.Parent.Distance_value.Text = magni
  229. --puts the timer on the gui
  230. script.Parent.Time_value.Text = game:GetService("ReplicatedStorage").Timer.Value
  231. elseif game:GetService("ReplicatedStorage").Night.Value == false then
  232. --what shows if time is day
  233. script.Parent.Distance_value.Text = "Day"
  234. script.Parent.Time_value.Text = "Day"
  235. else
  236. print("Could not get night/day")
  237. end
  238.  
  239. end
  240. coroutine.wrap(ZUQU_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement