Advertisement
haloguy51

Surface Admin

Aug 18th, 2015
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.02 KB | None | 0 0
  1. player = game.Players.LocalPlayer
  2. hop = Instance.new("HopperBin", player.Backpack)
  3. hop.Name = "Surface admin"
  4. SURFACE = Instance.new("Model", player.Character)
  5. SURFACE.Name = player.Name
  6. function makeb(parent, size, text)
  7.     local maintb = Instance.new("TextButton", parent)
  8.     maintb.Text = text
  9.     maintb.FontSize = "Size24"
  10.     maintb.Size = size
  11. end
  12. function selected()
  13.     local p = Instance.new("Part", SURFACE)
  14.     p.FormFactor = "Custom"
  15.     p.Size = Vector3.new(9,9,0.2)
  16.     p.Anchored = true
  17.     p.CanCollide = false
  18.     local lit = Instance.new("PointLight", p)
  19.     lit.Brightness = 20
  20.     local sur = Instance.new("SurfaceGui", p)
  21.     sur.Adornee = p
  22.     sur.Face = "Back"
  23.     makeb(sur,UDim2.new(1,0,1,0), "Surface admin V0.01")
  24. end
  25. function deselected()
  26.     SURFACE:ClearAllChildren()
  27. end
  28. hop.Selected:connect(selected)
  29. hop.Deselected:connect(deselected)
  30. while true do
  31. wait()
  32. for i,v in pairs (SURFACE:GetChildren()) do
  33. a = v
  34. a.CFrame = a.CFrame + a.CFrame.lookVector *-2
  35. a.CFrame = player.Character.Torso.CFrame * CFrame.new(0,2,-5)
  36. end
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement