Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3
- -- Instances:
- local The_rake = Instance.new("ScreenGui")
- local MainFrame = Instance.new("Frame")
- local TopFrame = Instance.new("Frame")
- local Time_Label = Instance.new("TextLabel")
- local Time_value = Instance.new("TextLabel")
- local Distance_label = Instance.new("TextLabel")
- local Distance_value = Instance.new("TextLabel")
- local X = Instance.new("TextLabel")
- local Z = Instance.new("TextLabel")
- local Y = Instance.new("TextLabel")
- local X_coordinate = Instance.new("TextLabel")
- local Y_coordinate = Instance.new("TextLabel")
- local Z_coordinate = Instance.new("TextLabel")
- local Power = Instance.new("TextLabel")
- local Power_value = Instance.new("TextLabel")
- --Properties:
- The_rake.Name = "The_rake"
- The_rake.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- The_rake.ResetOnSpawn = false
- MainFrame.Name = "Main Frame"
- MainFrame.Parent = The_rake
- MainFrame.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
- MainFrame.Position = UDim2.new(0.0097008897, 0, 0.0535117052, 0)
- MainFrame.Size = UDim2.new(0, 171, 0, 108)
- TopFrame.Name = "Top Frame"
- TopFrame.Parent = The_rake
- TopFrame.BackgroundColor3 = Color3.new(0.105882, 0.105882, 0.105882)
- TopFrame.Position = UDim2.new(0.0097008897, 0, 0.0535117052, 0)
- TopFrame.Size = UDim2.new(0, 171, 0, 19)
- Time_Label.Name = "Time_Label"
- Time_Label.Parent = The_rake
- Time_Label.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
- Time_Label.Position = UDim2.new(0.0145513341, 0, 0.0852842778, 0)
- Time_Label.Size = UDim2.new(0, 58, 0, 23)
- Time_Label.Font = Enum.Font.SourceSans
- Time_Label.Text = "Time:"
- Time_Label.TextColor3 = Color3.new(1, 1, 1)
- Time_Label.TextSize = 14
- Time_value.Name = "Time_value"
- Time_value.Parent = The_rake
- Time_value.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
- Time_value.Position = UDim2.new(0.0614389665, 0, 0.0852842778, 0)
- Time_value.Size = UDim2.new(0, 85, 0, 23)
- Time_value.Font = Enum.Font.SourceSans
- Time_value.Text = "nil"
- Time_value.TextColor3 = Color3.new(1, 1, 1)
- Time_value.TextSize = 14
- Distance_label.Name = "Distance_label"
- Distance_label.Parent = The_rake
- Distance_label.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
- Distance_label.Position = UDim2.new(0.0145513341, 0, 0.123745821, 0)
- Distance_label.Size = UDim2.new(0, 58, 0, 23)
- Distance_label.Font = Enum.Font.SourceSans
- Distance_label.Text = "Distance:"
- Distance_label.TextColor3 = Color3.new(1, 1, 1)
- Distance_label.TextSize = 14
- Distance_value.Name = "Distance_value"
- Distance_value.Parent = The_rake
- Distance_value.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
- Distance_value.Position = UDim2.new(0.0614389665, 0, 0.123745821, 0)
- Distance_value.Size = UDim2.new(0, 85, 0, 23)
- Distance_value.Font = Enum.Font.SourceSans
- Distance_value.Text = "nil"
- Distance_value.TextColor3 = Color3.new(1, 1, 1)
- Distance_value.TextSize = 14
- X.Name = "X"
- X.Parent = The_rake
- X.BackgroundColor3 = Color3.new(0.105882, 0.105882, 0.105882)
- X.BackgroundTransparency = 1
- X.BorderSizePixel = 0
- X.Position = UDim2.new(0.0145513341, 0, 0.0602006689, 0)
- X.Size = UDim2.new(0, 13, 0, 11)
- X.Font = Enum.Font.SourceSans
- X.Text = "X"
- X.TextColor3 = Color3.new(1, 1, 1)
- X.TextSize = 14
- Z.Name = "Z"
- Z.Parent = The_rake
- Z.BackgroundColor3 = Color3.new(0.105882, 0.105882, 0.105882)
- Z.BackgroundTransparency = 1
- Z.BorderSizePixel = 0
- Z.Position = UDim2.new(0.0816212595, 0, 0.0602006726, 0)
- Z.Size = UDim2.new(0, 13, 0, 10)
- Z.Font = Enum.Font.SourceSans
- Z.Text = "Z"
- Z.TextColor3 = Color3.new(1, 1, 1)
- Z.TextSize = 14
- Y.Name = "Y"
- Y.Parent = The_rake
- Y.BackgroundColor3 = Color3.new(0.105882, 0.105882, 0.105882)
- Y.BackgroundTransparency = 1
- Y.BorderSizePixel = 0
- Y.Position = UDim2.new(0.0523117483, 0, 0.0602006726, 0)
- Y.Size = UDim2.new(0, 14, 0, 10)
- Y.Font = Enum.Font.SourceSans
- Y.Text = "Y"
- Y.TextColor3 = Color3.new(1, 1, 1)
- Y.TextSize = 14
- X_coordinate.Name = "X_coordinate"
- X_coordinate.Parent = The_rake
- X_coordinate.BackgroundColor3 = Color3.new(0.105882, 0.105882, 0.105882)
- X_coordinate.BackgroundTransparency = 0.5
- X_coordinate.BorderSizePixel = 0
- X_coordinate.Position = UDim2.new(0.0230148751, 0, 0.0602006726, 0)
- X_coordinate.Size = UDim2.new(0, 34, 0, 9)
- X_coordinate.Font = Enum.Font.SourceSans
- X_coordinate.Text = "nil"
- X_coordinate.TextColor3 = Color3.new(1, 1, 1)
- X_coordinate.TextSize = 18
- Y_coordinate.Name = "Y_coordinate"
- Y_coordinate.Parent = The_rake
- Y_coordinate.BackgroundColor3 = Color3.new(0.105882, 0.105882, 0.105882)
- Y_coordinate.BackgroundTransparency = 0.5
- Y_coordinate.BorderSizePixel = 0
- Y_coordinate.Position = UDim2.new(0.0614389665, 0, 0.0602006726, 0)
- Y_coordinate.Size = UDim2.new(0, 31, 0, 9)
- Y_coordinate.Font = Enum.Font.SourceSans
- Y_coordinate.Text = "nil"
- Y_coordinate.TextColor3 = Color3.new(1, 1, 1)
- Y_coordinate.TextSize = 18
- Z_coordinate.Name = "Z_coordinate"
- Z_coordinate.Parent = The_rake
- Z_coordinate.BackgroundColor3 = Color3.new(0.105882, 0.105882, 0.105882)
- Z_coordinate.BackgroundTransparency = 0.5
- Z_coordinate.BorderSizePixel = 0
- Z_coordinate.Position = UDim2.new(0.0900847986, 0, 0.0602006726, 0)
- Z_coordinate.Size = UDim2.new(0, 47, 0, 9)
- Z_coordinate.Font = Enum.Font.SourceSans
- Z_coordinate.Text = "nil"
- Z_coordinate.TextColor3 = Color3.new(1, 1, 1)
- Z_coordinate.TextSize = 18
- Power.Name = "Power"
- Power.Parent = The_rake
- Power.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
- Power.BorderColor3 = Color3.new(0.231373, 0.231373, 0.231373)
- Power.Position = UDim2.new(0.0143229216, 0, 0.15912056, 0)
- Power.Size = UDim2.new(0, 58, 0, 23)
- Power.Font = Enum.Font.SourceSans
- Power.Text = "Power:"
- Power.TextColor3 = Color3.new(1, 1, 1)
- Power.TextSize = 14
- Power_value.Name = "Power_value"
- Power_value.Parent = The_rake
- Power_value.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
- Power_value.Position = UDim2.new(0.0611979179, 0, 0.160513639, 0)
- Power_value.Size = UDim2.new(0, 85, 0, 22)
- Power_value.Font = Enum.Font.SourceSans
- Power_value.Text = "nil"
- Power_value.TextColor3 = Color3.new(1, 1, 1)
- Power_value.TextSize = 14
- -- Scripts:
- local function ZUQU_fake_script() -- The_rake.Functions
- local script = Instance.new('LocalScript', The_rake)
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- mouse.KeyDown:connect(function(key)
- if key == "x" then
- if script.Parent.Enabled == true then
- script.Parent.Enbabled = false
- elseif script.Parent.Enabled == false then
- script.Parent.Enabled = true
- end
- end
- end
- end)
- --Workspace player variable
- local player = game.Players.LocalPlayer.Name
- local nop = game.Workspace:FindFirstChild(player)
- --Puts the xyz coords on the gui
- local player = game.Players.LocalPlayer.Name
- local nop = game.Workspace:FindFirstChild(player)
- local pos = nop.Head.Position
- local x = pos.X
- local y = pos.Y
- local z = pos.Z
- local fxpos = math.floor(x)
- local fypos = math.floor(y)
- local fzpos = math.floor(z)
- script.Parent.X_coordinate.Text = fxpos
- script.Parent.Y_coordinate.Text = fypos
- script.Parent.Z_coordinate.Text = fzpos
- --shows the power on the gui
- local a = game:GetService("ReplicatedStorage").PowerValues.PowerLevel.Value
- local b = math.floor(a)
- script.Parent.Power_value.Text = b
- --checks wether time is night or day so script doesnt break when rake isnt in workspace
- if game:GetService("ReplicatedStorage").Night.Value == true then
- --events for when time is night
- --shows the distance between you and the rake
- local magnitude = (game.Workspace.Rake.Head.Position - nop.Head.Position).Magnitude
- local magni = math.floor(magnitude)
- script.Parent.Distance_value.Text = magni
- --puts the timer on the gui
- script.Parent.Time_value.Text = game:GetService("ReplicatedStorage").Timer.Value
- elseif game:GetService("ReplicatedStorage").Night.Value == false then
- --what shows if time is day
- script.Parent.Distance_value.Text = "Day"
- script.Parent.Time_value.Text = "Day"
- else
- print("Could not get night/day")
- end
- end
- coroutine.wrap(ZUQU_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement