Advertisement
HenloMyDude

monkey jevil

Sep 6th, 2019
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.11 KB | None | 0 0
  1.  
  2.  
  3. forcefield = Instance.new("ForceField")
  4. forcefield.Visible = false
  5. forcefield.Parent = owner.Character
  6.  
  7. local plr = owner
  8. local char = plr.Character
  9. local hum = char:FindFirstChildOfClass("Humanoid")
  10. wait(0.1)
  11. local remote = Instance.new("RemoteEvent", char)
  12. remote.Name = "ReplicationEvent"
  13. local client = NLS([==[
  14. local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  15. local remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
  16. spawn(function()
  17. while game:GetService("RunService").Heartbeat:Wait() do
  18. remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
  19. end
  20. end)
  21. game:GetService("UserInputService").InputBegan:Connect(function(input, isTyping)
  22. if isTyping == false and input.UserInputType == Enum.UserInputType.Keyboard then
  23. remote:FireServer(1, input.KeyCode)
  24. end
  25. end)
  26. mouse.Button1Down:Connect(function()
  27. remote:FireServer(2)
  28. end)
  29. remote.OnClientEvent:Connect(function()
  30. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position, Vector3.new(mouse.Hit.Position.X, game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.Y, mouse.Hit.Position.Z))
  31. end)
  32. ]==], char)
  33.  
  34. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  35. do
  36. script.Parent = owner.Character
  37. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  38. local function NewFakeEvent()
  39. local Bind = Instance.new("BindableEvent")
  40. local Fake;Fake = {Connections = {},
  41. fakeEvent=true;
  42. Connect=function(self,Func)
  43. Bind.Event:connect(Func)
  44. self.Connections[Bind] = true
  45. return setmetatable({Connected = true},{
  46. __index = function (self,Index)
  47. if Index:lower() == "disconnect" then
  48. return function() Fake.Connections[Bind] = false;self.Connected = false end
  49. end
  50. return Fake[Index]
  51. end;
  52. __tostring = function() return "Connection" end;
  53. })
  54. end}
  55. Fake.connect = Fake.Connect;return Fake;
  56. end
  57. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  58. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  59. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  60. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  61. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  62. local function TriggerEvent(self,Event,...)
  63. local Trigger = Mouse[Event]
  64. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  65. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  66. end
  67. end
  68. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  69. Event.OnServerEvent:Connect(function(FiredBy,Input)
  70. if FiredBy.Name ~= owner.Name then return end
  71. if Input.MouseEvent then
  72. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  73. else
  74. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  75. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  76. for _,Action in pairs(ContextActionService.Actions) do
  77. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  78. end
  79. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  80. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  81. end
  82. end)
  83. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  84. Event.Parent = NLS([[
  85. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  86. local Input = function(Input,gameProcessedEvent)
  87. if gameProcessedEvent then return end
  88. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  89. end
  90. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  91. local Hit,Target
  92. while wait(1/30) do
  93. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  94. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  95. end
  96. end
  97. ]],owner.Character)
  98. end
  99. RealGame = game;game = setmetatable({},{
  100. __index = function (self,Index)
  101. local Sandbox = function (Thing)
  102. if Thing:IsA("Player") then
  103. local RealPlayer = Thing
  104. return setmetatable({},{
  105. __index = function (self,Index)
  106. local Type = type(RealPlayer[Index])
  107. if Type == "function" then
  108. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  109. return function (self)return InternalData["Mouse"] end
  110. end
  111. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  112. end
  113. return RealPlayer[Index]
  114. end;
  115. __tostring = function(self) return RealPlayer.Name end
  116. })
  117. end
  118. end
  119. if RealGame[Index] then
  120. local Type = type(RealGame[Index])
  121. if Type == "function" then
  122. if Index:lower() == "getservice" or Index:lower() == "service" then
  123. return function (self,Service)
  124. local FakeServices = {
  125. ["players"] = function()
  126. return setmetatable({},{
  127. __index = function (self2,Index2)
  128. local RealService = RealGame:GetService(Service)
  129. local Type2 = type(Index2)
  130. if Type2 == "function" then
  131. return function (self,...) return RealService[Index2](RealService,...)end
  132. else
  133. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  134. return RealService[Index2]
  135. end
  136. end;
  137. __tostring = function(self) return RealGame:GetService(Service).Name end
  138. })
  139. end;
  140. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  141. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  142. ["runservice"] = function()
  143. return setmetatable({},{
  144. __index = function(self2,Index2)
  145. local RealService = RealGame:GetService(Service)
  146. local Type2 = type(Index2)
  147. if Type2 == "function" then
  148. return function (self,...) return RealService[Index2](RealService,...) end
  149. else
  150. local RunServices = {
  151. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  152. ["renderstepped"] = function() return RealService["Stepped"] end
  153. }
  154. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  155. return RealService[Index2]
  156. end
  157. end
  158. })
  159. end
  160. }
  161. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  162. return RealGame:GetService(Service)
  163. end
  164. end
  165. return function (self,...) return RealGame[Index](RealGame,...) end
  166. else
  167. if game:GetService(Index) then return game:GetService(Index) end
  168. return RealGame[Index]
  169. end
  170. end
  171. return nil
  172. end
  173. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  174.  
  175. Torso = char.Torso
  176.  
  177. local crabrave = Instance.new("Sound", char.Torso)
  178. local RS = char.Torso["Right Shoulder"]
  179. local LS = char.Torso["Left Shoulder"]
  180. local RH = char.Torso["Right Hip"]
  181. local LH = char.Torso["Left Hip"]
  182. local rootj = char.HumanoidRootPart.RootJoint
  183. local throwbutton = false
  184. local throw = false
  185. local normalanim = true
  186. local attackd = false
  187. local animpose = "Idle"
  188. local timepos = 0
  189. local sine = 0
  190. local RSnor = RS.C0
  191. local LSnor = LS.C0
  192. local RHnor = RH.C0
  193. local LHnor = LH.C0
  194. local rootjnor = rootj.C0
  195.  
  196. ---------------------------------
  197. --------------Set up-------------
  198. ---------------------------------
  199.  
  200. local sur = Instance.new("BillboardGui", char.Head)
  201. sur.Name = "Billboard"
  202. sur.Adornee = char.Head
  203. sur.Size = UDim2.new(10, 0, 5, 0)
  204. sur.StudsOffset = Vector3.new(0, 5, 0)
  205. local text = Instance.new("TextBox", sur)
  206. text.Text = "J҉ E҉ V҉ I҉ L҉ HEALTH: " ..owner.Character.Humanoid.Health .. " / " ..owner.Character.Humanoid.MaxHealth
  207. text.Size = UDim2.new(1, 0, 1, 0)
  208. text.TextScaled = true
  209. text.BackgroundTransparency = 1
  210. text.Font = Enum.Font.Arcade
  211. text.TextColor3 = Color3.new(255, 50, 0)
  212. text.TextStrokeTransparency = 0
  213.  
  214. Character = char
  215.  
  216. for i,v in pairs(Character:children()) do
  217. if v:IsA("Hat") then
  218. v:Destroy()
  219. end
  220. end
  221. for i,v in pairs(Character:children()) do
  222. if v:IsA("Accessory") then
  223. v:Destroy()
  224. end
  225. end
  226. for i,v in pairs(Character:children()) do
  227. if v:IsA("Hair") then
  228. v:Destroy()
  229. end
  230. end
  231. for i,v in pairs(Character:children()) do
  232. if v:IsA("Shirt") then
  233. v:Destroy()
  234. end
  235. end
  236. for i,v in pairs(Character:children()) do
  237. if v:IsA("Pants") then
  238. v:Destroy()
  239. end
  240. end
  241. for i,v in pairs(Character:children()) do
  242. if v:IsA("Graphic Shirt") then
  243. v:Destroy()
  244. end
  245. end
  246. for i,v in pairs(Character:children()) do
  247. if v:IsA("GraphicShirt") then
  248. v:Destroy()
  249. end
  250. end
  251.  
  252. for _,v in pairs(Character:children()) do
  253. if v:IsA("Shirt") then
  254. v.ShirtTemplate = "rbxassetid://0"
  255. elseif v:IsA("Pants") then
  256. v.PantsTemplate = "rbxassetid://0"
  257. elseif v:IsA("ShirtGraphic") then
  258. v:Remove()
  259. wait(.1)
  260. Torso.roblox:Remove()
  261. elseif v:IsA("Accessory") then
  262. v:Remove()
  263. end
  264. end
  265.  
  266. shirt = "rbxassetid://2616334189"
  267. pants = "http://www.roblox.com/asset/?id=2616204122"
  268.  
  269. knuckles1 = Instance.new("Shirt")
  270. knuckles1.Parent = char
  271. knuckles1.ShirtTemplate = shirt
  272. knuckles2 = Instance.new("Pants")
  273. knuckles2.Parent = char
  274. knuckles2.PantsTemplate = pants
  275.  
  276. char = owner.Character
  277. jevilhat = Instance.new("Accessory", char)
  278. handle = Instance.new("Part")
  279. handle.Parent = jevilhat
  280. handle.Size = Vector3.new(1.38, 1.31, 1.5)
  281. hatattatchment = Instance.new("Attachment")
  282. hatattatchment.Parent = handle
  283. hatattatchment.Axis = Vector3.new(1, 0, 0)
  284. hatattatchment.SecondaryAxis = Vector3.new(0, 1, 0)
  285. hatattatchment.Position = Vector3.new(0, -0.2, -0.3)
  286. hatattatchment.WorldAxis = Vector3.new(0.995, -0, 0.096)
  287. hatattatchment.WorldOrientation = Vector3.new(-0.264, -5.525, -0.001)
  288. hatattatchment.WorldPosition = Vector3.new(0.007, 5.081, -8.3)
  289. hatattatchment.WorldSecondaryAxis= Vector3.new(0, 1, -0.005)
  290. hatattatchment.Name = "HatAttachment"
  291. originalsize = Instance.new("Vector3Value")
  292. originalsize.Value = Vector3.new(0, 1, -0.005)
  293. accessoryweld = Instance.new("Weld")
  294. accessoryweld.Parent = handle
  295. accessoryweld.Part0 = handle
  296. accessoryweld.Part1 = char.Head
  297. mesh = Instance.new("SpecialMesh")
  298. mesh.Parent = handle
  299. mesh.MeshType = "FileMesh"
  300. mesh.Scale = Vector3.new(1,1,1)
  301. mesh.MeshId = "rbxassetid://193760002"
  302. mesh.Offset = Vector3.new(0, 0.85, 0.31)
  303. mesh.TextureId = "rbxassetid://3050975223"
  304.  
  305. char["Right Leg"].BrickColor = BrickColor.new("Baby blue")
  306. char["Left Leg"].BrickColor = BrickColor.new("Baby blue")
  307. char["Head"].BrickColor = BrickColor.new("Baby blue")
  308.  
  309. char.Head.face.Texture = "rbxassetid://1111587497"
  310.  
  311. hum.MaxHealth = 1000
  312. hum.Health = 1000
  313. ---------------------------------
  314. -------------Attacks-------------
  315. ---------------------------------
  316.  
  317. mouse = game.Players.LocalPlayer:GetMouse()
  318.  
  319. remote.OnServerEvent:Connect(function(Player, number, key)
  320. if number == 1 and plr.Name == Player.Name and attackd == false then
  321. if key == Enum.KeyCode.Z then
  322. sine = 0
  323. attackd = true
  324. normalanim = false
  325. hum.WalkSpeed = 10
  326. hum.JumpPower = 80
  327. for i = 1, 15 do
  328. game:GetService("RunService").Heartbeat:Wait()
  329. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(1.2, 0, 0) + Vector3.new(0, -1.6, 0), 0.15)
  330. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, 1.1) + Vector3.new(0, 0, -0.3), 0.15)
  331. LS.C0 = LS.C0:Lerp(LSnor, 0.15)
  332. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  333. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  334. end
  335. for i = 1, 20 do
  336. game:GetService("RunService").Heartbeat:Wait()
  337. LS.C0 = LS.C0 * CFrame.Angles(0, 0, -0.06) + Vector3.new(0, 0, -0.03)
  338. end
  339. local banpart = Instance.new("Part", char)
  340. banpart.Size = Vector3.new(1, 1, 1)
  341. banpart.CanCollide = false
  342. banpart.Shape = "Ball"
  343. banpart.Material = "Neon"
  344. banpart.Position = owner.Character["Left Arm"].Position
  345. weld = Instance.new("Weld",banpart)
  346. weld.Part0 = banpart
  347. weld.Part1 = owner.Character["Left Arm"]
  348. for i = 1, 20 do
  349. game:GetService("RunService").Heartbeat:Wait()
  350. rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15)
  351. RS.C0 = RS.C0:Lerp(RSnor, 0.15)
  352. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, 0, -4), 0.15)
  353. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  354. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  355. end
  356. throwbutton = true
  357. throw = true
  358. repeat game:GetService("RunService").Heartbeat:Wait()
  359. remote:FireClient(plr)
  360. until throw == false
  361. for i = 1, 15 do
  362. game:GetService("RunService").Heartbeat:Wait()
  363. LS.C0 = LS.C0:Lerp(LS.C0 * CFrame.Angles(0, 0, 0.01), i)
  364. end
  365. weld:Destroy()
  366. banpart.Parent = workspace
  367. banpart.CanCollide = true
  368. banpart.Velocity = char.HumanoidRootPart.CFrame.LookVector * 60
  369. banpart.Size = Vector3.new(10, 10, 10)
  370. local start = LS.C0
  371. for i = 1, 0, -1 / 15 do
  372. game:GetService("RunService").Heartbeat:Wait()
  373. LS.C0 = LSnor:Lerp(start, i * i)
  374. end
  375. normalanim = true
  376. attackd = false
  377. hum.WalkSpeed = 16
  378. hum.JumpPower = 50
  379. banpart.Touched:Connect(function(hit)
  380. if hit.Name == "Base" then
  381.  
  382. else
  383. hit:Destroy()
  384. end
  385. end)
  386. spawn(function()
  387. wait(15)
  388. if banpart.Parent == workspace then
  389. banpart:Destroy()
  390. end
  391. end)
  392. end
  393. if key == Enum.KeyCode.X then
  394. attackd = true
  395. normalanim = false
  396. local bpart = Instance.new("Part", workspace)
  397. bpart.Size = Vector3.new(2.4, 3.5, 2.4)
  398. bpart.Locked = true
  399. bpart.CFrame = char.HumanoidRootPart.CFrame
  400. bpart.BrickColor = BrickColor.new("White")
  401. bpart.Transparency = 0.7
  402. local mesh = Instance.new("SpecialMesh", bpart)
  403. mesh.MeshType = "FileMesh"
  404. mesh.MeshId = "rbxassetid://2620904945"
  405. mesh.Scale = Vector3.new(1.1, 1.1, 1.1)
  406. local epart = Instance.new("Part", workspace)
  407. epart.Size = Vector3.new(10, 10, 10)
  408. epart.Material = "Neon"
  409. epart.CanCollide = false
  410. epart.Anchored = true
  411. epart.Locked = true
  412. epart.Shape = "Ball"
  413. epart.CFrame = char.HumanoidRootPart.CFrame
  414. epart.BrickColor = BrickColor.new("White")
  415. bpart.Transparency = 0.7
  416. epart.Size = epart.Size + Vector3.new(1, 1, 1)
  417. wait(0.00001)
  418. bpart.Transparency = 0.6
  419. epart.Size = epart.Size + Vector3.new(1, 1, 1)
  420. wait(0.00001)
  421. bpart.Transparency = 0.5
  422. epart.Size = epart.Size + Vector3.new(1, 1, 1)
  423. wait(0.00001)
  424. bpart.Transparency = 0.4
  425. epart.Size = epart.Size + Vector3.new(1, 1, 1)
  426. wait(0.00001)
  427. bpart.Transparency = 0.3
  428. epart.Size = epart.Size + Vector3.new(1, 1, 1)
  429. wait(0.00001)
  430. bpart.Transparency = 0.2
  431. epart.Size = epart.Size + Vector3.new(1, 1, 1)
  432. wait(0.00001)
  433. bpart.Transparency = 0.1
  434. epart.Size = epart.Size + Vector3.new(1, 1, 1)
  435. local explosion = Instance.new("Explosion", bpart)
  436. explosion.Position = bpart.Position
  437. explosion.BlastRadius = 100000
  438. local sound2 = Instance.new("Sound", bpart)
  439. sound2.SoundId = "rbxasset://sounds\\Rocket shot.wav"
  440. sound2.Volume = 5
  441. sound2:Play()
  442. bpart.CanCollide = false
  443. attackd = false
  444. wait(0.1)
  445. bpart:Destroy()
  446. epart:Destroy()
  447. normalanim = true
  448. end
  449. if key == Enum.KeyCode.C then
  450. sine = 0
  451. attackd = true
  452. normalanim = false
  453. hum.WalkSpeed = 0
  454. hum.JumpPower = 0
  455. for i = 1, 20 do
  456. game:GetService("RunService").Heartbeat:Wait()
  457. rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15)
  458. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, 4), 0.15)
  459. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, 0, -4), 0.15)
  460. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  461. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  462. end
  463. local tpart = Instance.new("Part", char)
  464. tpart.Size = Vector3.new(5.523, 6.19, 22.966)
  465. tpart.Anchored = true
  466. tpart.BrickColor = BrickColor.new("Royal purple")
  467. tpart.Material = "Neon"
  468. tpart.CanCollide = false
  469. tpart.CFrame = char["Right Arm"].CFrame * CFrame.Angles(math.pi, -math.pi / 2, 0) * CFrame.new(0, 4, 1)
  470. local mesh = Instance.new("SpecialMesh", tpart)
  471. wait(0.5)
  472. for i = 1, 15 do
  473. game:GetService("RunService").Heartbeat:Wait()
  474. RS.C0 = RS.C0:Lerp(RS.C0 * CFrame.Angles(0, 0, -0.01), i)
  475. LS.C0 = LS.C0:Lerp(LS.C0 * CFrame.Angles(0, 0, 0.01), i)
  476. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  477. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  478. tpart.CFrame = char["Right Arm"].CFrame * CFrame.Angles(math.pi, -math.pi / 2, 0) * CFrame.new(0, 4, 1)
  479. end
  480. tpart.Anchored = false
  481. tpart.Velocity = char.HumanoidRootPart.CFrame.LookVector * 100
  482. tpart.CanCollide = true
  483. tpart.Parent = workspace
  484. spawn(function()
  485. wait(0.3)
  486. tpart.Touched:Connect(function(hit)
  487. if hit.Size.X + hit.Size.Y + hit.Size.Z < 1000 then
  488. hit:BreakJoints()
  489. hit.Anchored = false
  490. hit.Velocity = tpart.Velocity
  491. end
  492. end)
  493. end)
  494. for i = 1, 20 do
  495. game:GetService("RunService").Heartbeat:Wait()
  496. rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15)
  497. RS.C0 = RS.C0:Lerp(RSnor, 0.15)
  498. LS.C0 = LS.C0:Lerp(LSnor, 0.15)
  499. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  500. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  501. end
  502. attackd = false
  503. normalanim = true
  504. hum.WalkSpeed = 16
  505. hum.JumpPower = 50
  506. end
  507. if key == Enum.KeyCode.V then
  508. attackd = true
  509. normalanim = false
  510. bye = Instance.new("Sound",owner.Character.Head)
  511. bye.Playing = true
  512. bye.SoundId = "rbxassetid://2545211516"
  513. bye.Volume = 1000
  514. repeat
  515. local idleanim = Instance.new("Animation")
  516. idleanim.Name = "Roblox Idle Animation"
  517. idleanim.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  518. local idleanimplay = hum:LoadAnimation(idleanim)
  519. idleanimplay:Play()
  520. for i = 1, 20 do
  521. game:GetService("RunService").Heartbeat:Wait()
  522. rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15)
  523. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, -4), 0.15)
  524. LS.C0 = LS.C0:Lerp(LSnor, 0.15)
  525. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  526. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  527. end
  528. until bye.Playing == false
  529. attackd = false
  530. normalanim = true
  531. hum.WalkSpeed = 16
  532. hum.JumpPower = 50
  533. end
  534. elseif Player.Name == plr.Name and number == 2 and throw == true and throwbutton == true then
  535. throwbutton = false
  536. throw = false
  537. end
  538. end)
  539.  
  540. ---------------------------------
  541. -----------Wrapping up-----------
  542. ---------------------------------
  543.  
  544. while game:GetService("RunService").Heartbeat:Wait() do
  545. if normalanim then
  546. sine = sine + 1
  547. end
  548. if crabrave.Parent == char.Torso then
  549. crabrave.SoundId = "rbxassetid://2533880583"
  550. crabrave.Playing = true
  551. crabrave.Volume = 1
  552. crabrave.Looped = true
  553. timepos = crabrave.TimePosition
  554. else
  555. crabrave = Instance.new("Sound", char.Torso)
  556. crabrave.TimePosition = timepos
  557. end
  558. if remote.Parent == char then
  559. remote.Name = "ReplicationEvent"
  560. else
  561. remote = Instance.new("RemoteEvent", char)
  562. end
  563. local touchfloor = workspace:FindPartOnRay(Ray.new(char.HumanoidRootPart.CFrame.Position, ((CFrame.new(char.HumanoidRootPart.Position, char.HumanoidRootPart.Position - Vector3.new(0, 1, 0))).LookVector).Unit * 4), char)
  564. if char.HumanoidRootPart.Velocity.Magnitude > 1 and touchfloor then
  565. animpose = "Walking"
  566. elseif char.HumanoidRootPart.Velocity.Y > 0.5 and touchfloor == nil then
  567. animpose = "Jumping"
  568. elseif char.HumanoidRootPart.Velocity.Y < 0.5 and touchfloor == nil then
  569. animpose = "Falling"
  570. else
  571. animpose = "Idle"
  572. end
  573. if animpose == "Idle" and normalanim then
  574. text.Text = "J҉ E҉ V҉ I҉ L҉ HEALTH: " ..owner.Character.Humanoid.Health .. " / " ..owner.Character.Humanoid.MaxHealth
  575. RS.C0 = RSnor * CFrame.Angles(0, 0, 1 + math.sin(sine / 5))
  576. LS.C0 = LSnor * CFrame.Angles(0, 0, -1 + math.sin(sine / 5))
  577. RH.C0 = RH.C0:Lerp(RHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
  578. LH.C0 = LH.C0:Lerp(LHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
  579. rootj.C0 = rootjnor * CFrame.new(math.sin(sine / 10) / 2, 0, math.sin(sine / 5) / 2)
  580. elseif animpose == "Walking" and normalanim then
  581. text.Text = "J҉ E҉ V҉ I҉ L҉ HEALTH: " ..owner.Character.Humanoid.Health .. " / " ..owner.Character.Humanoid.MaxHealth
  582. RS.C0 = RSnor * CFrame.Angles(0, 0, 1 + math.sin(sine / 5))
  583. LS.C0 = LSnor * CFrame.Angles(0, 0, -1 + math.sin(sine / 5))
  584. RH.C0 = RH.C0:Lerp(RHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
  585. LH.C0 = LH.C0:Lerp(LHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
  586. rootj.C0 = rootjnor * CFrame.new(math.sin(sine / 10) / 2, 0, math.sin(sine / 5) / 2)
  587. elseif animpose == "Jumping" and normalanim then
  588. text.Text = "J҉ E҉ V҉ I҉ L҉ HEALTH: " ..owner.Character.Humanoid.Health .. " / " ..owner.Character.Humanoid.MaxHealth
  589. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(-0.5, 0, 0), 0.15)
  590. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.3, 0, 0), 0.15)
  591. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.3, 0, 0), 0.15)
  592. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  593. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  594. elseif animpose == "Falling" and normalanim then
  595. text.Text = "J҉ E҉ V҉ I҉ L҉ HEALTH: " ..owner.Character.Humanoid.Health .. " / " ..owner.Character.Humanoid.MaxHealth
  596. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0.5, 0, 0), 0.15)
  597. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.6, 0, 0), 0.15)
  598. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.6, 0, 0), 0.15)
  599. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  600. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  601. end
  602. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement