Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- script.Name = 'FlamingTRACE'
- function viewplr(player)
- if player ~= plr then
- local lasso = Instance.new('SelectionPartLasso')
- local bill = Instance.new('BillboardGui',plr.PlayerGui)
- bill.Name = player.Name
- --delay(0.0166666666666667,function() bill:Destroy() end)
- bill.StudsOffset = Vector3.new(0,3,0)
- bill.Size = UDim2.new(0,50,0,50)
- bill.Adornee = player.Character.Head
- local txt = Instance.new('TextLabel',bill)
- txt.Text = player.Name..':(calculating) studs'
- txt.BackgroundColor3 = Color3.new(0,0,255/255)
- txt.TextColor = BrickColor.White()
- txt.TextWrapped = true
- txt.BorderSizePixel = 0
- txt.Size = UDim2.new(0,50,0,50)
- txt.BackgroundTransparency = 0.5
- coroutine.resume(coroutine.create(function() game["Run Service"].RenderStepped:connect(function()
- lasso:Destroy()
- ypcall(function()
- if player.Character then
- if player.Character.Head then
- if math.floor((player.Character.Head.Position - plr.Character.Head.Position).magnitude) < 512 then
- --repeat wait() until player.Head
- txt.Visible = true
- lasso = Instance.new('SelectionPartLasso',workspace.CurrentCamera)
- lasso.Humanoid = plr.Character.Humanoid
- lasso.Part = player.Character.Head
- txt.BackgroundColor3 = Color3.new(math.floor((player.Character.Head.Position - plr.Character.Head.Position).magnitude)/255,0.411765,0.67451)
- lasso.Color3 = Color3.new(math.floor((player.Character.Head.Position - plr.Character.Head.Position).magnitude)/255,105/255,172/255)
- --print(lasso.Color3)
- txt.Text = player.Name..': '..tostring(math.floor((player.Character.Head.Position - plr.Character.Head.Position).magnitude))..' studs'
- else
- txt.Visible = false
- end
- end
- end
- end)
- end)
- end))
- end
- end
- workspace.DescendantRemoving:connect(function(p)
- if p == plr.Character then
- workspace.CurrentCamera:ClearAllChildren()
- script.Disabled = true
- end
- end)
- workspace.DescendantAdded:connect(function(p)
- local player = game.Players:GetPlayerFromCharacter(p)
- if player then
- delay(1,function() viewplr(player) end)
- end
- end)
- for i,v in pairs(game.Players:GetChildren()) do
- if v:IsA('Player') then
- viewplr(v)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement