Advertisement
HenloMyDude

bruh

Nov 4th, 2019
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.50 KB | None | 0 0
  1.  
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"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("UserInput_Event")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
  6.  
  7. function Smooth(part)
  8. part.TopSurface = "Smooth"
  9. part.BottomSurface = "Smooth"
  10. part.RightSurface = "Smooth"
  11. part.LeftSurface = "Smooth"
  12. end
  13.  
  14. plr = owner
  15. char = plr.Character
  16. ra = char["Right Arm"]
  17. la = char["Left Arm"]
  18. root = char.HumanoidRootPart
  19. hum = char.Humanoid
  20.  
  21. clerp = function(toclerp, cf, number)
  22. local joint = toclerp
  23. joint.C0 = joint.C0:Lerp(cf, number)
  24. end
  25.  
  26. clerp2 = function(toclerp, cf)
  27. local joint = toclerp
  28. joint.C0 = cf
  29. end
  30.  
  31. clerp3 = function(toclerp, cf, number)
  32. local joint = toclerp
  33. joint.C1 = joint.C1:Lerp(cf, number)
  34. end
  35.  
  36. Swait,swait = function(number)
  37. if number == 0 or number == nil then
  38. game:GetService("RunService").Heartbeat:Wait()
  39. else
  40. for i = 1,number do
  41. game:GetService("RunService").Heartbeat:Wait()
  42. end
  43. end
  44. end
  45.  
  46. ezweld = function(p, a, b, cf)
  47. local weld = Instance.new("Weld",p)
  48. weld.Part0 = a
  49. weld.Part1 = b
  50. weld.C0 = cf
  51. return weld
  52. end
  53.  
  54. IT = Instance.new
  55. Rad = math.rad
  56. Cos = math.cos
  57. Sin = math.sin
  58. BrickC = BrickColor.new
  59. C3 = Color3.new
  60. VT = Vector3.new
  61.  
  62. anim = "Idle"
  63. attack = false
  64. local RS = char.Torso["Right Shoulder"]
  65. local LS = char.Torso["Left Shoulder"]
  66. local RH = char.Torso["Right Hip"]
  67. local LH = char.Torso["Left Hip"]
  68. local neck = char.Torso["Neck"]
  69. local anim = "Idle"
  70. local root = char.HumanoidRootPart
  71. local rootj = root.RootJoint
  72. local timepos = 0
  73. local sine = 0
  74. local RSnor = RS.C0
  75. local LSnor = LS.C0
  76. local RHnor = RH.C0
  77. local LHnor = LH.C0
  78. local RSnor2 = RS.C1
  79. local LSnor2 = LS.C1
  80. local RHnor2 = RH.C1
  81. local LHnor2 = LH.C1
  82. local rootjnor = rootj.C0
  83. local necknor = neck.C0
  84. local tors = char.Torso
  85. local playstealanim = false
  86. hum.Animator:Destroy()
  87. hold = false
  88. mouse = plr:GetMouse()
  89. hold = false
  90. Debris = game:GetService("Debris")
  91.  
  92. --------------
  93.  
  94. local joy = Instance.new("Part",char)
  95. joy.CanCollide = false
  96. joy.CFrame = tors.CFrame * CFrame.new(0, 2, 0)
  97. joy.Size = Vector3.new(7, 0.01, 7)
  98. local joyimage = Instance.new("Decal",joy)
  99. joyimage.Face = "Top"
  100. joyimage.Texture = "http://www.roblox.com/asset/?id=1176402123"
  101. local joyspin = 0
  102.  
  103. function okhands(part)
  104. local ok = Instance.new("Part",char)
  105. ok.CanCollide = false
  106. ok.CFrame = tors.CFrame * CFrame.new(0, 2, 0)
  107. ok.Transparency = 1
  108. ok.Size = Vector3.new(part.Size.x, 0.01, part.Size.z)
  109. local okhand = Instance.new("Decal",ok)
  110. okhand.Face = "Bottom"
  111. okhand.Texture = "http://www.roblox.com/asset/?id=636768448"
  112. local wld = ezweld(char, ok, part, CFrame.new(0, 1, 0))
  113. return ok
  114. end
  115.  
  116. okhands(ra)
  117. okhands(la)
  118.  
  119. function Oof(Ch)
  120. if Ch.ClassName == "Model" and Ch ~= char then
  121. local D = Ch:GetDescendants()
  122. for i = 1,#D do
  123. local ee = D[i]
  124. if ee:IsA("Humanoid") then
  125. ee.BreakJointsOnDeath = false
  126. elseif ee:IsA("Motor6D") or ee:IsA("Motor") then
  127. local Old = ee.Parent
  128. ee.Parent = nil
  129. local R = Instance.new("Glue",Old)
  130. R.Name = ee.Name
  131. R.Part0 = ee.Part0
  132. R.Part1 = ee.Part1
  133. R.C0 = ee.C0
  134. R.C1 = ee.C1
  135. end
  136. end
  137. end
  138. end
  139.  
  140. function Dismember(MAN,DOWHAT)
  141. local HUM = MAN:FindFirstChildOfClass("Humanoid")
  142. if HUM then
  143. HUM.Health = 0
  144. HUM.PlatformStand = true
  145. end
  146. Oof(MAN)
  147. end
  148.  
  149. function continuesteal()
  150. attack = true
  151. playstealanim = false
  152. for i = 1,35 do
  153. Swait()
  154. if playstealanim == false then
  155. root.CFrame = CFrame.new(root.CFrame.x, root.CFrame.y, root.CFrame.z) * CFrame.new(0, 2, 0)
  156. root.Anchored = true
  157. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.1 * Cos(sine / 12)) * CFrame.Angles(Rad(-90), Rad(0), Rad(0)), 0.15)
  158. clerp(RH, RHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 12), 0) * CFrame.Angles(0, Rad(-10), 0), 0.15)
  159. clerp(LH, LHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 12), 0) * CFrame.Angles(0, Rad(10), 0), 0.15)
  160. clerp(RS, RSnor * CFrame.new(0, 0.01, -0.5) * CFrame.Angles(0, Rad(15), Rad(90)), 0.15)
  161. clerp(LS, LSnor * CFrame.new(0, 0.01, -0.5) * CFrame.Angles(0, Rad(-67), Rad(-90) - Rad(15)), 0.15)
  162. end
  163. end
  164. for i = 1,35 do
  165. Swait()
  166. if playstealanim == false then
  167. root.CFrame = CFrame.new(root.CFrame.x, root.CFrame.y, root.CFrame.z) * CFrame.new(0, -2, 0)
  168. root.Anchored = true
  169. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.1 * Cos(sine / 12)) * CFrame.Angles(Rad(90), Rad(0), Rad(0)), 0.15)
  170. clerp(RH, RHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 12), 0) * CFrame.Angles(0, Rad(-10), 0), 0.15)
  171. clerp(LH, LHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 12), 0) * CFrame.Angles(0, Rad(10), 0), 0.15)
  172. clerp(RS, RSnor * CFrame.new(0, 0.01, -0.5) * CFrame.Angles(0, Rad(15), Rad(90)), 0.15)
  173. clerp(LS, LSnor * CFrame.new(0, 0.01, -0.5) * CFrame.Angles(0, Rad(-67), Rad(-90) - Rad(15)), 0.15)
  174. end
  175. end
  176. local raw = char:FindFirstChild("weldie")
  177. if raw then
  178. raw.Parent = nil
  179. attack = false
  180. end
  181. attack = false
  182. root.Anchored = false
  183. end
  184.  
  185. function steal()
  186. attack = true
  187. playstealanim = true
  188. local hitbox = ra.Touched:connect(function(hit)
  189. local man = hit.Parent
  190. if man:FindFirstChild("Head") and playstealanim == true and man ~= char then
  191. local weldtho = ezweld(char, man.Head, ra, CFrame.new())
  192. weldtho.Name = "weldie"
  193. Dismember(man, "Ragdoll")
  194. playstealanim = false
  195. continuesteal()
  196. elseif man:FindFirstChild("Head") and playstealanim == true and man ~= char then
  197. local weldtho = ezweld(char, man.Head, ra, CFrame.new())
  198. weldtho.Name = "weldie"
  199. Dismember(man, "Ragdoll")
  200. playstealanim = false
  201. continuesteal()
  202. end
  203. end)
  204. for i = 1,35 do
  205. Swait()
  206. if playstealanim == true then
  207. if ra:FindFirstChild("weldie") then
  208. root.CFrame = CFrame.new(root.CFrame.x, root.CFrame.y, root.CFrame.z) * CFrame.new(0, 2, 0)
  209. root.Anchored = true
  210. end
  211. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.1 * Cos(sine / 12)), 0.15)
  212. clerp(RH, RHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 12), 0) * CFrame.Angles(0, Rad(-10), 0), 0.15)
  213. clerp(LH, LHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 12), 0) * CFrame.Angles(0, Rad(10), 0), 0.15)
  214. clerp(RS, RSnor * CFrame.new(0, 0.01, -0.5) * CFrame.Angles(0, Rad(15), Rad(90)), 0.15)
  215. clerp(LS, LSnor * CFrame.new(0, 0.01, -0.5) * CFrame.Angles(0, Rad(-67), Rad(-90) - Rad(15)), 0.15)
  216. else
  217. hitbox:disconnect()
  218. end
  219. end
  220. root.Anchored = false
  221. if playstealanim == true then
  222. attack = false
  223. playstealanim = false
  224. else
  225. attack = true
  226. playstealanim = false
  227. end
  228. end
  229.  
  230. mouse.KeyDown:connect(function(key)
  231. key = key:lower()
  232. if key == "e" and attack == false then
  233. steal()
  234. end
  235. end)
  236.  
  237. while true do
  238. Swait()
  239. ra.Transparency = 0
  240. sine = sine + 1
  241. joyspin = joyspin + 1
  242. joy.Transparency = 1
  243. joy.CFrame = CFrame.new(root.CFrame.x, root.CFrame.y, root.CFrame.z) * CFrame.new(0, -3, 0) * CFrame.Angles(0, Rad(-joyspin), 0)
  244. joy.Anchored = true
  245. local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
  246. if TORSOVELOCITY < 1 then
  247. anim = "Idle"
  248. if attack == false then
  249. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.1 * Cos(sine / 12)), 0.15)
  250. clerp(RH, RHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 12), 0) * CFrame.Angles(0, Rad(-10), 0), 0.15)
  251. clerp(LH, LHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 12), 0) * CFrame.Angles(0, Rad(10), 0), 0.15)
  252. clerp(RS, RSnor * CFrame.new(0, 0.01, -0.5) * CFrame.Angles(0, Rad(85), Rad(90)), 0.15)
  253. clerp(LS, LSnor * CFrame.new(0, 0.01, -0.5) * CFrame.Angles(0, Rad(-67), Rad(-90) - Rad(15)), 0.15)
  254. end
  255. clerp3(RH, RHnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  256. clerp3(LH, LHnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  257. else
  258. anim = "Walk"
  259. if attack == false then
  260. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.2 * Cos(sine / 4)), 0.15)
  261. clerp(RH, RHnor * CFrame.new(0.25, 0 - 0.2 * Cos(sine / 4), 0) * CFrame.Angles(0, Rad(0), 0), 0.15)
  262. clerp(LH, LHnor * CFrame.new(-0.25, 0 - 0.2 * Cos(sine / 4), 0) * CFrame.Angles(0, Rad(0), 0), 0.15)
  263. --clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0 - 1.5 * Cos(sine / 8)), 0.15)
  264. --clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0 - 1.5 * Cos(sine / 8)), 0.15)
  265. clerp(RS, RSnor * CFrame.new(0, 0.01, -0.5) * CFrame.Angles(0, Rad(85), Rad(90)), 0.15)
  266. clerp(LS, LSnor * CFrame.new(0, 0.01, -0.5) * CFrame.Angles(0, Rad(-67), Rad(-90) - Rad(15)), 0.15)
  267. end
  268. clerp3(RH, RHnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0.5 + 1.25 * Cos(sine / 8)), 0.15)
  269. clerp3(LH, LHnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -0.5 + 1.25 * Cos(sine / 8)), 0.15)
  270. --clerp3(LS, LSnor2 * CFrame.Angles(0, 0, 0 - 1 * Cos(sine / 8)), 0.15)
  271. end
  272. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement