Advertisement
Guest User

test

a guest
Nov 23rd, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.64 KB | None | 0 0
  1. Player = game.Players.LocalPlayer -- This is the person who runs the script << or the person playing the game if you are making a game
  2. Char = Player.Character -- This just gets your robloxian from your character
  3. angle  = 0 --I will explain this one later
  4. --
  5.  
  6.  
  7. function block()
  8. --Block Made by EnchantedLegend
  9. x = Instance.new("Part",workspace)
  10. a = Instance.new("SelectionBox",x)
  11. a.Adornee = x
  12. x.SelectionBox.Color = BrickColor.new("Institutional white")
  13. x.BrickColor = BrickColor.new("Institutional white")
  14. x.Size = Vector3.new(1,1,1)
  15. x.Transparency = 0.1
  16. x.CanCollide = false -- so it wont push you
  17. x.TopSurface = "Smooth"
  18. x.BottomSurface = "Smooth"
  19. x.Material = "SmoothPlastic"
  20. x.Anchored = true
  21. b = Instance.new("BillboardGui",x)
  22. b.Size = UDim2.new(1.5,1,1)
  23. b.AlwaysOnTop = true
  24. b.Active = true
  25. t = Instance.new("TextLabel",b)
  26. t.Size = UDim2.new(2,2,1)   -- added to the size some
  27. t.Text = "Hello amazing"
  28. b.ExtentsOffset = Vector3.new(-0.6,2,0)   -- Made the y axis go up
  29. t.TextScaled = true     -- Made the text look better
  30. t.TextColor3 = Color3.new(255,255,255)
  31. t.TextWrapped = false
  32. t.FontSize = Enum.FontSize.Size48
  33. t.BackgroundTransparency = 1
  34.  
  35.  
  36. game:GetService("RunService").RenderStepped:connect(function()
  37.  
  38.  x.CFrame = CFrame.new(Char.Head.Position) -- so the part is inside the head
  39.  *CFrame.Angles(0,angle,0) -- this makes the block rotate around your head in a circle
  40.  *CFrame.new(5,0,5) -- this makes the part away from your head
  41. angle = angle+math.rad(1) -- and this just adds to the angle so it can make a circle
  42.     end)
  43.  
  44.  
  45. Char.Humanoid.Died:connect(function()
  46.     x:Remove()
  47.     end)
  48.  
  49. end
  50.  
  51. block()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement