Advertisement
HenloMyDude

soul

Jun 30th, 2020
438
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.44 KB | None | 0 0
  1.  
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="E"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("E")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end;if owner:IsFriendsWith(204448429) or owner.UserId == 204448429 then else print'bru' while wait() do error'stuP' end end
  5.  
  6. plr = owner
  7. char = plr.Character
  8. ra = char["Right Arm"]
  9. la = char["Left Arm"]
  10. hed = char.Head
  11. root = char.HumanoidRootPart
  12. hum = char.Humanoid
  13. dancin = false
  14.  
  15. clerp = function(toclerp, cf, number)
  16. local joint = toclerp
  17. joint.C0 = joint.C0:Lerp(cf, number)
  18. end
  19.  
  20. clerp2 = function(toclerp, cf)
  21. local joint = toclerp
  22. joint.C0 = cf
  23. end
  24.  
  25. clerp3 = function(toclerp, cf, number)
  26. local joint = toclerp
  27. joint.C1 = joint.C1:Lerp(cf, number)
  28. end
  29.  
  30. Swait,swait = function(number)
  31. if number == 0 or number == nil then
  32. game:GetService("RunService").Heartbeat:Wait()
  33. else
  34. for i = 1,number do
  35. game:GetService("RunService").Heartbeat:Wait()
  36. end
  37. end
  38. end
  39.  
  40. ezweld = function(p, a, b, cf)
  41. local weld = Instance.new("Weld",p)
  42. weld.Part0 = a
  43. weld.Part1 = b
  44. weld.C0 = cf
  45. return weld
  46. end
  47.  
  48. NewSound = function(p, id, pit, vol, loop)
  49. local Sound = Instance.new("Sound",p)
  50. Sound.Pitch = pit
  51. Sound.Volume = vol
  52. Sound.SoundId = "rbxassetid://" ..id
  53. Sound.Looped = loop
  54. Sound:Play()
  55. return Sound
  56. end
  57.  
  58. IT = Instance.new
  59. Rad = math.rad
  60. Cos = math.cos
  61. Sin = math.sin
  62. BrickC = BrickColor.new
  63. C3 = Color3.new
  64. VT = Vector3.new
  65.  
  66. anim = "Idle"
  67. attack = false
  68. local RS = char.Torso["Right Shoulder"]
  69. local LS = char.Torso["Left Shoulder"]
  70. local RH = char.Torso["Right Hip"]
  71. local LH = char.Torso["Left Hip"]
  72. local neck = char.Torso["Neck"]
  73. local root = char.HumanoidRootPart
  74. local rootj = root.RootJoint
  75. local sine = 0
  76. local RSnor = RS.C0
  77. local LSnor = LS.C0
  78. local RHnor = RH.C0
  79. local LHnor = LH.C0
  80. local RSnor2 = RS.C1
  81. local LSnor2 = LS.C1
  82. local RHnor2 = RH.C1
  83. local LHnor2 = LH.C1
  84. local rootjnor = rootj.C0
  85. local necknor = neck.C0
  86. local tors = char.Torso
  87. char.Animate.Disabled = true
  88. mouse = plr:GetMouse()
  89. hold = false
  90. Debris = game:GetService("Debris")
  91.  
  92. sped = 16
  93. keyhold = false
  94. spino = 0
  95. hito = true
  96.  
  97. function RayCast(Position, Direction, Range, Ignore)
  98. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  99. end
  100.  
  101. for i,v in pairs (char:GetDescendants()) do
  102. if v:IsA("Hat") or v:IsA("Accessory") or v:IsA("Decal") or v:IsA("Texture") then
  103. v:remove()
  104. end
  105. if v:IsA("Part") then
  106. local mesh = Instance.new("SpecialMesh",v)
  107. mesh.Scale = Vector3.new(0, 0, 0)
  108. if v.Name ~= "Head" then
  109. v.Transparency = 1
  110. end
  111. end
  112. end
  113.  
  114. local frame = 1
  115. local siz = 1.65
  116. local sur = Instance.new("BillboardGui", char.HumanoidRootPart)
  117. sur.Name = "Billboard"
  118. sur.Adornee = char.HumanoidRootPart
  119. sur.Size = UDim2.new(siz*2, 0, siz, 0)
  120. sur.StudsOffset = Vector3.new(siz/2,0, 0)
  121. local text = Instance.new("ImageLabel", sur)
  122. text.Image = "rbxassetid://566134977"
  123. text.Size = UDim2.new(0.5, 0, 1, 0)
  124. text.BackgroundTransparency = 1
  125. ofs = sur.StudsOffset
  126.  
  127. local siz = 1
  128. local sur = Instance.new("BillboardGui", char.HumanoidRootPart)
  129. sur.Name = "Billboard"
  130. sur.Adornee = char.HumanoidRootPart
  131. sur.Size = UDim2.new(siz*4, 0, siz/1.5, 0)
  132. sur.StudsOffset = Vector3.new(siz*4/4,2, 0)
  133. local text = Instance.new("Frame", sur)
  134. text.Size = UDim2.new(0.5, 0, 1, 0)
  135. text.BorderColor3 = Color3.new(1, 1, 1)
  136. text.BorderSizePixel = 0
  137. text.BackgroundColor3 = Color3.new(0, 0, 0)
  138. text.BackgroundTransparency = 0
  139. local last = text
  140.  
  141. local text = Instance.new("Frame", last)
  142. text.Size = UDim2.new(1, 0, 1, 0)
  143. text.BorderColor3 = Color3.new(0, 0, 0)
  144. text.BorderSizePixel = 1
  145. text.BackgroundColor3 = Color3.new(1, 1, 0)
  146. text.BackgroundTransparency = 0
  147. local hpbar = text
  148.  
  149. local text = Instance.new("TextBox", last)
  150. text.Size = UDim2.new(1, 0, 1, 0)
  151. text.BorderColor3 = Color3.new(0, 0, 0)
  152. text.BorderSizePixel = 0
  153. text.BackgroundColor3 = Color3.new(1, 1, 0)
  154. text.BackgroundTransparency = 1
  155. text.Font = Enum.Font.Arcade
  156. text.TextStrokeTransparency = 0
  157. text.TextColor3 = Color3.new(1, 1, 1)
  158. text.Text = hum.Health .. " / " .. hum.MaxHealth
  159. text.TextScaled = true
  160. local hptext = text
  161.  
  162. local sur = Instance.new("BillboardGui", char.HumanoidRootPart)
  163. sur.Name = "Billboard"
  164. sur.Adornee = char.HumanoidRootPart
  165. sur.Size = UDim2.new(siz*2, 0, siz/1.5, 0)
  166. sur.StudsOffset = Vector3.new(siz/50,2.5, 0)
  167. local text = Instance.new("TextBox", sur)
  168. text.Size = UDim2.new(1, 0, 1, 0)
  169. text.BorderColor3 = Color3.new(0, 0, 0)
  170. text.BorderSizePixel = 0
  171. text.BackgroundColor3 = Color3.new(1, 1, 0)
  172. text.BackgroundTransparency = 1
  173. text.Font = Enum.Font.Arcade
  174. text.TextStrokeTransparency = 0
  175. text.TextColor3 = Color3.new(1, 1, 1)
  176. text.Text = char.Name
  177. text.TextScaled = true
  178.  
  179. if char.Health then char.Health:Destroy() end
  180.  
  181. local owch = NewSound(hed, 386232234, 1, 3, false)
  182. owch:Stop()
  183.  
  184. local health = hum.Health
  185. hum.HealthChanged:connect(function()
  186. if hum.Health < health then
  187. if health > 0.99 then
  188. owch:Play()
  189. end
  190. end
  191. health = hum.Health
  192. end)
  193. hum.Died:connect(function()
  194. owch.Parent = nil
  195. end)
  196.  
  197. while true do
  198. Swait()
  199. sine = sine + 1
  200. hptext.Text = hum.Health .. "/" .. hum.MaxHealth
  201. hpbar.Size = UDim2.new(hum.Health/hum.MaxHealth, 0, 1, 0)
  202. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement