Advertisement
idkwhatiam

monkey jevil v4

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