hgh920

Brainstorming ideas

Mar 31st, 2017
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.75 KB | None | 0 0
  1. local p = game.Players.LocalPlayer
  2. local char = p.Character
  3. local mouse = p:GetMouse()
  4. local larm = char["Left Arm"]
  5. local rarm = char["Right Arm"]
  6. local lleg = char["Left Leg"]
  7. local rleg = char["Right Leg"]
  8. local hed = char.Head
  9. local torso = char.Torso
  10. local hum = char.Humanoid
  11. local cam = game.Workspace.CurrentCamera
  12. local root = char.HumanoidRootPart
  13. local deb = false
  14. local shot = 0
  15. local debris=game:service"Debris"
  16.  
  17. local RbxUtility = LoadLibrary("RbxUtility")
  18. local Create = RbxUtility.Create
  19. local m = Create("Model")
  20.  
  21. local l = game:GetService("Lighting")
  22. local rs = game:GetService("RunService").RenderStepped
  23. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  24. math.randomseed(os.time())
  25. for i,v in pairs (game.Workspace:GetChildren()) do
  26. if v:IsA("Sound") then
  27. v:Destroy()
  28. end
  29. end
  30. ----------------------------------------------------
  31. z = Instance.new("Sound", torso)
  32. z.SoundId = "rbxassetid://38155589"-- Cartton Imortallity :381955589 -- My Heart: 154299074 -- Sao Crossing: 246056418 -- SAN HOLO DOnkeykong: 246056418 -- "Innocence" - Sword Art Online OP 2: 142357253 -- OnePunch Hero: 339250412 (Fav) -- Sethbling: 170902050
  33. z.Looped = true
  34. z.Volume = 1
  35. wait(.1)
  36. z:Play()
  37. ----------------------------------------------------
  38. function Tween(a,b,c)
  39. return a+(b-a)*c
  40. end
  41. ----------------------------------------------------
  42. function FindNearestTorso(Position,Distance,SinglePlayer)
  43. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  44. local List = {}
  45. for i,v in pairs(workspace:GetChildren())do
  46. if v:IsA("Model")then
  47. if v:findFirstChild("Torso")then
  48. if v ~= char then
  49. if(v.Torso.Position -Position).magnitude <= Distance then
  50. table.insert(List,v)
  51. end
  52. end
  53. end
  54. end
  55. end
  56. return List
  57. end
  58. ----------------------------------------------------
  59. local HBill = Instance.new("BillboardGui", hed)
  60. local HMain = Instance.new("Frame", HBill)
  61. local HBar = Instance.new("Frame")
  62. local HBarBack = Instance.new("Frame")
  63. local HHealth = Instance.new("TextLabel", HBarBack)
  64. local HName = Instance.new("TextLabel", HBarBack)
  65.  
  66. HBill.Size = UDim2.new(15,0,2.2,0)
  67. HBill.Name = "Health Display"
  68. HBill.StudsOffset = Vector3.new(0,4,0)
  69. HBill.AlwaysOnTop = true
  70. HBill.Enabled = true
  71.  
  72. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  73. HMain.BackgroundTransparency = 1
  74. HMain.Size = UDim2.new(1,0,1,0)
  75.  
  76. HBarBack.Parent = HMain
  77. HBarBack.BackgroundColor3 = Color3.new(0,0,0)
  78. HBarBack.BorderColor3 = Color3.new(0,0,0)
  79. HBarBack.BorderSizePixel = 2
  80. HBarBack.Position = UDim2.new(.025, 0, .55, 0)
  81. HBarBack.Size = UDim2.new(.95, 0, .3, 0)
  82.  
  83. HBar.Parent = HBarBack
  84. HBar.BackgroundColor3 = Color3.new(0, 1, 0)
  85. HBar.BorderColor3 = Color3.new(0,0,0)
  86. HBar.Size = UDim2.new(.5,0,1,0)
  87.  
  88. HHealth.BackgroundTransparency = 1
  89. HHealth.Size = UDim2.new(1,0,1,0)
  90. HHealth.Font = "SourceSansItalic"
  91. HHealth.Text = "[10/10]"
  92. HHealth.TextScaled = true
  93. HHealth.TextColor3 = Color3.new(1,1,1)
  94. HHealth.TextStrokeColor3 = Color3.new(85/255, 0, 127/255)
  95. HHealth.TextStrokeTransparency = 0
  96.  
  97. HName.Parent = HMain
  98. HName.BackgroundTransparency = 1
  99. HName.Size = UDim2.new(1,0,.5,0)
  100. HName.Font = "SourceSansItalic"
  101. HName.Text = "X8311"
  102. HName.TextScaled = true
  103. HName.TextColor3 = Color3.new(85/255, 0,127/255)
  104. HName.TextStrokeColor3 = Color3.new(0,0,0)
  105. HName.TextStrokeTransparency = 0
  106. HName.TextYAlignment = "Top"
  107.  
  108. local runServ = game:GetService("RunService").RenderStepped
  109. runServ:connect(function()
  110. HHealth.Text = "["..hum.Health.."]"
  111. HBar:TweenSize(UDim2.new((hum.Health/hum.MaxHealth),0,1,0), _, "Linear", .4)
  112. end)
Add Comment
Please, Sign In to add comment