Advertisement
lafur

Untitled

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