Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = game.Players.LocalPlayer
- hop = Instance.new("HopperBin", player.Backpack)
- hop.Name = "Surface admin"
- SURFACE = Instance.new("Model", player.Character)
- SURFACE.Name = player.Name
- function makeb(parent, size, text)
- local maintb = Instance.new("TextButton", parent)
- maintb.Text = text
- maintb.FontSize = "Size24"
- maintb.Size = size
- end
- function selected()
- local p = Instance.new("Part", SURFACE)
- p.FormFactor = "Custom"
- p.Size = Vector3.new(9,9,0.2)
- p.Anchored = true
- p.CanCollide = false
- local lit = Instance.new("PointLight", p)
- lit.Brightness = 20
- local sur = Instance.new("SurfaceGui", p)
- sur.Adornee = p
- sur.Face = "Back"
- makeb(sur,UDim2.new(1,0,1,0), "Surface admin V0.01")
- end
- function deselected()
- SURFACE:ClearAllChildren()
- end
- hop.Selected:connect(selected)
- hop.Deselected:connect(deselected)
- while true do
- wait()
- for i,v in pairs (SURFACE:GetChildren()) do
- a = v
- a.CFrame = a.CFrame + a.CFrame.lookVector *-2
- a.CFrame = player.Character.Torso.CFrame * CFrame.new(0,2,-5)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement