Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- SYNR+
- --[[ CHANGELOG
- 1.0 : release.
- --]]
- me = game.Players.LocalPlayer
- mobs = workspace.NPCs:GetChildren()
- for i=1,#mobs do
- local lol = Instance.new("BillboardGui")
- lol.Parent = mobs[i].Head
- lol.AlwaysOnTop = true
- lol.Name = "what"
- lol.Size = UDim2.new(5.5,0,1.75,0)
- lol.ExtentsOffset = Vector3.new(0,2.5,0)
- local oof = Instance.new("TextLabel")
- oof.Parent = lol
- oof.BackgroundTransparency = 1
- oof.TextTransparency = 0.2
- oof.TextSize = 30
- oof.TextScaled = false
- oof.TextColor3 = Color3.new(255, 0, 0)
- oof.TextStrokeTransparency = 1
- oof.Size = UDim2.new(1,0,1,0)
- oof.Text = "".. mobs[i].Name..""
- end
- while true do
- for i=1,#mobs do
- hea = me.Character.HumanoidRootPart
- ehea = mobs[i].Head
- dist = math.floor((ehea.Position-hea.Position).magnitude)
- mobs[i].Head.what.TextLabel.Text = "".. mobs[i].Name.."("..dist..")"
- if dist <= 100 then
- mobs[i].Head.what.TextLabel.TextColor3 = Color3.new(255, 0, 0)
- end
- if dist <= 200 then
- mobs[i].Head.what.TextLabel.TextColor3 = Color3.new(255, 255, 0)
- end
- if dist <= 250 then
- mobs[i].Head.what.TextLabel.TextColor3 = Color3.new(0, 255, 0)
- end
- if dist >= 251 then
- mobs[i].Head.what.TextLabel.TextColor3 = Color3.new(128, 187, 219)
- end
- end
- wait(0.1)
- end
Add Comment
Please, Sign In to add comment