idkwhatiam

yoyo

Jun 8th, 2019
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 31.14 KB | None | 0 0
  1.     --[[SCRIPT NAME]]--
  2. --[[
  3.    
  4.     Move List
  5.    
  6.     edit by BonnieKunG1s
  7. --]]
  8. warn'Edit By BonnieKunG1s'
  9.  
  10.  
  11. 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 = {}
  12. do
  13.     script.Parent = owner.Character
  14.     local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  15.     local function NewFakeEvent()
  16.         local Bind = Instance.new("BindableEvent")
  17.         local Fake;Fake = {Connections = {},
  18.         fakeEvent=true;
  19.         Connect=function(self,Func)
  20.             Bind.Event:connect(Func)
  21.             self.Connections[Bind] = true
  22.             return setmetatable({Connected = true},{
  23.             __index = function (self,Index)
  24.                 if Index:lower() == "disconnect" then
  25.                     return function() Fake.Connections[Bind] = false;self.Connected = false end
  26.                 end
  27.                 return Fake[Index]
  28.             end;
  29.             __tostring = function() return "Connection" end;
  30.         })
  31.         end}
  32.         Fake.connect = Fake.Connect;return Fake;
  33.     end
  34.     local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  35.     local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  36.     local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  37.         self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  38.     end};ContextActionService.UnBindAction = ContextActionService.BindAction
  39.     local function TriggerEvent(self,Event,...)
  40.         local Trigger = Mouse[Event]
  41.         if Trigger and Trigger.fakeEvent and Trigger.Connections then
  42.             for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  43.         end
  44.     end
  45.     Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  46.     Event.OnServerEvent:Connect(function(FiredBy,Input)
  47.         if FiredBy.Name ~= owner.Name then return end
  48.         if Input.MouseEvent then
  49.             Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  50.         else
  51.             local Begin = Input.UserInputState == Enum.UserInputState.Begin
  52.             if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  53.             for _,Action in pairs(ContextActionService.Actions) do
  54.                 for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  55.             end
  56.             Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  57.             UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  58.         end
  59.     end)
  60.     InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  61.     Event.Parent = NLS([[
  62.         local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  63.         local Input = function(Input,gameProcessedEvent)
  64.             if gameProcessedEvent then return end
  65.             Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  66.         end
  67.         UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  68.         local Hit,Target
  69.         while wait(1/30) do
  70.             if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  71.                 Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  72.             end
  73.         end
  74.     ]],owner.Character)
  75. end
  76. RealGame = game;game = setmetatable({},{
  77.     __index = function (self,Index)
  78.         local Sandbox = function (Thing)
  79.             if Thing:IsA("Player") then
  80.                 local RealPlayer = Thing
  81.                 return setmetatable({},{
  82.                     __index = function (self,Index)
  83.                         local Type = type(RealPlayer[Index])
  84.                         if Type == "function" then
  85.                             if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  86.                                 return function (self)return InternalData["Mouse"] end
  87.                             end
  88.                             return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  89.                         end
  90.                         return RealPlayer[Index]
  91.                     end;
  92.                     __tostring = function(self) return RealPlayer.Name end
  93.                 })
  94.             end
  95.         end
  96.         if RealGame[Index] then
  97.             local Type = type(RealGame[Index])
  98.             if Type == "function" then
  99.                 if Index:lower() == "getservice" or Index:lower() == "service" then
  100.                     return function (self,Service)
  101.                         local FakeServices = {
  102.                             ["players"] = function()
  103.                                 return setmetatable({},{
  104.                                     __index = function (self2,Index2)
  105.                                         local RealService = RealGame:GetService(Service)
  106.                                         local Type2 = type(Index2)
  107.                                         if Type2 == "function" then
  108.                                             return function (self,...) return RealService[Index2](RealService,...)end
  109.                                         else
  110.                                             if Index2:lower() == "localplayer" then return Sandbox(owner) end
  111.                                             return RealService[Index2]
  112.                                         end
  113.                                     end;
  114.                                     __tostring = function(self) return RealGame:GetService(Service).Name end
  115.                                 })
  116.                             end;
  117.                             ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  118.                             ["userinputservice"] = function() return InternalData["UserInputService"] end;
  119.                             ["runservice"] = function()
  120.                                 return setmetatable({},{
  121.                                     __index = function(self2,Index2)
  122.                                         local RealService = RealGame:GetService(Service)
  123.                                         local Type2 = type(Index2)
  124.                                         if Type2 == "function" then
  125.                                             return function (self,...) return RealService[Index2](RealService,...) end
  126.                                         else
  127.                                             local RunServices = {
  128.                                                 ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  129.                                                 ["renderstepped"] = function() return RealService["Stepped"] end
  130.                                             }
  131.                                             if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  132.                                             return RealService[Index2]
  133.                                         end
  134.                                     end
  135.                                 })
  136.                             end
  137.                         }
  138.                         if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  139.                         return RealGame:GetService(Service)
  140.                     end
  141.                 end
  142.                 return function (self,...) return RealGame[Index](RealGame,...) end
  143.             else
  144.                 if game:GetService(Index) then return game:GetService(Index) end
  145.                 return RealGame[Index]
  146.             end
  147.         end
  148.         return nil
  149.     end
  150. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  151.  
  152. local hes = game.Players.LocalPlayer.Character.Humanoid
  153. hes.MaxHealth = math.huge
  154. local plr = game.Players.LocalPlayer
  155. local char = plr.Character
  156. local mouse = plr:GetMouse()
  157. local torso = char.Torso
  158. local rs = torso["Right Shoulder"]
  159. local ls = torso["Left Shoulder"]
  160. local rh = torso["Right Hip"]
  161. local lh = torso["Left Hip"]
  162. local rj = char.HumanoidRootPart.RootJoint
  163. local neck = torso.Neck
  164. local animpose = "Idle"
  165. local attacking = false
  166. local cananim = true
  167. local rage = false
  168. local shield = nil
  169. local sprint = false
  170. local canrage = true
  171. local legs = false
  172. local trail = false
  173. local powers = false
  174. local bc = char:WaitForChild("Body Colors")
  175. local multiplier = 1
  176. local lac = char["Body Colors"].LeftArmColor
  177. local rac = char["Body Colors"].RightArmColor
  178. local rlc = char["Body Colors"].RightArmColor
  179. local llc = char["Body Colors"].LeftLegColor
  180. local hc = char["Body Colors"].HeadColor
  181. local tc = char["Body Colors"].TorsoColor
  182. local humanoid = char:FindFirstChildOfClass("Humanoid")
  183. local huge = Vector3.new(math.huge,math.huge,math.huge)
  184. local mobs = Instance.new("Sound", char)
  185. mobs.SoundId = "rbxassetid://649630245"
  186. mobs.Looped = true
  187. mobs.Volume = 3
  188. mobs:Play()
  189. if char:FindFirstChild("Animate") then char.Animate:Destroy() end
  190. if char:FindFirstChildOfClass("Humanoid"):FindFirstChild("Animator") then char:FindFirstChildOfClass("Humanoid").Animator:Destroy() end
  191. function legsonly()
  192.     spawn(function()
  193.         for i = 0, 10 do
  194.             wait(0.001)
  195.             if attacking then break end
  196.         end
  197.         if not attacking then
  198.             legs = false
  199.         end
  200.     end)
  201. end
  202. function swait(t)
  203.     if t == nil or t == 0 then
  204.         game:service('RunService').Stepped:wait(0)
  205.         return true
  206.     else
  207.         for i = 0, t do
  208.             game:service('RunService').Stepped:wait(0)
  209.         end
  210.         return true
  211.     end
  212. end
  213. function hurt(hit, dmg)
  214.     if hit.Parent then
  215.         if hit.Parent:IsA("LocalScript") then hit.Parent:Destroy() end
  216.         local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  217.         if hum then
  218.             if hum.Parent.Name ~= plr.Name then
  219.                 if dmg == "Kill" or hum.Health > 100000 then
  220.                     hit.Parent:BreakJoints()
  221.                     return true
  222.                 else
  223.                     if math.random(0, 100) == 50 then
  224.                         hum.Health = hum.Health - dmg*multiplier*2.5
  225.                     else
  226.                         hum.Health = hum.Health -dmg*multiplier
  227.                     end
  228.                     return true
  229.                 end
  230.             end
  231.         end
  232.     end
  233. end
  234. function soundeffect(id, volume, speed, parent)
  235.     spawn(function()
  236.     local s = Instance.new("Sound")
  237.     s.SoundId = id
  238.     s.Volume = volume
  239.     s.PlaybackSpeed = speed
  240.     s.Parent = parent
  241.     s:Play()
  242.     repeat wait() until not s.Playing
  243.     s:Destroy()
  244.     end)
  245. end
  246. function gethum(obj)
  247.     if obj.Parent then
  248.         if obj.Parent:FindFirstChild("Humanoid") then
  249.             if obj.Parent.Name ~= plr.Name then
  250.                 return obj.Parent:FindFirstChildOfClass("Humanoid")
  251.             end
  252.         end
  253.     end
  254. end
  255. function smooth(obj)
  256.     local sides = {"Left", "Right", "Top", "Bottom", "Front", "Back"}
  257.     for i,v in pairs(sides) do
  258.         obj[v.."Surface"] = "SmoothNoOutlines"
  259.     end
  260. end
  261. function getparent()
  262.     local par = workspace:FindFirstChild("BasePlate")
  263.     if not par then par = workspace:FindFirstChild("Base") end
  264.     if not par then par = char.Head end
  265.     return par
  266. end
  267. function fade(obj, dest, grow)
  268.     spawn(function()
  269.         local oldcf = obj.CFrame
  270.         for i = 0, 10 do
  271.             if grow then
  272.                 obj.Size = obj.Size +Vector3.new(1,1,1)
  273.                 obj.CFrame = oldcf
  274.             end
  275.             obj.Transparency = obj.Transparency +0.1
  276.             swait()
  277.         end
  278.         if dest then
  279.         obj:Destroy()
  280.         end
  281.     end)
  282. end
  283. function replacejoint(name)
  284.     local j = torso:FindFirstChild(name)
  285.     if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  286.     if j then
  287.         if true then
  288.             local new = Instance.new("Weld")
  289.             new.Part0 = j.Part0
  290.             j.Part0 = nil
  291.             new.Name = j.Name.." Replacement"
  292.             new.Parent = j.Parent
  293.             new.Part1 = j.Part1
  294.             new.C0 = j.C0
  295.             new.C1 = j.C1
  296.             return new
  297.         end
  298.     end
  299. end
  300. function removejoint(name)
  301.     local j = torso:FindFirstChild(name.." Replacement")
  302.     if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  303.     if j then
  304.         local p0 = j.Part0
  305.         local c0 = j.C0
  306.         local c1 = j.C1
  307.         j:Destroy()
  308.         local new = p0:FindFirstChild(name)
  309.         local ac0 = new.C0
  310.         local ac1 = new.C1
  311.         new.Part0 = p0
  312.         new.C0 = c0
  313.         new.C1 = c1
  314.         spawn(function()
  315.             for i = 0, 1, 0.1 do
  316.                 new.C0 = new.C0:Lerp(ac0, 0.7)
  317.                 new.C1 = new.C1:lerp(ac1, 0.7)
  318.                 wait()
  319.             end
  320.         end)
  321.     end
  322. end
  323. function fixalljoints()
  324.     for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip",  "Neck", "RootJoint"}) do
  325.         removejoint(v)
  326.     end
  327. end
  328. function getnewjoints()
  329.     local rs = replacejoint("Right Shoulder")
  330.     local ls = replacejoint("Left Shoulder")
  331.     local rh = replacejoint("Right Hip")
  332.     local lh = replacejoint("Left Hip")
  333.     local neck = replacejoint("Neck")
  334.     local rj = replacejoint("RootJoint")
  335.     return rs,ls,rh,lh,neck,rj
  336. end
  337. function chargegui()
  338.     local gui = Instance.new("ScreenGui")
  339.     gui.Name = "Charge"
  340.     item1 = Instance.new('TextLabel')
  341.     item1.Active = false
  342.     item1.AnchorPoint = Vector2.new(0, 0)
  343.     item1.BackgroundColor3 = Color3.new(1, 1, 1)
  344.     item1.BackgroundTransparency = 1
  345.     item1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  346.     item1.BorderSizePixel = 1
  347.     item1.Name = [[TextLabel]]
  348.     item1.Position = UDim2.new(0,620,0,11)
  349.     item1.Rotation = 0
  350.     item1.Selectable = false
  351.     item1.Size = UDim2.new(0,204,0,25)
  352.     item1.SizeConstraint = Enum.SizeConstraint.RelativeXY
  353.     item1.Visible = true
  354.     item1.ZIndex = 1
  355.     item1.ClipsDescendants = false
  356.     item1.Draggable = false
  357.     item1.Font = Enum.Font.SourceSansLight
  358.     item1.FontSize = Enum.FontSize.Size24
  359.     item1.Text = [[Charge Level]]
  360.     item1.TextColor3 = Color3.new(0, 0, 0)
  361.     item1.TextScaled = false
  362.     item1.TextSize = 24
  363.     item1.TextStrokeColor3 = Color3.new(0, 0, 0)
  364.     item1.TextStrokeTransparency = 1
  365.     item1.TextTransparency = 0
  366.     item1.TextWrapped = false
  367.     item1.TextXAlignment = Enum.TextXAlignment.Center
  368.     item1.TextYAlignment = Enum.TextYAlignment.Center
  369.     item1.Parent = gui
  370.     item2 = Instance.new('Frame')
  371.     item2.Active = false
  372.     item2.AnchorPoint = Vector2.new(0, 0)
  373.     item2.BackgroundColor3 = Color3.new(0, 0.760784, 0.0470588)
  374.     item2.BackgroundTransparency = 0
  375.     item2.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  376.     item2.BorderSizePixel = 0
  377.     item2.Name = [[Bar]]
  378.     item2.Position = UDim2.new(0,566,0,49)
  379.     item2.Rotation = 0
  380.     item2.Selectable = false
  381.     item2.Size = UDim2.new(0,312,0,55)
  382.     item2.SizeConstraint = Enum.SizeConstraint.RelativeXY
  383.     item2.Visible = true
  384.     item2.ZIndex = 2
  385.     item2.ClipsDescendants = false
  386.     item2.Draggable = false
  387.     item2.Parent = gui
  388.     item3 = Instance.new('Frame')
  389.     item3.Active = false
  390.     item3.AnchorPoint = Vector2.new(0, 0)
  391.     item3.BackgroundColor3 = Color3.new(0, 0, 0)
  392.     item3.BackgroundTransparency = 0
  393.     item3.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  394.     item3.BorderSizePixel = 0
  395.     item3.Name = [[Frame]]
  396.     item3.Position = UDim2.new(0,561,0,45)
  397.     item3.Rotation = 0
  398.     item3.Selectable = false
  399.     item3.Size = UDim2.new(0,322,0,54)
  400.     item3.SizeConstraint = Enum.SizeConstraint.RelativeXY
  401.     item3.Visible = true
  402.     item3.ZIndex = 1
  403.     item3.ClipsDescendants = false
  404.     item3.Draggable = false
  405.     item3.Parent = gui
  406.     gui.Parent = plr.PlayerGui
  407.     return gui
  408. end
  409. local keyamount = 0
  410. mouse.KeyDown:connect(function(key)
  411.     if key == "w" or key == "a" or key == "s" or key == "d" then
  412.         keyamount = keyamount + 1
  413.         if animpose ~= "Falling" then
  414.             animpose = "Walking"
  415.             if keyamount > 3 then keyamount = 0 end
  416.         end
  417.     end
  418. end)
  419. mouse.KeyUp:connect(function(key)
  420.     if key == "w" or key == "a" or key == "s" or key == "d" then
  421.         keyamount = keyamount - 1
  422.         if keyamount < 0 then keyamount = 0 end
  423.         if keyamount == 0 then
  424.             animpose = "Idle"
  425.         end
  426.     end
  427. end)
  428. local model = Instance.new("Model")
  429. model.Name = "YOYO"
  430. item1 = Instance.new('Part')
  431. item1.BrickColor = BrickColor.new('Really black')
  432.  item1.Material = Enum.Material.Plastic
  433. item1.Reflectance = 0
  434. item1.Transparency = 0
  435. item1.Name = 'Part1'
  436. item1.Anchored = false
  437. item1.CanCollide = true
  438. item1.Locked = true
  439. item1.Size = Vector3.new(0.299999982, 1.10000002, 1.10000002) smooth(item1)
  440. item1.Parent = model
  441. item2 = Instance.new('Part')
  442. item2.BrickColor = BrickColor.new('White')
  443.  item2.Material = Enum.Material.Neon
  444. item2.Reflectance = 0
  445. item2.Transparency = 0
  446. item2.Name = 'Handle'
  447. item2.Anchored = false
  448. item2.CanCollide = true
  449. item2.Locked = true
  450. item2.Size = Vector3.new(0.299999982, 0.700000048, 0.700000048) smooth(item2)
  451. item2.Parent = model
  452. item3 = Instance.new('Part')
  453. item3.BrickColor = BrickColor.new('Really black')
  454.  item3.Material = Enum.Material.Plastic
  455. item3.Reflectance = 0
  456. item3.Transparency = 0
  457. item3.Name = 'Part2'
  458. item3.Anchored = false
  459. item3.CanCollide = true
  460. item3.Locked = true
  461. item3.Size = Vector3.new(0.299999982, 1.10000002, 1.10000002) smooth(item3)
  462. item3.Parent = model
  463. item4 = Instance.new('Weld')
  464. item4.Name = 'Weld'
  465. item4.Part0 = model.Part1
  466. item4.Part1 = model.Handle
  467. item4.C0 = CFrame.new(-55.2500038, -0.0500000007, -54.4500008, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  468. item4.C1 = CFrame.new(-55.5500031, -0.0500000007, -54.4500008, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  469. item4.Parent = model.Part1
  470. item5 = Instance.new('Weld')
  471. item5.Name = 'Weld'
  472. item5.Part0 = model.Part2
  473. item5.Part1 = model.Part1
  474. item5.C0 = CFrame.new(-55.8500023, -0.0500000007, -54.4500008, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  475. item5.C1 = CFrame.new(-55.2500038, -0.0500000007, -54.4500008, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  476. item5.Parent = model.Part2
  477. item6 = Instance.new('SpecialMesh')
  478. item6.Name = 'Mesh'
  479. item6.MeshType = Enum.MeshType.Cylinder
  480. item6.MeshId = ''
  481. item6.Scale = Vector3.new(1, 1, 1)
  482. item6.Parent = model.Part1
  483. item7 = Instance.new('SpecialMesh')
  484. item7.Name = 'Mesh'
  485. item7.MeshType = Enum.MeshType.Cylinder
  486. item7.MeshId = ''
  487. item7.Scale = Vector3.new(1, 1, 1)
  488. item7.Parent = model.Handle
  489. item8 = Instance.new('SpecialMesh')
  490. item8.Name = 'Mesh'
  491. item8.MeshType = Enum.MeshType.Cylinder
  492. item8.MeshId = ''
  493. item8.Scale = Vector3.new(1, 1, 1)
  494. item8.Parent = model.Part2
  495. model.Parent = char
  496. local handle = model.Handle
  497. local handlew = Instance.new("Weld")
  498. handlew.Part0 = handle
  499. handlew.Part1 = char["Right Arm"]
  500. handlew.C1 = CFrame.new(0,-1,0)
  501. handlew.Parent = handle
  502. for i,v in pairs(model:children()) do
  503.     v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  504. end
  505.  
  506. local gdown = false
  507. local tdown = false
  508. mouse.KeyDown:connect(function(key)
  509.     if key == "g" and not attacking and not gdown then
  510.         local rs = replacejoint("Right Shoulder")
  511.         local ls = replacejoint("Left Shoulder")
  512.         local rj = replacejoint("RootJoint")
  513.         gdown = true
  514.         attacking = true
  515.         local gui = chargegui()
  516.         local bar = gui.Bar
  517.         local power = 0
  518.         repeat swait()
  519.             power = power + 5
  520.             if power > 312 then power = 312 end
  521.             bar.Size = UDim2.new(0,(power/312)*312,0,55)
  522.             ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.156434491, -0.987688541, 0, 0.987688541, 0.156434491, 1, 0, 0), 0.2)
  523.             rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -0.00657593738, -0.199269861, 0.979922593, -0.590055168, 0.791935623, 0.157082453, -0.807337344, -0.577175498, -0.122787893), 0.2)
  524.             rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.987688661, -0.156434506, 0, 0, 0, 1, -0.156434506, 0.987688661, 0), 0.2)
  525.         until not gdown
  526.         gui:Destroy()
  527.         for i = 0, 2, 0.1 do
  528.             ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.0523359701, -0.998629749, 0, 0.998629749, 0.0523359701, 1, 0, 0), 0.2)
  529.             rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -0.128450975, 0.152486846, 0.979922593, 0.968406498, -0.193699107, 0.157082453, 0.213763118, 0.969141543, -0.122787893), 0.2)
  530.             rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.992546797, 0.1218694, 0, 0, 0, 1, 0.1218694, 0.992546797, 0), 0.2)
  531.             if i == 0.5 then
  532.                 handlew.Part0 = nil
  533.                 local bv = Instance.new("BodyVelocity")
  534.                 bv.MaxForce = huge
  535.                 bv.Velocity = CFrame.new(handle.Position, mouse.Hit.p).lookVector*(power*0.5)
  536.                 bv.Parent = handle
  537.                 game.Debris:AddItem(bv, 0.1)
  538.                 local con
  539.                 local w
  540.                 con = handle.Touched:connect(function(hit)
  541.                     if hurt(hit, 10) then
  542.                         con:disconnect()
  543.                         w = Instance.new("Weld")
  544.                         w.Part0 = hit
  545.                         w.Part1 = handle
  546.                         w.C0 = hit.CFrame:inverse()
  547.                         w.C1 = handle.CFrame:inverse()
  548.                         w.Parent = hit
  549.                     end
  550.                 end)
  551.                 local num = 0
  552.                 repeat swait()
  553.                     trail = true
  554.                     num = num + 1
  555.                 until num >= 100  or w
  556.                 if not w then con:disconnect() end
  557.                 handlew.C0 = CFrame.new(0,0,0)
  558.                 handlew.C1 = CFrame.new(0,-1,0)
  559.                 local cf = handle.CFrame
  560.                 for i = 1, 20 do
  561.                     handle.Anchored = false
  562.                     handle.CFrame = cf:Lerp(char["Right Arm"].CFrame *CFrame.new(0,-1,0), i/20)
  563.                     handle.Anchored = true
  564.                     swait()
  565.                 end
  566.                 if w then w:Destroy() end
  567.                 handle.Anchored = false
  568.                 trail = false
  569.                 handlew.Part0 = handle
  570.             end
  571.             swait()
  572.         end
  573.        
  574.         attacking = false
  575.         fixalljoints()
  576.     end
  577.     if key == "f" and not attacking then
  578.         attacking = true
  579.         humanoid.WalkSpeed = 0
  580.         local touch = false
  581.         local num = 0
  582.         local parts = {}
  583.         local last = char.Torso.CFrame *CFrame.new(0,-3,0)
  584.         local lastscale = 1.5
  585.         local x,z = 0,0
  586.         local udown = false
  587.         handlew.Part0 = nil
  588.         local con = mouse.KeyDown:connect(function(key)
  589.             if key == "w" then
  590.                 z = z + -2
  591.                 udown = true
  592.             end
  593.             if key == "a" then
  594.                 x = x + -0.3
  595.             end
  596.             if key == "d" then
  597.                 x = x + 0.3
  598.             end
  599.         end)
  600.         local con2 = mouse.KeyUp:connect(function(key)
  601.             if key == "w" then
  602.                 udown = false
  603.                 z = z - -2
  604.             end
  605.             if key == "a" then
  606.                 x = x - -0.3
  607.             end
  608.             if key == "d" then
  609.                 x = x - 0.3
  610.             end
  611.         end)
  612.         local dir = char.Torso.CFrame.lookVector
  613.         local o = workspace.CurrentCamera.CameraType
  614.         handle.Anchored = true
  615.         repeat swait()
  616.             local start = last *CFrame.new(0,0,-lastscale/2)
  617.             local thing = false
  618.             if z == 0 then
  619.                 z = -2
  620.                 thing = true
  621.             end
  622.             local finish = last *CFrame.new(x,0,z)
  623.             local mag = (start.p-finish.p).magnitude
  624.             num = num + 1
  625.             local p = Instance.new("Part")
  626.             p.Size = Vector3.new(1,0.2,mag)
  627.             p.Name = "cool looking line that is just for looks"
  628.             p.Anchored = true
  629.             p.BrickColor = BrickColor.new("White")
  630.             p.Material = "Neon"
  631.             smooth(p)
  632.             p.CFrame = CFrame.new(start.p, finish.p)
  633.             p.CFrame = p.CFrame *CFrame.new(0,0,-mag/2)
  634.             handle.Anchored = false
  635.             handle.CFrame = p.CFrame *CFrame.new(0.3,0,0)
  636.             handle.Anchored = true
  637.             last = p.CFrame
  638.             lastscale = mag
  639.             local m = Instance.new("SpecialMesh")
  640.             m.MeshType = "Brick"
  641.             m.Parent = p
  642.             p.Touched:connect(function(hit)
  643.                 if hurt(hit, 200) then
  644.                     touch = true
  645.                     local p1 = Instance.new("Part")
  646.                     soundeffect("rbxassetid://636458264", 2, 1, p1)
  647.                     p1.Anchored = true
  648.                     p1.CanCollide = false
  649.                     p1.BrickColor = BrickColor.new("White")
  650.                     p1.Material = "Neon"
  651.                     p1.Name = "omega ex-u-plosion"
  652.                     p1.CFrame = p.CFrame
  653.                     p1.Size = Vector3.new(0.2,0.2,0.2)
  654.                     p1.Transparency = 1
  655.                     local m = Instance.new("SpecialMesh")
  656.                     m.MeshType = "Sphere"
  657.                     m.Parent = p1
  658.                     p1.Parent = getparent()
  659.                     local sub = -0.1
  660.                     for i = 1, 30 do
  661.                         if i >= 15 then sub = 0.1 end
  662.                         p1.Transparency = p1.Transparency + sub
  663.                         local cf = p1.CFrame
  664.                         p1.Size = p1.Size:Lerp(Vector3.new(10,10,10),0.2)
  665.                         p1.CFrame = cf
  666.                         swait()
  667.                     end
  668.                     p1:Destroy()
  669.                 end
  670.             end)
  671.             table.insert(parts, p)
  672.             p.Parent = getparent()
  673.             workspace.CurrentCamera.CameraType = "Scriptable"
  674.             workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame:Lerp(p.CFrame *CFrame.new(0,2,2),0.5)
  675.             if thing then
  676.                 z = 0 thing = false
  677.             end
  678.         until touch or num == 500
  679.         handle.Anchored = false
  680.         local cf = handle.CFrame
  681.         for i = 1, 40 do
  682.             handle.Anchored = false
  683.             handle.CFrame = cf:Lerp(char["Right Arm"].CFrame *CFrame.new(0,-1,0), i/20)
  684.             handle.Anchored = true
  685.             swait()
  686.         end
  687.         handle.Anchored = false
  688.         handlew.Part0 = handle
  689.         workspace.CurrentCamera.CameraType = o
  690.         for i = 0, 1, 0.1 do
  691.             for i,v in pairs(parts) do
  692.                 v.Mesh.Scale = v.Mesh.Scale:Lerp(Vector3.new(0,1,1),0.3)
  693.             end
  694.             swait()
  695.         end
  696.         for i,v in pairs(parts) do
  697.             v:Destroy()
  698.         end
  699.         humanoid.WalkSpeed = 16
  700.         attacking = false
  701.     end
  702.     if key == "y" and not attacking then
  703.         attacking = true
  704.         local rs = replacejoint("Right Shoulder")
  705.         local ls = replacejoint("Left Shoulder")
  706.         local rj = replacejoint("RootJoint")
  707.         local num = 0
  708.         for i = 0, 2, 0.1 do
  709.             handlew.C1 = handlew.C1:Lerp(CFrame.new(0,-4,0), 0.2)
  710.             ls.C0 = ls.C0:Lerp(CFrame.new(-0.754648447, 0.476126075, -0.315012902, -0.0523041263, -0.613378763, -0.788055778, -0.998022199, 0.0596848764, 0.0197843909, 0.0348996557, 0.78753221, -0.615287662), 0.2)
  711.             rs.C0 = rs.C0:Lerp(CFrame.new(0.759603679, 0.487401366, -0.319454879, -0.0523360372, 0.600990534, 0.797541499, 0.99863106, 0.0314966701, 0.0417973027, -9.12696123e-008, 0.798637211, -0.601816177), 0.2)
  712.             rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  713.             swait()
  714.         end
  715.         trail = true
  716.         local connection = handle.Touched:connect(function(hit)
  717.             hurt(hit, math.random(20,50))
  718.         end)
  719.         for i = 0, 150 do
  720.             if i%20 == 0 then soundeffect("rbxassetid://541909867", 2, 2, handle) end
  721.             rj.C0 = rj.C0:Lerp(rj.C0*CFrame.Angles(0,0,math.rad(4*(i/2))), 0.2)
  722.             swait()
  723.         end
  724.         trail = false
  725.         attacking = false
  726.         connection:disconnect()
  727.         fixalljoints()
  728.         handlew.C1 = CFrame.new(0,-1,0)
  729.     end
  730.     if key == "t" and not attacking and not tdown then
  731.         tdown = true
  732.         attacking = true
  733.         local rs = replacejoint("Right Shoulder")
  734.         handlew.C0 = CFrame.new(3,0,0)
  735.         local power = 0
  736.         trail = true
  737.         local cons = {}
  738.         for i,v in pairs(handle.Parent:children()) do
  739.             local con = v.Touched:connect(function(hit)
  740.                 hurt(hit, 10)
  741.             end)
  742.             table.insert(cons, con)
  743.         end
  744.         repeat swait()
  745.             power = power + 5
  746.             if power >= 180 then power = 180 end
  747.             rs.C0 = rs.C0:Lerp(CFrame.new(1.52548289, 0.0268524922, 0, 0, -0.998630881, -0.0523358211, 0, -0.0523358211, 0.998630881, -1, 0, 0), 0.2)
  748.             handlew.C1 = handlew.C1 *CFrame.Angles(0,math.rad((power/180)*20),0)
  749.         until not tdown
  750.         handlew.Part0 = nil
  751.         local bv = Instance.new("BodyVelocity")
  752.         bv.MaxForce = huge
  753.         bv.Velocity = CFrame.new(handle.Position, mouse.Hit.p).lookVector*power
  754.         bv.Parent = handle
  755.         game.Debris:AddItem(bv, 0.1)
  756.         fixalljoints()
  757.         swait(100)
  758.         for i,v in pairs(cons) do
  759.             v:disconnect()
  760.         end
  761.         local cf = handle.CFrame
  762.         for i = 1, 20 do
  763.             handle.Anchored = false
  764.             handle.CFrame = cf:Lerp(char["Right Arm"].CFrame *CFrame.new(0,-1,0), i/20)
  765.             handle.Anchored = true
  766.             swait()
  767.         end
  768.         handle.Anchored = false
  769.         handlew.C1 = CFrame.new(0,-1,0)
  770.         handlew.C0 = CFrame.new(0,0,0)
  771.         trail = false
  772.         handlew.Part0 = handle
  773.         attacking = false
  774.     end
  775. end)
  776. mouse.KeyUp:connect(function(key)
  777.     if key == "g" and attacking then
  778.         gdown = false
  779.     end
  780.     if key == "t" and attacking then
  781.         tdown = false
  782.     end
  783. end)
  784. local parts = {}
  785. spawn(function()
  786.     local num = 0
  787.     local lastpart = nil
  788.     local lastscale = 0.5
  789.     local cf = handle.CFrame
  790.     while swait() do
  791.         for i,v in pairs(parts) do
  792.             if v:FindFirstChild("Mesh") then
  793.                 v.Mesh.Scale = v.Mesh.Scale:Lerp(Vector3.new(0,0,1), 0.2)
  794.                 if v.Mesh.Scale.X < 0.05 then
  795.                     v:Destroy()
  796.                 end
  797.             end
  798.         end
  799.         if trail and handle.CFrame ~= cf then
  800.             if not lastpart then lastpart = handle end
  801.             local start = lastpart.CFrame *CFrame.new(0,0,-lastscale/2)
  802.             local endpos = handle.CFrame
  803.             local mag = (start.p-endpos.p).magnitude
  804.             local p = Instance.new("Part")
  805.             p.Anchored = true
  806.             p.BrickColor = BrickColor.new("White")
  807.             p.Material = "Neon"
  808.             p.CanCollide = false
  809.             p.Size = Vector3.new(0.5,0.5,mag)
  810.             p.CFrame = CFrame.new(start.p, endpos.p)*CFrame.new(0,0,-mag/2)
  811.             local m = Instance.new("SpecialMesh")
  812.             m.MeshType = "Brick"
  813.             m.Parent = p
  814.             p.Parent = getparent()
  815.             table.insert(parts, p)
  816.             cf = handle.CFrame
  817.             lastscale = mag
  818.             lastpart = p
  819.         else
  820.             if lastpart then
  821.                 lastpart:Destroy()
  822.                 lastpart = nil
  823.                 lastscale = 0.5
  824.             end
  825.         end
  826.         local v = char.HumanoidRootPart.Velocity
  827.         if v.Y > 15 then
  828.             animpose = "Jump"
  829.         end
  830.         if v.Y < -15 then
  831.             animpose = "Falling"
  832.         end
  833.         if math.abs(v.X)+math.abs(v.Z) >=10 and v.Y == 0 then
  834.             animpose = "Walking"
  835.         end
  836.         if math.abs(v.X)+v.Y+math.abs(v.Z) <= 9 and v.Y == 0 then
  837.             animpose = "Idle"
  838.         end
  839.     end
  840. end)
  841. local num = 0
  842. while swait() do
  843.     num = num + 0.05
  844.     local sin = math.sin(num)
  845.     if animpose == "Walking" and cananim then
  846.         for i = 0, 1.5, 0.1 do
  847.             if animpose == "Walking" and cananim then
  848.                 ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0.0406726934, 0.0329360999, -0.99862957, 0.776081443, 0.62845856, 0.0523359552, 0.629320979, -0.777146459, 0), 0.2)
  849.                 rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -0.0388932228, -0.0350196026, 0.998629689, 0.742127001, 0.668214321, 0.0523359627, -0.66913116, 0.743145287, 0), 0.2)
  850.                 lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0.024677692, 0.0246776957, -0.999390841, 0.706676483, 0.706676781, 0.0348994955, 0.707107425, -0.707107246, 0), 0.2)
  851.                 rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -0.0136363264, -0.032125175, 0.999390841, 0.390493214, 0.919944584, 0.0348994955, -0.920505524, 0.390731305, 0), 0.2)
  852.                 neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  853.                 rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.99969542, -0.0174524058, 0.0174497478, 0.0174524058, 0, 0.99984771, -0.0174497478, 0.99984771, 0.000304586458), 0.2)
  854.                 swait()
  855.             else
  856.                 break
  857.             end
  858.         end
  859.         for i = 0, 1.5, 0.1 do
  860.             if animpose == "Walking" and cananim then
  861.                 ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -0.0433885492, 0.0292659476, -0.99862957, -0.827903032, 0.558427453, 0.0523359552, 0.559194028, 0.829038858, 0), 0.2)
  862.                 rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0.0400917344, -0.0336409658, 0.998629689, -0.764996171, 0.641907811, 0.0523359627, -0.642788768, -0.76604563, 0), 0.2)
  863.                 lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -0.0163843632, 0.0308145005, -0.999390841, -0.469186544, 0.882411182, 0.0348994955, 0.882949054, 0.469472289, 0), 0.2)
  864.                 rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0.0246777162, -0.0246777181, 0.999390841, -0.70667702, 0.70667696, 0.0348994955, -0.707107902, -0.707107782, 0), 0.2)
  865.                 neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  866.                 rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.999695539, 0.0174497515, -0.0174524095, -0.0174497515, 0.000304586574, 0.999847829, 0.0174524058, 0.99984771, -2.90993982e-11), 0.2)
  867.                 swait()
  868.             else
  869.                 break
  870.             end
  871.         end
  872.     end
  873.     if animpose == "Idle" and cananim then
  874.         ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.0523359552, -0.99862957, 0, 0.99862957, 0.0523359552, 1, 0, 0)*CFrame.new(0,sin/30,0)*CFrame.Angles(math.rad(sin*3),0,0), 0.2)
  875.         rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0, -0.0523359552, 0.99862957, 0, 0.99862957, 0.0523359552, -1, -0, 0)*CFrame.new(0,sin/30,0)*CFrame.Angles(math.rad(sin*3),0,0), 0.2)
  876.         lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0, 0.0348994955, -0.999390841, 0, 0.999390841, 0.0348994955, 1, 0, 0), 0.2)
  877.         rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, -0.0348994955, 0.999390841, 0, 0.999390841, 0.0348994955, -1, 0, 0), 0.2)
  878.         neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.994522035, -0.104528472, 0, 0, 0, 1, -0.104528472, 0.994522035, 0), 0.2)
  879.         rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.997564137, 0.0697564781, 0, 0, 0, 1, 0.0697564781, 0.997564137, 0), 0.2)
  880.         swait()
  881.     end
  882.     if animpose == "Jump" and cananim then
  883.         for i = 0, 0.8, 0.1 do
  884.             if animpose == "Jump" and cananim then
  885.                 ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.121869355, -0.99254632, 0, 0.99254632, 0.121869355, 1, 0, 0), 0.2)
  886.                 rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0, -0.104528472, 0.994522035, 0, 0.994522035, 0.104528472, -1, -0, 0), 0.2)
  887.                 lh.C0 = lh.C0:Lerp(CFrame.new(-1, -0.499999911, -0.5, 0, 0, -1, 0.309017062, 0.951056957, 0, 0.951056957, -0.309017062, 0), 0.2)
  888.                 rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, 0, 1, -0.121869355, 0.99254632, 0, -0.99254632, -0.121869355, 0), 0.2)
  889.                 neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  890.                 rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  891.                 swait()
  892.             else
  893.                 break
  894.             end
  895.         end
  896.     end
  897.     if animpose == "Falling" and cananim then
  898.         ls.C0 = ls.C0:Lerp(CFrame.new(-0.987813056, 0.599254608, 0, 0, 0.121869355, -0.99254632, 0, 0.99254632, 0.121869355, 1, 0, 0), 0.2)
  899.         rs.C0 = rs.C0:Lerp(CFrame.new(0.986082673, 0.599026859, 0, 0, -0.139173135, 0.990268409, 0, 0.990268409, 0.139173135, -1, 0, 0), 0.2)
  900.         lh.C0 = lh.C0:Lerp(CFrame.new(-1, -0.963904023, 0.0336604826, 0, 0.104528472, -0.994522035, 0.0697564557, 0.992099881, 0.1042739, 0.997564554, -0.0693743229, -0.00729153492), 0.2)
  901.         rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, -0.0697564781, 0.997564137, -0.121869355, 0.990128577, 0.0692365244, -0.99254632, -0.121572495, -0.00850117672), 0.2)
  902.         neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0.13917312, 0.99026823, 0, 0.99026823, -0.13917312), 0.2)
  903.         rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  904.     end
  905. end
Add Comment
Please, Sign In to add comment