Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local p = game.Players.LocalPlayer
- local char = p.Character
- local mouse = p:GetMouse()
- local larm = char["Left Arm"]
- local rarm = char["Right Arm"]
- local lleg = char["Left Leg"]
- local rleg = char["Right Leg"]
- local hed = char.Head
- local torso = char.Torso
- local hum = char.Humanoid
- local cam = game.Workspace.CurrentCamera
- local root = char.HumanoidRootPart
- local deb = false
- local shot = 0
- local debris=game:service"Debris"
- local RbxUtility = LoadLibrary("RbxUtility")
- local Create = RbxUtility.Create
- local m = Create("Model")
- local l = game:GetService("Lighting")
- local rs = game:GetService("RunService").RenderStepped
- ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
- math.randomseed(os.time())
- for i,v in pairs (game.Workspace:GetChildren()) do
- if v:IsA("Sound") then
- v:Destroy()
- end
- end
- ----------------------------------------------------
- z = Instance.new("Sound", torso)
- 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
- z.Looped = true
- z.Volume = 1
- wait(.1)
- z:Play()
- ----------------------------------------------------
- function Tween(a,b,c)
- return a+(b-a)*c
- end
- ----------------------------------------------------
- function FindNearestTorso(Position,Distance,SinglePlayer)
- if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
- local List = {}
- for i,v in pairs(workspace:GetChildren())do
- if v:IsA("Model")then
- if v:findFirstChild("Torso")then
- if v ~= char then
- if(v.Torso.Position -Position).magnitude <= Distance then
- table.insert(List,v)
- end
- end
- end
- end
- end
- return List
- end
- ----------------------------------------------------
- local HBill = Instance.new("BillboardGui", hed)
- local HMain = Instance.new("Frame", HBill)
- local HBar = Instance.new("Frame")
- local HBarBack = Instance.new("Frame")
- local HHealth = Instance.new("TextLabel", HBarBack)
- local HName = Instance.new("TextLabel", HBarBack)
- HBill.Size = UDim2.new(15,0,2.2,0)
- HBill.Name = "Health Display"
- HBill.StudsOffset = Vector3.new(0,4,0)
- HBill.AlwaysOnTop = true
- HBill.Enabled = true
- HMain.BackgroundColor3 = Color3.new(0, 0, 0)
- HMain.BackgroundTransparency = 1
- HMain.Size = UDim2.new(1,0,1,0)
- HBarBack.Parent = HMain
- HBarBack.BackgroundColor3 = Color3.new(0,0,0)
- HBarBack.BorderColor3 = Color3.new(0,0,0)
- HBarBack.BorderSizePixel = 2
- HBarBack.Position = UDim2.new(.025, 0, .55, 0)
- HBarBack.Size = UDim2.new(.95, 0, .3, 0)
- HBar.Parent = HBarBack
- HBar.BackgroundColor3 = Color3.new(0, 1, 0)
- HBar.BorderColor3 = Color3.new(0,0,0)
- HBar.Size = UDim2.new(.5,0,1,0)
- HHealth.BackgroundTransparency = 1
- HHealth.Size = UDim2.new(1,0,1,0)
- HHealth.Font = "SourceSansItalic"
- HHealth.Text = "[10/10]"
- HHealth.TextScaled = true
- HHealth.TextColor3 = Color3.new(1,1,1)
- HHealth.TextStrokeColor3 = Color3.new(85/255, 0, 127/255)
- HHealth.TextStrokeTransparency = 0
- HName.Parent = HMain
- HName.BackgroundTransparency = 1
- HName.Size = UDim2.new(1,0,.5,0)
- HName.Font = "SourceSansItalic"
- HName.Text = "X8311"
- HName.TextScaled = true
- HName.TextColor3 = Color3.new(85/255, 0,127/255)
- HName.TextStrokeColor3 = Color3.new(0,0,0)
- HName.TextStrokeTransparency = 0
- HName.TextYAlignment = "Top"
- local runServ = game:GetService("RunService").RenderStepped
- runServ:connect(function()
- HHealth.Text = "["..hum.Health.."]"
- HBar:TweenSize(UDim2.new((hum.Health/hum.MaxHealth),0,1,0), _, "Linear", .4)
- end)
Add Comment
Please, Sign In to add comment