Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr = game.Players.LocalPlayer
- mouse = plr:GetMouse()
- p = Instance.new('Folder', plr.PlayerGui.QBox)
- tl = Instance.new('TextLabel', plr.PlayerGui.QBox)
- tl.BackgroundTransparency = 1
- tl.TextColor3 = Color3.new(1, 1, 1)
- tl.TextScaled = true
- tl.Font = 'SourceSansBold'
- tl.Size = UDim2.new(0, 200, 0, 50)
- tl.Position = UDim2.new(0, 900, 0, 0)
- tl.TextStrokeTransparency = 0
- tl.TextStrokeColor3 = Color3.new(0, 0, 0)
- tl.Visible = false
- on = true
- mouse.KeyDown:connect(function(key)
- if key == 'r' then
- local h = Instance.new('Hint', game.Workspace)
- p:ClearAllChildren()
- on = true
- h.Text = 'Finding Finish'
- wait(1)
- for i,v in pairs (game.Workspace:GetChildren()) do
- if v:FindFirstChild('MapFinish') then
- h.Text = 'Finish Found'
- local l = Instance.new('BoxHandleAdornment', p)
- l.Size = v.MapFinish.Size
- l.AlwaysOnTop = true
- l.Transparency = .5
- l.ZIndex = 10
- l.Color3 = Color3.new(255, 0, 0)
- l.Adornee = v.MapFinish
- wait(2)
- h:Destroy()
- else
- if v:FindFirstChild('Creator') and v:FindFirstChild('Model') then
- print(true)
- if v.Model:FindFirstChild('MapFinish') then
- h.Text = 'Finish Found'
- local l = Instance.new('BoxHandleAdornment', p)
- l.Size = v.Model.MapFinish.Size
- l.AlwaysOnTop = true
- l.Transparency = .5
- l.ZIndex = 10
- l.Color3 = Color3.new(255, 0, 0)
- l.Adornee = v.Model.MapFinish
- wait(2)
- h:Destroy()
- while wait() do
- local x1 = game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X
- local y1 = game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y
- local z1 = game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z
- local x2 = v.Model.MapFinish.Position.X
- local y2 = v.Model.MapFinish.Position.Y
- local z2 = v.Model.MapFinish.Position.Z
- local d = math.sqrt(math.pow(x2 - x1, 2) + math.pow(y2 - y1, 2) + math.pow(z2 - z1, 2))
- tl.Text = 'Dist: '..math.ceil(d)
- tl.Visible = true
- end
- end
- end
- end
- end
- elseif key == 't' then
- if #p:GetChildren() ~= 0 then
- local h = Instance.new('Hint', game.Workspace)
- h.Text = 'toggled, visible: '..not on
- for i,v in pairs (p:GetChildren()) do
- v.Visible = not on
- on = not on
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement