Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- do
- print("FE Compatibility code V2 by Mokiros")
- local RealPlayer = RealPlayer
- script.Parent = RealPlayer.Character
- --Fake event to make stuff like Mouse.KeyDown work
- local Disconnect_Function = function(this)
- this[1].Functions[this[2]] = nil
- end
- local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
- local FakeEvent_Metatable = {__index={
- Connect = function(this,f)
- local i = tostring(math.random(0,10000))
- while this.Functions[i] do
- i = tostring(math.random(0,10000))
- end
- this.Functions[i] = f
- return setmetatable({this,i},Disconnect_Metatable)
- end
- }}
- FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
- local function fakeEvent()
- return setmetatable({Functions={}},FakeEvent_Metatable)
- end
- --Creating fake input objects with fake variables
- local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
- FakeMouse.keyUp = FakeMouse.KeyUp
- FakeMouse.keyDown = FakeMouse.KeyDown
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function TriggerEvent(self,ev,...)
- for _,f in pairs(self[ev].Functions) do
- f(...)
- end
- end
- FakeMouse.TriggerEvent = TriggerEvent
- UIS.TriggerEvent = TriggerEvent
- --Client communication
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=RealPlayer then return end
- FakeMouse.Target = io.Target
- FakeMouse.Hit = io.Hit
- if not io.isMouse then
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
- end
- if io.UserInputType == Enum.UserInputType.MouseButton2 then
- return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
- local Mouse = owner:GetMouse()
- local UIS = game:GetService("UserInputService")
- local input = function(io,RobloxHandled)
- if RobloxHandled then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local h,t
- --Give the server mouse data every second frame, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- local HB = game:GetService("RunService").Heartbeat
- while true do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- --Wait 2 frames
- for i=1,2 do
- HB:Wait()
- end
- end]==],script)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local RealGame = game
- --Metatable for fake service
- local FakeService_Metatable = {
- __index = function(self,k)
- local s = rawget(self,"_RealService")
- if s then
- return typeof(s[k])=="function"
- and function(_,...)return s[k](s,...)end or s[k]
- end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end
- }
- local function FakeService(t,RealService)
- t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
- return setmetatable(t,FakeService_Metatable)
- end
- --Fake game object
- local FakeGame = {
- GetService = function(self,s)
- return rawget(self,s) or RealGame:GetService(s)
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- RunService = FakeService({
- _btrs = {},
- RenderStepped = RealGame:GetService("RunService").Heartbeat,
- BindToRenderStep = function(self,name,_,fun)
- self._btrs[name] = self.Heartbeat:Connect(fun)
- end,
- UnbindFromRenderStep = function(self,name)
- self._btrs[name]:Disconnect()
- end,
- },"RunService")
- }
- rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
- FakeGame.service = FakeGame.GetService
- FakeService(FakeGame,game)
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = FakeGame,FakeGame.Players.LocalPlayer
- end
- wait(0.2)
- plr = silver22352
- chr = plr.Character
- Head = chr.Head
- Root = chr.HumanoidRootPart
- Torso = chr.Torso
- RArm = chr["Right Arm"]
- LArm = chr["Left Arm"]
- RLeg = chr["Right Leg"]
- LLeg = chr["Left Leg"]
- RJ = Root.RootJoint
- Neck = Torso.Neck
- LS = Torso["Left Shoulder"]
- LH = Torso["Left Hip"]
- RS = Torso["Right Shoulder"]
- RH = Torso["Right Hip"]
- hum = chr:FindFirstChildOfClass("Humanoid")
- mouse = silver22352
- Head2, Root2, RArm2, LArm2, RLeg2, LLeg2 = nil, nil, nil, nil, nil, nil
- Pose = "Idle"
- attack = false
- skilldoing = false
- skilldoing2 = false
- attack2 = false
- skilldoing5 = false
- skilldoing4 = false
- skilldoing3 = false
- comb = 1
- cc = 1
- sin = 0
- cha = 1
- clonez = false
- create = LoadLibrary("RbxUtility").Create
- chr.Animate:Remove()
- hum.Animator:Remove()
- function clerp(a, b, t)
- return a:lerp(b, t)
- end
- local newMotor = function(p0, p1, c0, c1)
- local w = Instance.new("Motor", p0)
- w.Part0 = p0
- w.Part1 = p1
- w.C0 = c0
- w.C1 = c1
- return w
- end
- RJ.C0, RJ.C1 = CFrame.new(0, 0, 0), CFrame.new(0, 0, 0)
- Neck.C0, Neck.C1 = CFrame.new(0, 1.5, 0), CFrame.new(0, 0, 0)
- local RS = newMotor(Torso, RArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
- local LS = newMotor(Torso, LArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
- local RH = newMotor(Torso, RLeg, CFrame.new(0.5, -2, 0), CFrame.new(0, 0, 0))
- local LH = newMotor(Torso, LLeg, CFrame.new(-0.5, -2, 0), CFrame.new(0, 0, 0))
- function NoOutline(Part)
- Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- function rayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- function swait(num)
- if num == 0 or num == nil then
- game:service("RunService").Stepped:wait(0)
- else
- for i = 0, num do
- game:service("RunService").Stepped:wait(0)
- end
- end
- end
- function parts(Par, name, size, color, mat, ref, tra)
- local part = create("Part")({
- Parent = Par,
- Name = name,
- Size = size,
- CanCollide = false,
- Anchored = false,
- BrickColor = BrickColor.new(color),
- Material = mat,
- Reflectance = ref,
- Transparency = tra
- })
- NoOutline(part)
- part:BreakJoints()
- return part
- end
- function meshs(Par, name, scale, mtype, id)
- local mesh = create("SpecialMesh")({
- Parent = Par,
- Name = name,
- Scale = scale,
- MeshType = mtype
- })
- if id ~= "" then
- mesh.MeshId = "rbxassetid://" .. id
- end
- return meshs
- end
- function welds(Par, name, p0, p1, c0, c1)
- local weld = create("Weld")({
- Parent = Par,
- Name = name,
- Part0 = p0,
- Part1 = p1,
- C0 = c0,
- C1 = c1
- })
- return weld
- end
- function sounds(Par, id, vol, pit)
- local sound = create("Sound")({
- Parent = Par,
- SoundId = id,
- Volume = vol,
- PlaybackSpeed = pit
- })
- sound:Play()
- game:GetService("Debris"):AddItem(sound, 10)
- return sound
- end
- m = Instance.new("Model", chr)
- m.Name = "Suit"
- e = Instance.new("Model", chr)
- e.Name = "Effect"
- N2T = parts(m, "N2T", Vector3.new(1.60000002, 2, 0.200000003), "Smoky grey", Enum.Material.SmoothPlastic, 0, 0)
- N2TWeld = welds(N2T, "N2TWeld", Torso, N2T, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.46047974E-4, -0.211395741, -0.600017548, 1, 2.04278001E-12, -5.23859955E-10, -2.04277524E-12, 1, 8.84741169E-9, 5.23859955E-10, -8.84741258E-9, 1))
- N2T = parts(m, "N2T", Vector3.new(1.20000005, 1.00000012, 0.200000003), "Smoky grey", Enum.Material.SmoothPlastic, 0, 0)
- N2TWeld = welds(N2T, "N2TWeld", Torso, N2T, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(9.05990601E-5, -0.706868172, 0.800048828, 1, 2.04278001E-12, -5.23859955E-10, -2.04277524E-12, 1, 8.84741169E-9, 5.23859955E-10, -8.84741258E-9, 1))
- N2T = parts(m, "N2T", Vector3.new(1.20000005, 1.20000005, 0.400000006), "Smoky grey", Enum.Material.SmoothPlastic, 0, 0)
- N2TWeld = welds(N2T, "N2TWeld", Torso, N2T, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.145903587, 0.146348, -0.899757385, -0.707038879, 0.707186699, 6.38328493E-5, -0.707186878, -0.707038939, -2.88823212E-5, 2.47075841E-5, -6.55715703E-5, 1.00000012))
- N2T = parts(m, "N2T", Vector3.new(1.20000005, 1.60000014, 0.200000003), "Smoky grey", Enum.Material.SmoothPlastic, 0, 0)
- N2TWeld = welds(N2T, "N2TWeld", Torso, N2T, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-6.29425049E-5, 0.193191051, 0.600090027, 1, 2.04278001E-12, -5.23859955E-10, -2.04277524E-12, 1, 8.84741169E-9, 5.23859955E-10, -8.84741258E-9, 1))
- N2T = parts(m, "N2T", Vector3.new(2, 0.600000024, 1.20000005), "Smoky grey", Enum.Material.SmoothPlastic, 0, 0)
- N2TWeld = welds(N2T, "N2TWeld", Torso, N2T, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.12669373E-4, -0.906851768, 0.100070953, 1, 2.04278001E-12, -5.23859955E-10, -2.04277524E-12, 1, 8.84741169E-9, 5.23859955E-10, -8.84741258E-9, 1))
- N2T = parts(m, "N2T", Vector3.new(2.0999999, 0.200000003, 1.10000002), "Smoky grey", Enum.Material.SmoothPlastic, 0, 0)
- N2TWeld = welds(N2T, "N2TWeld", Torso, N2T, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.41143799E-4, 0.893153906, 8.39233398E-5, 1, 2.04278001E-12, -5.23859955E-10, -2.04277524E-12, 1, 8.84741169E-9, 5.23859955E-10, -8.84741258E-9, 1))
- N2 = parts(m, "N2", Vector3.new(0.200000003, 1, 0.200000003), "Institutional white", Enum.Material.SmoothPlastic, 0, 0)
- N2Weld = welds(N2, "N2Weld", Torso, N2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.146298885, -0.145599365, -1.1001091, 0.707137525, 0.707088232, 5.0610106E-5, -0.707088292, 0.707137465, 9.14899283E-6, -2.93186422E-5, -4.22642916E-5, 1))
- N2 = parts(m, "N2", Vector3.new(1.19999993, 1.5999999, 0.200000003), "Fossil", Enum.Material.SmoothPlastic, 0, 0)
- N2Weld = welds(N2, "N2Weld", Torso, N2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.39372253E-4, -0.211386681, -0.800308228, 1, 2.04278001E-12, -5.23859955E-10, -2.04277524E-12, 1, 8.84741169E-9, 5.23859955E-10, -8.84741258E-9, 1))
- N2 = parts(m, "N2", Vector3.new(0.200000003, 1, 0.200000003), "Institutional white", Enum.Material.SmoothPlastic, 0, 0)
- N2Weld = welds(N2, "N2Weld", Torso, N2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.145659447, 0.14627552, -1.10010529, -0.707090497, 0.70713526, 6.38453057E-5, -0.70713532, -0.707090497, -2.88922456E-5, 2.47141797E-5, -6.55855983E-5, 1.00000012))
- N2T = parts(m, "N2T", Vector3.new(1.39999998, 1.39999998, 0.400000006), "Smoky grey", Enum.Material.SmoothPlastic, 0, 0)
- N2TWeld = welds(N2T, "N2TWeld", Head, N2T, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00810337067, -0.00790786743, -0.299024582, 0.70712018, -7.31203589E-4, -0.70709914, 0.707105279, -1.32752175E-4, 0.707114279, -6.10913557E-4, -1.00000834, 4.23167832E-4))
- N2T = parts(m, "N2T", Vector3.new(1.20000005, 0.200000003, 1), "Smoky grey", Enum.Material.SmoothPlastic, 0, 0)
- N2TWeld = welds(N2T, "N2TWeld", Head, N2T, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.6907196E-4, -1.36633682, 1.79227257, 1.00000823, -8.15352483E-4, -8.94709447E-5, -7.64434342E-4, -0.965952456, 0.258749306, -2.97397026E-4, -0.258751333, -0.965944529))
- N2T = parts(m, "N2T", Vector3.new(1.20000005, 1.20000005, 0.200000003), "Smoky grey", Enum.Material.SmoothPlastic, 0, 0)
- N2TWeld = welds(N2T, "N2TWeld", Head, N2T, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.42640686E-4, -1.32083321, 0.466089249, 0.999999642, -8.35441286E-4, -9.05738998E-5, -5.26776887E-4, -0.707188785, 0.707024634, -6.54730306E-4, -0.707024276, -0.707189023))
- N2T = parts(m, "N2T", Vector3.new(1.20000005, 0.800000072, 0.200000003), "Smoky grey", Enum.Material.SmoothPlastic, 0, 0)
- N2TWeld = welds(N2T, "N2TWeld", Head, N2T, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.72068787E-4, -0.500007629, -0.200611115, 0.999999642, -8.25215713E-4, -5.56122395E-5, 5.55146726E-5, -1.18256903E-4, 1, -8.25222291E-4, -0.999999642, -1.18211057E-4))
- N2 = parts(m, "N2", Vector3.new(0.199999928, 0.399999738, 1.60000014), "Really black", Enum.Material.SmoothPlastic, 0, 0)
- N2Weld = welds(N2, "N2Weld", LArm, N2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.27928162E-4, 1.00000691, -0.100688934, -1.00000858, 1.8356173E-4, -5.89061528E-7, 1.83562224E-4, 1.00000811, -0.0010377958, 3.98042175E-7, -0.0010377958, -0.999999464))
- N2 = parts(m, "N2", Vector3.new(0.199999928, 0.19999975, 0.399999917), "Really black", Enum.Material.SmoothPlastic, 0, 0)
- N2Weld = welds(N2, "N2Weld", LArm, N2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.19345093E-4, 0.700006247, -0.700645447, -1.00000858, 1.82562231E-4, 4.11459041E-7, 1.82561678E-4, 1.00000811, -0.00103679579, -6.01263309E-7, -0.00103679567, -0.999999523))
- meshs(N2, "Mesh", Vector3.new(1, 1, 1), Enum.MeshType.Wedge, "")
- N2 = parts(m, "N2", Vector3.new(0.199999928, 0.19999975, 0.399999917), "Really black", Enum.Material.SmoothPlastic, 0, 0)
- N2Weld = welds(N2, "N2Weld", LArm, N2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.14576721E-4, -1.29994774, -0.700683594, 1.00000858, -1.82559641E-4, 4.58854083E-6, -1.82564603E-4, -1.00000799, 0.00110879575, 4.38563438E-6, -0.00110879727, -0.999999464))
- meshs(N2, "Mesh", Vector3.new(1, 1, 1), Enum.MeshType.Wedge, "")
- N2 = parts(m, "N2", Vector3.new(0.199999928, 0.399999738, 1.4000001), "Really black", Enum.Material.SmoothPlastic, 0, 0)
- N2Weld = welds(N2, "N2Weld", LArm, N2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.9100647E-5, 0.800937653, 1.59953308, 1.00000858, -5.6068086E-7, -5.05879143E-7, 5.60671197E-7, 1.00000858, -8.01577698E-7, 5.0640665E-7, 7.92671926E-7, 1))
- meshs(N2, "Mesh", Vector3.new(1, 1, 1), Enum.MeshType.Wedge, "")
- N2 = parts(m, "N2", Vector3.new(0.199999928, 0.399999738, 1.4000001), "Really black", Enum.Material.SmoothPlastic, 0, 0)
- N2Weld = welds(N2, "N2Weld", LArm, N2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.29153442E-5, -1.20100975, 1.59948349, -1.00000858, 5.57568058E-7, -5.49412107E-6, -5.57165947E-7, -1.0000087, -7.11984467E-5, -5.49368451E-6, -7.12079345E-5, 1.00000012))
- meshs(N2, "Mesh", Vector3.new(1, 1, 1), Enum.MeshType.Wedge, "")
- N21 = parts(m, "N21", Vector3.new(0.200000003, 0.200000003, 0.200000003), "Really black", Enum.Material.SmoothPlastic, 0, 1)
- N21Weld = welds(N21, "N21Weld", LArm, N21, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.38690186E-5, -1.00100994, 1.39948654, -1.00000858, 5.57568058E-7, -5.49412107E-6, -5.57165947E-7, -1.0000087, -7.11984467E-5, -5.49368451E-6, -7.12079345E-5, 1.00000012))
- for _, v in pairs(m:children()) do
- if v:IsA("Part") and v.Name == "N2T" then
- v.BrickColor = Torso.BrickColor
- end
- end
- aaa = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.2),
- NumberSequenceKeypoint.new(1, 0)
- })
- bbb = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0),
- NumberSequenceKeypoint.new(1, 0)
- })
- local Efect = create("ParticleEmitter")({
- Color = ColorSequence.new(Color3.new(0, 0, 0)),
- LightEmission = 0.45,
- Texture = "rbxassetid://50657528",
- Transparency = bbb,
- Size = aaa,
- ZOffset = 0,
- Acceleration = Vector3.new(0, 0, 0),
- LockedToPart = false,
- EmissionDirection = "Top",
- Lifetime = NumberRange.new(0.2, 0.6),
- Rate = 800,
- Rotation = NumberRange.new(-100, 100),
- RotSpeed = NumberRange.new(-50, 50),
- Speed = NumberRange.new(0),
- VelocitySpread = 1000,
- Enabled = false,
- Parent = Root
- })
- local Buff = create("BillboardGui")({
- Size = UDim2.new(5, 0, 15, 0),
- Adornee = Root,
- Parent = Root,
- ExtentsOffset = Vector3.new(0, 3, 0),
- AlwaysOnTop = true
- })
- local BuffLabel = create("TextLabel")({
- AnchorPoint = Vector2.new(0.5, 0.5),
- BackgroundTransparency = 1,
- TextStrokeTransparency = 1,
- TextTransparency = 1,
- TextColor3 = Color3.new(1, 0, 0),
- Position = UDim2.new(0.5, 0, 0.5, 0),
- Size = UDim2.new(1.5, 0, 0.2, 0),
- Text = "gg",
- Font = "SourceSansBold",
- TextScaled = true,
- Parent = Buff
- })
- function Damage(Type, Part, hit, dmg, delet)
- if hit.Parent == nil then
- return
- end
- local h = hit.Parent:FindFirstChildOfClass("Humanoid")
- for _, v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h = v
- end
- end
- if h ~= nil and hit.Parent.Name ~= chr.Name then
- if hit.Parent:findFirstChild("AHit") == nil then
- h.Health = h.Health - dmg
- if h.Health == math.huge then
- hit.Parent:BreakJoints()
- end
- end
- if Type == "Disappear" then
- Part.Parent = nil
- if hit.Parent:findFirstChild("AHit") == nil then
- local c = create("BoolValue")({
- Name = "AHit",
- Value = true,
- Parent = hit.Parent
- })
- game:GetService("Debris"):AddItem(c, 0)
- end
- elseif Type == "None" then
- if hit.Parent:findFirstChild("AHit") == nil then
- local c = create("BoolValue")({
- Name = "AHit",
- Value = true,
- Parent = hit.Parent
- })
- game:GetService("Debris"):AddItem(c, 0.25)
- end
- elseif Type == "None2" then
- end
- end
- end
- function Mdamage(Type, Part, Magn, Dmg)
- for _, c in pairs(workspace:children()) do
- local hum = c:findFirstChildOfClass("Humanoid")
- if hum ~= nil then
- local ddee = c:findFirstChild("Torso")
- if ddee ~= nil then
- local targ = ddee.Position - Part.Position
- local mag = targ.magnitude
- if Magn >= mag and c.Name ~= plr.Name then
- Damage(Type, Part, ddee, Dmg)
- if hum.Health == math.huge then
- ddee:BreakJoints()
- end
- end
- end
- end
- end
- end
- function effect(par, color, CF, x, y, z, x1, y1, z1, de, mtyp, typ)
- local ex = create("Part")({
- Size = Vector3.new(0.2, 0.2, 0.2),
- BrickColor = color,
- CanCollide = false,
- Material = "Neon",
- Anchored = true,
- CFrame = CF,
- Parent = par
- })
- NoOutline(ex)
- local exe = create("SpecialMesh")({
- Scale = Vector3.new(x, y, z),
- MeshType = mtyp,
- Parent = ex
- })
- game:GetService("Debris"):AddItem(ex, 10)
- coroutine.resume(coroutine.create(function()
- for i = 0, 1.1, de do
- swait()
- ex.Transparency = i
- exe.Scale = exe.Scale + Vector3.new(x1, y1, z1)
- if typ == 1 then
- ex.CFrame = ex.CFrame * CFrame.Angles(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360))
- end
- end
- ex:Remove()
- end))
- end
- function Shuriken()
- attack = true
- if cc == 1 then
- for i = 1, 3 do
- for i = 0, 1, 0.4 do
- swait()
- RJ.C0 = clerp(RJ.C0, CFrame.new(5.39479697E-6, 0, -5.39479697E-6, 0.707106829, 0, 0.707106829, 0, 1, 0, -0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- Neck.C0 = clerp(Neck.C0, CFrame.new(-8.72439887E-6, 1.50000358, -6.32202955E-7, 0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- RS.C0 = clerp(RS.C0, CFrame.new(1.60169411, 0.263376445, -1.02972603, 0.612372458, -0.707106829, -0.353553593, -0.500000238, 0, -0.866025388, 0.612372458, 0.707106829, -0.353553593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- LS.C0 = clerp(LS.C0, CFrame.new(-1.6232332, 0.186604798, -3.19772289E-6, 0.866025507, 0.5, 2.68220901E-7, -0.5, 0.866025448, -9.89961904E-7, -7.15255737E-7, 7.00354576E-7, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- if skilldoing == true or skilldoing2 == true then
- break
- end
- end
- sounds(Root, "rbxassetid://173979241", 1.2, 1)
- do
- local efec = parts(e, "hit", Vector3.new(1.4, 0.2, 1.4), "Really black", Enum.Material.Neon, 0, 0)
- efec.CFrame = Root.CFrame * CFrame.new(1.2, 0.8, -2)
- meshs(efec, "Mesh", Vector3.new(3.2, 3.2, 3.2), Enum.MeshType.FileMesh, "11376946")
- local fire = Efect:Clone()
- fire.Parent = efec
- fire.Color = ColorSequence.new(BrickColor.new("Really black").Color)
- fire.Enabled = true
- local aa = create("BodyVelocity")({
- Parent = efec,
- MaxForce = Vector3.new(math.huge, math.huge, math.huge),
- Velocity = efec.CFrame.lookVector * 80
- })
- local aaa = create("BodyAngularVelocity")({
- Parent = efec,
- MaxTorque = Vector3.new(math.huge, math.huge, math.huge),
- AngularVelocity = Vector3.new(0, 7, 0)
- })
- game:GetService("Debris"):AddItem(efec, 5)
- local hon = efec.Touched:connect(function(hitt)
- if hitt.Parent.Name ~= chr.Name then
- Damage("Disappear", efec, hitt, 15)
- end
- end)
- for i = 0, 1, 0.4 do
- swait()
- RJ.C0 = clerp(RJ.C0, CFrame.new(5.39422035E-6, 0, 0.599998474, 0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- Neck.C0 = clerp(Neck.C0, CFrame.new(-6.32202955E-7, 1.50000358, 8.72439887E-6, 0.707106829, 0, 0.707106829, 0, 1, 0, -0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- RS.C0 = clerp(RS.C0, CFrame.new(0.311239719, 0.323183596, -0.962758541, 0.612372458, 0.707106829, -0.353553593, -0.500000238, 0, -0.866025388, -0.612372458, 0.707106829, 0.353553593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- LS.C0 = clerp(LS.C0, CFrame.new(-1.68166852, 0.110567018, -0.255912811, 0.926776588, 0.308681726, -0.21401155, -0.369599998, 0.85098207, -0.373129249, 0.0669417977, 0.424906135, 0.902758956) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- if skilldoing == true or skilldoing2 == true then
- break
- end
- end
- end
- end
- for i = 0, 1, 0.15 do
- swait()
- RJ.C0 = clerp(RJ.C0, CFrame.new(5.39422035E-6, 0, 0.599998474, 0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- Neck.C0 = clerp(Neck.C0, CFrame.new(-6.32202955E-7, 1.50000358, 8.72439887E-6, 0.707106829, 0, 0.707106829, 0, 1, 0, -0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- RS.C0 = clerp(RS.C0, CFrame.new(0.311239719, 0.323183596, -0.962758541, 0.612372458, 0.707106829, -0.353553593, -0.500000238, 0, -0.866025388, -0.612372458, 0.707106829, 0.353553593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- LS.C0 = clerp(LS.C0, CFrame.new(-1.68166852, 0.110567018, -0.255912811, 0.926776588, 0.308681726, -0.21401155, -0.369599998, 0.85098207, -0.373129249, 0.0669417977, 0.424906135, 0.902758956) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- if skilldoing == true or skilldoing2 == true then
- break
- end
- end
- else
- for i = 0, 1, 0.3 do
- swait()
- RJ.C0 = clerp(RJ.C0, CFrame.new(5.39479697E-6, 0, -5.39479697E-6, 0.707106829, 0, 0.707106829, 0, 1, 0, -0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- Neck.C0 = clerp(Neck.C0, CFrame.new(-8.72439887E-6, 1.50000358, -6.32202955E-7, 0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- RS.C0 = clerp(RS.C0, CFrame.new(1.60169411, 0.263376445, -1.02972603, 0.612372458, -0.707106829, -0.353553593, -0.500000238, 0, -0.866025388, 0.612372458, 0.707106829, -0.353553593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- LS.C0 = clerp(LS.C0, CFrame.new(-1.6232332, 0.186604798, -3.19772289E-6, 0.866025507, 0.5, 2.68220901E-7, -0.5, 0.866025448, -9.89961904E-7, -7.15255737E-7, 7.00354576E-7, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- if skilldoing == true or skilldoing2 == true then
- break
- end
- end
- sounds(Root, "rbxassetid://173979241", 1.2, 1)
- for i = -15, 15, 15 do
- do
- local efec = parts(e, "hit", Vector3.new(1.4, 0.2, 1.4), "Really black", Enum.Material.Neon, 0, 0)
- efec.CFrame = Root.CFrame * CFrame.new(1.2, 0.8, -2) * CFrame.Angles(0, math.rad(i), 0)
- meshs(efec, "Mesh", Vector3.new(3.2, 3.2, 3.2), Enum.MeshType.FileMesh, "11376946")
- local fire = Efect:Clone()
- fire.Parent = efec
- fire.Color = ColorSequence.new(BrickColor.new("Really black").Color)
- fire.Enabled = true
- local aa = create("BodyVelocity")({
- Parent = efec,
- MaxForce = Vector3.new(math.huge, math.huge, math.huge),
- Velocity = efec.CFrame.lookVector * 80
- })
- local aaa = create("BodyAngularVelocity")({
- Parent = efec,
- MaxTorque = Vector3.new(math.huge, math.huge, math.huge),
- AngularVelocity = Vector3.new(0, 7, 0)
- })
- game:GetService("Debris"):AddItem(efec, 5)
- local hon = efec.Touched:connect(function(hitt)
- if hitt.Parent.Name ~= chr.Name then
- Damage("Disappear", efec, hitt, 15)
- end
- end)
- end
- end
- for i = 0, 1, 0.15 do
- swait()
- RJ.C0 = clerp(RJ.C0, CFrame.new(5.39422035E-6, 0, 0.599998474, 0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- Neck.C0 = clerp(Neck.C0, CFrame.new(-6.32202955E-7, 1.50000358, 8.72439887E-6, 0.707106829, 0, 0.707106829, 0, 1, 0, -0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- RS.C0 = clerp(RS.C0, CFrame.new(0.311239719, 0.323183596, -0.962758541, 0.612372458, 0.707106829, -0.353553593, -0.500000238, 0, -0.866025388, -0.612372458, 0.707106829, 0.353553593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- LS.C0 = clerp(LS.C0, CFrame.new(-1.68166852, 0.110567018, -0.255912811, 0.926776588, 0.308681726, -0.21401155, -0.369599998, 0.85098207, -0.373129249, 0.0669417977, 0.424906135, 0.902758956) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- if skilldoing == true or skilldoing2 == true then
- break
- end
- end
- end
- attack = false
- end
- function Kunai()
- if skilldoing == true then
- return
- end
- skilldoing = true
- sounds(Root, "rbxasset://sounds/swordslash.wav", 1.2, 1)
- for i = 0, 1, 0.25 do
- swait()
- Torso.Velocity = Root.CFrame.lookVector * 140
- RJ.C0 = clerp(RJ.C0, CFrame.new(0, 0, 0, 0.866025388, 0, 0.500000238, 2.13162821E-14, 1.00000286, 1.19782726E-8, -0.500001669, 0, 0.866028011) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- Neck.C0 = clerp(Neck.C0, CFrame.new(-5.96048153E-8, 1.49998045, 1.21205701E-7, 0.866025388, 2.13162821E-14, -0.500001669, 0, 1.00000286, 0, 0.500000238, 1.19782726E-8, 0.866028011) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- RS.C0 = clerp(RS.C0, CFrame.new(1.60606456, 0.0366053469, -0.131955534, 0.482963264, -0.83651793, 0.25881651, 0.866028428, 0.500000834, -8.67884296E-7, -0.129408836, 0.224144787, 0.965928316) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- LS.C0 = clerp(LS.C0, CFrame.new(-1.71560395, 0.0669845939, -0.161288857, 0.258820772, 0.836516619, 0.482963234, -3.04645908E-9, 0.50000155, -0.866028011, -0.965928495, 0.224143565, 0.129409388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- if attack == true or skilldoing2 == true then
- break
- end
- end
- for i = 0, 1, 0.07 do
- swait()
- Mdamage("None", N21, 4, 55)
- RJ.C0 = clerp(RJ.C0, CFrame.new(-0.0203323364, -0.0963098034, -1.39782917, 0.500000119, -1.34110465E-7, -0.866025388, 0.22414431, 0.965927184, 0.129409656, 0.836517394, -0.258819491, 0.482963771) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- Neck.C0 = clerp(Neck.C0, CFrame.new(-0.00815251563, 1.49997628, -0.0281848833, 0.500000119, 4.91738319E-7, 0.866025388, -1.34110465E-7, 1.00000012, -4.76837158E-7, -0.866025388, 1.11758709E-7, 0.500000238) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- RS.C0 = clerp(RS.C0, CFrame.new(1.93907893, 0.436611146, -0.555155039, 2.68220901E-7, -0.866025746, 0.499999553, 1, 2.23517418E-7, -1.1920929E-7, -1.49011612E-8, 0.499999613, 0.866025746) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- LS.C0 = clerp(LS.C0, CFrame.new(-1.12217736, 0.466988266, -0.830502391, 1.96695328E-6, -0.258817494, 0.96592623, 1, -4.54485416E-7, -2.16066837E-6, 9.68575478E-7, 0.965926409, 0.258817494) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- if attack == true or skilldoing2 == true then
- break
- end
- end
- skilldoing = false
- end
- function Lightning_Shuriken()
- if skilldoing2 == true then
- return
- end
- skilldoing2 = true
- local ref = parts(m, "ref", Vector3.new(5, 0.200000003, 5), "Toothpaste", Enum.Material.Plastic, 0, 0)
- local refWeld = welds(ref, "refWeld", RArm, ref, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.48865318, 0.0169677734, 2.57646179, -5.13309264E-4, -0.706745803, 0.707473516, 1.00000846, -6.78976241E-4, 4.72805768E-5, 4.46942693E-4, 0.707479417, 0.706740022))
- meshs(ref, "Mesh", Vector3.new(12, 3, 12), Enum.MeshType.FileMesh, "11376946")
- for i = 0, 1, 0.034 do
- swait()
- RJ.C0 = clerp(RJ.C0, CFrame.new(6.64666277E-6, 0, -1.00668276E-5, 0.258818984, 0, 0.965925872, 0, 1, 0, -0.965925872, 0, 0.258818984) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- Neck.C0 = clerp(Neck.C0, CFrame.new(-1.0692761E-5, 1.5000031, -3.05878189E-6, 0.258818984, 0, -0.965925872, 0, 1, 0, 0.965925872, 0, 0.258818984) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- RS.C0 = clerp(RS.C0, CFrame.new(0.656109691, 0.499978065, -1.00995207, 0, 0.707107008, 0.707106769, 1, 0, 0, 0, 0.707106769, -0.707107008) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- LS.C0 = clerp(LS.C0, CFrame.new(-1.57073712, 0.122477025, 7.45061016E-6, 0.965925932, 0.258818954, -1.49011612E-7, -0.258818954, 0.965925813, -6.80347227E-7, -1.49011612E-8, 7.00354576E-7, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- if attack == true or skilldoing == true then
- break
- end
- end
- for i = 0, 1, 0.4 do
- swait()
- RJ.C0 = clerp(RJ.C0, CFrame.new(0.0368113965, 0, -1.1551051572, 0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- Neck.C0 = clerp(Neck.C0, CFrame.new(-0.0649897754, 1.5000031, -0.0129353739, 0.707106829, 0, 0.707106829, 0, 1, 0, -0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- RS.C0 = clerp(RS.C0, CFrame.new(1.89369929, 0.499978065, -0.535830021, 0, -0.866024494, 0.500001788, 1, 0, 0, 0, 0.500001788, 0.866024494) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- LS.C0 = clerp(LS.C0, CFrame.new(-1.61982954, 0.0547468066, -0.438916326, 0.965925813, 0.250000268, -0.0669871271, -0.25000006, 0.834233463, -0.491482019, -0.0669877529, 0.49148193, 0.86830771) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- if attack == true or skilldoing == true then
- break
- end
- end
- sounds(Root, "rbxassetid://173979241", 1.2, 1)
- refWeld:Remove()
- ref.CFrame = Root.CFrame * CFrame.new(0, 0.8, -2)
- local fire = Efect:Clone()
- fire.Parent = ref
- fire.Color = ColorSequence.new(BrickColor.new("Toothpaste").Color)
- fire.Enabled = true
- local aa = create("BodyVelocity")({
- Parent = ref,
- MaxForce = Vector3.new(math.huge, math.huge, math.huge),
- Velocity = ref.CFrame.lookVector * 65
- })
- local aaa = create("BodyAngularVelocity")({
- Parent = ref,
- MaxTorque = Vector3.new(math.huge, math.huge, math.huge),
- AngularVelocity = Vector3.new(0, -12, 0)
- })
- game:GetService("Debris"):AddItem(ref, 5)
- local hon = ref.Touched:connect(function(hitt)
- if hitt.Parent.Name ~= chr.Name then
- Damage("None2", ref, hitt, 10)
- end
- end)
- for i = 0, 1, 0.08 do
- swait()
- RJ.C0 = clerp(RJ.C0, CFrame.new(0.0368113965, 0, -1.1551051572, 0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- Neck.C0 = clerp(Neck.C0, CFrame.new(-0.0649897754, 1.5000031, -0.0129353739, 0.707106829, 0, 0.707106829, 0, 1, 0, -0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- RS.C0 = clerp(RS.C0, CFrame.new(1.89369929, 0.499978065, -0.535830021, 0, -0.866024494, 0.500001788, 1, 0, 0, 0, 0.500001788, 0.866024494) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- LS.C0 = clerp(LS.C0, CFrame.new(-1.61982954, 0.0547468066, -0.438916326, 0.965925813, 0.250000268, -0.0669871271, -0.25000006, 0.834233463, -0.491482019, -0.0669877529, 0.49148193, 0.86830771) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- if attack == true or skilldoing == true then
- break
- end
- end
- skilldoing2 = false
- end
- function ShurikenC()
- if attack2 == true then
- return
- end
- attack2 = true
- if cc == 1 then
- for i = 1, 3 do
- for i = 0, 1, 0.4 do
- swait()
- RJ2.C0 = clerp(RJ2.C0, CFrame.new(5.39479697E-6, 0, -5.39479697E-6, 0.707106829, 0, 0.707106829, 0, 1, 0, -0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- Neck2.C0 = clerp(Neck2.C0, CFrame.new(-8.72439887E-6, 1.50000358, -6.32202955E-7, 0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- RS2.C0 = clerp(RS2.C0, CFrame.new(1.60169411, 0.263376445, -1.02972603, 0.612372458, -0.707106829, -0.353553593, -0.500000238, 0, -0.866025388, 0.612372458, 0.707106829, -0.353553593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- LS2.C0 = clerp(LS2.C0, CFrame.new(-1.6232332, 0.186604798, -3.19772289E-6, 0.866025507, 0.5, 2.68220901E-7, -0.5, 0.866025448, -9.89961904E-7, -7.15255737E-7, 7.00354576E-7, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- if skilldoing4 == true or skilldoing5 == true or 1 > hum2.Health then
- break
- end
- end
- sounds(Root2, "rbxassetid://173979241", 1.2, 1)
- do
- local efec = parts(e, "hit", Vector3.new(1.4, 0.2, 1.4), "Really black", Enum.Material.Neon, 0, 0)
- efec.CFrame = Root2.CFrame * CFrame.new(1.2, 0.8, -2)
- meshs(efec, "Mesh", Vector3.new(3.2, 3.2, 3.2), Enum.MeshType.FileMesh, "11376946")
- local fire = Efect:Clone()
- fire.Parent = efec
- fire.Color = ColorSequence.new(BrickColor.new("Really black").Color)
- fire.Enabled = true
- local aa = create("BodyVelocity")({
- Parent = efec,
- MaxForce = Vector3.new(math.huge, math.huge, math.huge),
- Velocity = efec.CFrame.lookVector * 80
- })
- local aaa = create("BodyAngularVelocity")({
- Parent = efec,
- MaxTorque = Vector3.new(math.huge, math.huge, math.huge),
- AngularVelocity = Vector3.new(0, 7, 0)
- })
- game:GetService("Debris"):AddItem(efec, 5)
- local hon = efec.Touched:connect(function(hitt)
- if hitt.Parent.Name ~= chr.Name then
- Damage("Disappear", efec, hitt, 15)
- end
- end)
- for i = 0, 1, 0.4 do
- swait()
- RJ2.C0 = clerp(RJ2.C0, CFrame.new(5.39422035E-6, 0, 0.599998474, 0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- Neck2.C0 = clerp(Neck2.C0, CFrame.new(-6.32202955E-7, 1.50000358, 8.72439887E-6, 0.707106829, 0, 0.707106829, 0, 1, 0, -0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- RS2.C0 = clerp(RS2.C0, CFrame.new(0.311239719, 0.323183596, -0.962758541, 0.612372458, 0.707106829, -0.353553593, -0.500000238, 0, -0.866025388, -0.612372458, 0.707106829, 0.353553593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- LS2.C0 = clerp(LS2.C0, CFrame.new(-1.68166852, 0.110567018, -0.255912811, 0.926776588, 0.308681726, -0.21401155, -0.369599998, 0.85098207, -0.373129249, 0.0669417977, 0.424906135, 0.902758956) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- if skilldoing5 == true or skilldoing4 == true or 1 > hum2.Health then
- break
- end
- end
- end
- end
- for i = 0, 1, 0.15 do
- swait()
- RJ2.C0 = clerp(RJ2.C0, CFrame.new(5.39422035E-6, 0, 0.599998474, 0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- Neck2.C0 = clerp(Neck2.C0, CFrame.new(-6.32202955E-7, 1.50000358, 8.72439887E-6, 0.707106829, 0, 0.707106829, 0, 1, 0, -0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- RS2.C0 = clerp(RS2.C0, CFrame.new(0.311239719, 0.323183596, -0.962758541, 0.612372458, 0.707106829, -0.353553593, -0.500000238, 0, -0.866025388, -0.612372458, 0.707106829, 0.353553593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- LS2.C0 = clerp(LS2.C0, CFrame.new(-1.68166852, 0.110567018, -0.255912811, 0.926776588, 0.308681726, -0.21401155, -0.369599998, 0.85098207, -0.373129249, 0.0669417977, 0.424906135, 0.902758956) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- if skilldoing5 == true or skilldoing4 == true or 1 > hum2.Health then
- break
- end
- end
- else
- for i = 0, 1, 0.3 do
- swait()
- RJ2.C0 = clerp(RJ2.C0, CFrame.new(5.39479697E-6, 0, -5.39479697E-6, 0.707106829, 0, 0.707106829, 0, 1, 0, -0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- Neck2.C0 = clerp(Neck2.C0, CFrame.new(-8.72439887E-6, 1.50000358, -6.32202955E-7, 0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- RS2.C0 = clerp(RS2.C0, CFrame.new(1.60169411, 0.263376445, -1.02972603, 0.612372458, -0.707106829, -0.353553593, -0.500000238, 0, -0.866025388, 0.612372458, 0.707106829, -0.353553593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- LS2.C0 = clerp(LS2.C0, CFrame.new(-1.6232332, 0.186604798, -3.19772289E-6, 0.866025507, 0.5, 2.68220901E-7, -0.5, 0.866025448, -9.89961904E-7, -7.15255737E-7, 7.00354576E-7, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- if skilldoing5 == true or skilldoing4 == true or 1 > hum2.Health then
- break
- end
- end
- sounds(Root2, "rbxassetid://173979241", 1.2, 1)
- for i = -15, 15, 15 do
- do
- local efec = parts(e, "hit", Vector3.new(1.4, 0.2, 1.4), "Really black", Enum.Material.Neon, 0, 0)
- efec.CFrame = Root2.CFrame * CFrame.new(1.2, 0.8, -2) * CFrame.Angles(0, math.rad(i), 0)
- meshs(efec, "Mesh", Vector3.new(3.2, 3.2, 3.2), Enum.MeshType.FileMesh, "11376946")
- local fire = Efect:Clone()
- fire.Parent = efec
- fire.Color = ColorSequence.new(BrickColor.new("Really black").Color)
- fire.Enabled = true
- local aa = create("BodyVelocity")({
- Parent = efec,
- MaxForce = Vector3.new(math.huge, math.huge, math.huge),
- Velocity = efec.CFrame.lookVector * 80
- })
- local aaa = create("BodyAngularVelocity")({
- Parent = efec,
- MaxTorque = Vector3.new(math.huge, math.huge, math.huge),
- AngularVelocity = Vector3.new(0, 7, 0)
- })
- game:GetService("Debris"):AddItem(efec, 5)
- local hon = efec.Touched:connect(function(hitt)
- if hitt.Parent.Name ~= chr.Name then
- Damage("Disappear", efec, hitt, 15)
- end
- end)
- end
- end
- for i = 0, 1, 0.15 do
- swait()
- RJ2.C0 = clerp(RJ2.C0, CFrame.new(5.39422035E-6, 0, 0.599998474, 0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- Neck2.C0 = clerp(Neck2.C0, CFrame.new(-6.32202955E-7, 1.50000358, 8.72439887E-6, 0.707106829, 0, 0.707106829, 0, 1, 0, -0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- RS2.C0 = clerp(RS2.C0, CFrame.new(0.311239719, 0.323183596, -0.962758541, 0.612372458, 0.707106829, -0.353553593, -0.500000238, 0, -0.866025388, -0.612372458, 0.707106829, 0.353553593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- LS2.C0 = clerp(LS2.C0, CFrame.new(-1.68166852, 0.110567018, -0.255912811, 0.926776588, 0.308681726, -0.21401155, -0.369599998, 0.85098207, -0.373129249, 0.0669417977, 0.424906135, 0.902758956) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- if skilldoing5 == true or skilldoing4 == true or 1 > hum2.Health then
- break
- end
- end
- end
- attack2 = false
- end
- function KunaiC()
- if skilldoing5 == true then
- return
- end
- skilldoing5 = true
- sounds(Root2, "rbxasset://sounds/swordslash.wav", 1.2, 1)
- for i = 0, 1, 0.25 do
- swait()
- Torso2.Velocity = Root2.CFrame.lookVector * 140
- RJ2.C0 = clerp(RJ2.C0, CFrame.new(0, 0, 0, 0.866025388, 0, 0.500000238, 2.13162821E-14, 1.00000286, 1.19782726E-8, -0.500001669, 0, 0.866028011) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- Neck2.C0 = clerp(Neck2.C0, CFrame.new(-5.96048153E-8, 1.49998045, 1.21205701E-7, 0.866025388, 2.13162821E-14, -0.500001669, 0, 1.00000286, 0, 0.500000238, 1.19782726E-8, 0.866028011) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- RS2.C0 = clerp(RS2.C0, CFrame.new(1.60606456, 0.0366053469, -0.131955534, 0.482963264, -0.83651793, 0.25881651, 0.866028428, 0.500000834, -8.67884296E-7, -0.129408836, 0.224144787, 0.965928316) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- LS2.C0 = clerp(LS2.C0, CFrame.new(-1.71560395, 0.0669845939, -0.161288857, 0.258820772, 0.836516619, 0.482963234, -3.04645908E-9, 0.50000155, -0.866028011, -0.965928495, 0.224143565, 0.129409388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.45)
- if attack2 == true or skilldoing4 == true or 1 > hum2.Health then
- break
- end
- end
- for i = 0, 1, 0.07 do
- swait()
- Mdamage("None", N22, 4, 55)
- RJ2.C0 = clerp(RJ2.C0, CFrame.new(-0.0203323364, -0.0963098034, -1.39782917, 0.500000119, -1.34110465E-7, -0.866025388, 0.22414431, 0.965927184, 0.129409656, 0.836517394, -0.258819491, 0.482963771) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- Neck2.C0 = clerp(Neck2.C0, CFrame.new(-0.00815251563, 1.49997628, -0.0281848833, 0.500000119, 4.91738319E-7, 0.866025388, -1.34110465E-7, 1.00000012, -4.76837158E-7, -0.866025388, 1.11758709E-7, 0.500000238) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- RS2.C0 = clerp(RS2.C0, CFrame.new(1.93907893, 0.436611146, -0.555155039, 2.68220901E-7, -0.866025746, 0.499999553, 1, 2.23517418E-7, -1.1920929E-7, -1.49011612E-8, 0.499999613, 0.866025746) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- LS2.C0 = clerp(LS2.C0, CFrame.new(-1.12217736, 0.466988266, -0.830502391, 1.96695328E-6, -0.258817494, 0.96592623, 1, -4.54485416E-7, -2.16066837E-6, 9.68575478E-7, 0.965926409, 0.258817494) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- if attack2 == true or skilldoing4 == true or 1 > hum2.Health then
- break
- end
- end
- skilldoing5 = false
- end
- function Lightning_ShurikenC()
- if skilldoing4 == true then
- return
- end
- skilldoing4 = true
- local ref = parts(m, "ref", Vector3.new(5, 0.200000003, 5), "Toothpaste", Enum.Material.Plastic, 0, 0)
- local refWeld = welds(ref, "refWeld", RArm2, ref, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.48865318, 0.0169677734, 2.57646179, -5.13309264E-4, -0.706745803, 0.707473516, 1.00000846, -6.78976241E-4, 4.72805768E-5, 4.46942693E-4, 0.707479417, 0.706740022))
- meshs(ref, "Mesh", Vector3.new(12, 3, 12), Enum.MeshType.FileMesh, "11376946")
- for i = 0, 1, 0.034 do
- swait()
- RJ2.C0 = clerp(RJ2.C0, CFrame.new(6.64666277E-6, 0, -1.00668276E-5, 0.258818984, 0, 0.965925872, 0, 1, 0, -0.965925872, 0, 0.258818984) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- Neck2.C0 = clerp(Neck2.C0, CFrame.new(-1.0692761E-5, 1.5000031, -3.05878189E-6, 0.258818984, 0, -0.965925872, 0, 1, 0, 0.965925872, 0, 0.258818984) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- RS2.C0 = clerp(RS2.C0, CFrame.new(0.656109691, 0.499978065, -1.00995207, 0, 0.707107008, 0.707106769, 1, 0, 0, 0, 0.707106769, -0.707107008) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- LS2.C0 = clerp(LS2.C0, CFrame.new(-1.57073712, 0.122477025, 7.45061016E-6, 0.965925932, 0.258818954, -1.49011612E-7, -0.258818954, 0.965925813, -6.80347227E-7, -1.49011612E-8, 7.00354576E-7, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- if attack2 == true or skilldoing5 == true or 1 > hum2.Health then
- break
- end
- end
- for i = 0, 1, 0.4 do
- swait()
- RJ2.C0 = clerp(RJ2.C0, CFrame.new(0.0368113965, 0, -1.1551051572, 0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- Neck2.C0 = clerp(Neck2.C0, CFrame.new(-0.0649897754, 1.5000031, -0.0129353739, 0.707106829, 0, 0.707106829, 0, 1, 0, -0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- RS2.C0 = clerp(RS2.C0, CFrame.new(1.89369929, 0.499978065, -0.535830021, 0, -0.866024494, 0.500001788, 1, 0, 0, 0, 0.500001788, 0.866024494) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- LS2.C0 = clerp(LS2.C0, CFrame.new(-1.61982954, 0.0547468066, -0.438916326, 0.965925813, 0.250000268, -0.0669871271, -0.25000006, 0.834233463, -0.491482019, -0.0669877529, 0.49148193, 0.86830771) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- if attack2 == true or skilldoing5 == true or 1 > hum2.Health then
- break
- end
- end
- sounds(Root2, "rbxassetid://173979241", 1.2, 1)
- refWeld:Remove()
- ref.CFrame = Root2.CFrame * CFrame.new(0, 0.8, -2)
- local fire = Efect:Clone()
- fire.Parent = ref
- fire.Color = ColorSequence.new(BrickColor.new("Toothpaste").Color)
- fire.Enabled = true
- local aa = create("BodyVelocity")({
- Parent = ref,
- MaxForce = Vector3.new(math.huge, math.huge, math.huge),
- Velocity = ref.CFrame.lookVector * 65
- })
- local aaa = create("BodyAngularVelocity")({
- Parent = ref,
- MaxTorque = Vector3.new(math.huge, math.huge, math.huge),
- AngularVelocity = Vector3.new(0, -12, 0)
- })
- game:GetService("Debris"):AddItem(ref, 5)
- local hon = ref.Touched:connect(function(hitt)
- if hitt.Parent.Name ~= chr.Name then
- Damage("None2", ref, hitt, 10)
- end
- end)
- for i = 0, 1, 0.08 do
- swait()
- RJ2.C0 = clerp(RJ2.C0, CFrame.new(0.0368113965, 0, -1.1551051572, 0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- Neck2.C0 = clerp(Neck2.C0, CFrame.new(-0.0649897754, 1.5000031, -0.0129353739, 0.707106829, 0, 0.707106829, 0, 1, 0, -0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- RS2.C0 = clerp(RS2.C0, CFrame.new(1.89369929, 0.499978065, -0.535830021, 0, -0.866024494, 0.500001788, 1, 0, 0, 0, 0.500001788, 0.866024494) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- LS2.C0 = clerp(LS2.C0, CFrame.new(-1.61982954, 0.0547468066, -0.438916326, 0.965925813, 0.250000268, -0.0669871271, -0.25000006, 0.834233463, -0.491482019, -0.0669877529, 0.49148193, 0.86830771) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- if attack2 == true or skilldoing5 == true or 1 > hum2.Health then
- break
- end
- end
- skilldoing4 = false
- end
- aaaa = nil
- function weeb()
- skilldoing3 = true
- for i = 0, 1, 0.12 do
- swait()
- RJ.C0 = clerp(RJ.C0, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- Neck.C0 = clerp(Neck.C0, CFrame.new(0, 1.50000262, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- RS.C0 = clerp(RS.C0, CFrame.new(1.83661962, 0.499978065, -0.48303616, 0, -0.866025388, 0.500000238, 1, 0, 0, 0, 0.500000238, 0.866025388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- LS.C0 = clerp(LS.C0, CFrame.new(-1.83663654, 0.5, -0.483010679, 0, 0.866025388, -0.500000238, -1, 0, 0, 0, 0.500000238, 0.866025388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- end
- for i = 0, 1, 0.1 do
- swait()
- RJ.C0 = clerp(RJ.C0, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- Neck.C0 = clerp(Neck.C0, CFrame.new(0, 1.50000262, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- RS.C0 = clerp(RS.C0, CFrame.new(0.678798556, 0.317686826, -0.833746672, -0.183012947, 0.842752099, 0.506236255, 0.965925753, 0.250000358, -0.0669873282, -0.183012947, 0.476727068, -0.859789252) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- LS.C0 = clerp(LS.C0, CFrame.new(-0.574818015, 0.620926201, -0.745570123, 0.224143937, -0.678603172, -0.699469328, -0.965925753, -0.250000387, -0.0669870302, -0.129409969, 0.690650165, -0.71151638) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- end
- chr.Archivable = true
- clone = chr:Clone()
- clone.Parent = workspace
- swait()
- clone.Parent = chr
- Head2 = clone.Head
- Root2 = clone.HumanoidRootPart
- Torso2 = clone.Torso
- Root2.CFrame = Root.CFrame * CFrame.new(0, 0, -3)
- RArm2 = clone["Right Arm"]
- LArm2 = clone["Left Arm"]
- RLeg2 = clone["Right Leg"]
- LLeg2 = clone["Left Leg"]
- clone.Sound:Remove()
- for _, v in pairs(clone:children()) do
- if v:IsA("Part") and v.Name == "Torso" then
- for _, vs in pairs(v:children()) do
- if vs:IsA("Motor6D") or vs:IsA("Motor") then
- vs:Remove()
- end
- end
- else
- for _, vs in pairs(v:children()) do
- if vs:IsA("Sound") then
- vs:Remove()
- end
- end
- end
- end
- hum2 = clone:findFirstChildOfClass("Humanoid")
- N22 = clone.Suit.N21
- RJ2 = newMotor(Root2, Torso2, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
- Neck2 = newMotor(Torso2, Head2, CFrame.new(0, 1.5, 0), CFrame.new(0, 0, 0))
- RS2 = newMotor(Torso2, RArm2, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
- LS2 = newMotor(Torso2, LArm2, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
- RH2 = newMotor(Torso2, RLeg2, CFrame.new(0.5, -2, 0), CFrame.new(0, 0, 0))
- LH2 = newMotor(Torso2, LLeg2, CFrame.new(-0.5, -2, 0), CFrame.new(0, 0, 0))
- aaaa = clone
- swait()
- effect(e, Torso.BrickColor, Root2.CFrame, 40, 40, 40, 1.5, 1.5, 1.5, 0.06, "Sphere", 2)
- sounds(Root2, "rbxassetid://944087788", 1.2, 1)
- clonez = true
- skilldoing3 = false
- end
- mouse.Button1Down:connect(function()
- if attack == false then
- coroutine.resume(coroutine.create(function()
- Shuriken()
- end))
- if clonez == true then
- ShurikenC()
- end
- end
- end)
- mouse.KeyDown:connect(function(k)
- k = k:lower()
- if k == "z" and skilldoing == false then
- coroutine.resume(coroutine.create(function()
- Kunai()
- end))
- if clonez == true then
- KunaiC()
- end
- elseif k == "x" and skilldoing2 == false then
- coroutine.resume(coroutine.create(function()
- Lightning_Shuriken()
- end))
- if clonez == true then
- Lightning_ShurikenC()
- end
- elseif k == "c" and cc == 1 then
- cc = 2
- print("wide")
- elseif k == "c" and cc == 2 then
- cc = 1
- print("straight")
- elseif k == "n" and clonez == false then
- weeb()
- elseif k == " " and (Pose == "Jump" or Pose == "Fall") then
- sounds(Root, "rbxassetid://322364178", 0.7, 1)
- Torso.Velocity = Root.CFrame.lookVector * hum.WalkSpeed + Vector3.new(0, 1, 0) * 70
- if clonez == true then
- sounds(Root2, "rbxassetid://322364178", 0.7, 1)
- Torso2.Velocity = Root2.CFrame.lookVector * hum2.WalkSpeed + Vector3.new(0, 1, 0) * 70
- end
- end
- if k == " " and clonez == true then
- hum2.Jump = true
- end
- end)
- Pose2 = "Idle"
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if clonez == true and aaaa ~= nil and hum2.Health < 1 then
- game:GetService("Debris"):AddItem(clone, 5)
- swait(2)
- Head2, Root2, RArm2, LArm2, RLeg2, LLeg2 = nil, nil, nil, nil, nil, nil
- aaaa = nil
- clonez = false
- end
- if clonez == true and aaaa ~= nil then
- hum2.WalkSpeed = 35
- local torvel = (Root2.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velderp = Root2.Velocity.y
- hitfloor, posfloor = rayCast(Root2.Position, CFrame.new(Root2.Position, Root2.Position - Vector3.new(0, 1, 0)).lookVector, 4, chr)
- if 1 < Root2.Velocity.y and hitfloor == nil then
- Pose2 = "Jump"
- if attack2 == false and skilldoing5 == false and skilldoing4 == false then
- RJ2.C0 = clerp(RJ2.C0, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- Neck2.C0 = clerp(Neck2.C0, CFrame.new(0, 1.49998474, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- RS2.C0 = clerp(RS2.C0, CFrame.new(1.70980763, 0.236601114, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- LS2.C0 = clerp(LS2.C0, CFrame.new(-1.70980763, 0.236601114, 0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- end
- RH2.C0 = clerp(RH2.C0, CFrame.new(0.5, -1.99998808, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- LH2.C0 = clerp(LH2.C0, CFrame.new(-0.5, -1.99998808, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- elseif Root2.Velocity.y < -1 and hitfloor == nil then
- Pose2 = "Fall"
- if attack2 == false and skilldoing5 == false and skilldoing4 == false then
- RJ2.C0 = clerp(RJ2.C0, CFrame.new(-0.034501072, 0, -0.0986937582, 0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- Neck2.C0 = clerp(Neck2.C0, CFrame.new(0.0941823646, 1.49998474, 0.0453972146, 0.707106829, 0, 0.707106829, 0, 1, 0, -0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- RS2.C0 = clerp(RS2.C0, CFrame.new(1.63909817, 0.114127249, -2.24583914E-7, 0.965925992, -0.258818954, 1.78813934E-7, 0.258818924, 0.965925932, -6.76490401E-7, 0, 7.15255737E-7, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- LS2.C0 = clerp(LS2.C0, CFrame.new(-1.63910222, 0.114126861, 2.24584937E-7, 0.965925992, 0.258818954, 1.78813934E-7, -0.258818924, 0.965925932, 6.76490401E-7, 0, -7.15255737E-7, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- end
- RH2.C0 = clerp(RH2.C0, CFrame.new(0.499996245, -1.99998808, -7.62939544E-6, 1.00000012, 0, 0, 0, 1, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- LH2.C0 = clerp(LH2.C0, CFrame.new(-0.499994338, -1.19998801, -0.500003874, 1.00000012, 0, 0, 0, 1, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- elseif torvel < 1 and hitfloor ~= nil then
- Pose2 = "Idle"
- if attack2 == false and skilldoing5 == false and skilldoing4 == false then
- RJ2.C0 = clerp(RJ2.C0, CFrame.new(0, -0.1, 0, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388) * CFrame.new(0, 0 - 0.05 * math.cos(sin / 18), 0) * CFrame.Angles(0, 0, 0), 0.3)
- Neck2.C0 = clerp(Neck2.C0, CFrame.new(-9.53674771E-7, 1.49998951, -1.65181234E-6, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- RS2.C0 = clerp(RS2.C0, CFrame.new(1.67320299, 0.10000509, 3.71405895E-6, 0.866025567, -0.5, 8.94069672E-8, 0.49999994, 0.866025507, -2.49183756E-7, 5.96046448E-8, 2.5331974E-7, 1.00000012) * CFrame.new(0 - 0.05 * math.cos(sin / 18), 0, 0) * CFrame.Angles(0, 0, math.rad(0 - 8 * math.cos(sin / 18))), 0.3)
- LS2.C0 = clerp(LS2.C0, CFrame.new(-1.67320156, 0.0999999046, 1.0063988E-7, 0.866025567, 0.5, 8.94069672E-8, -0.49999994, 0.866025507, 2.50893436E-7, 5.96046448E-8, -2.5331974E-7, 1.00000012) * CFrame.new(0 + 0.05 * math.cos(sin / 18), 0, 0) * CFrame.Angles(0, 0, math.rad(0 + 8 * math.cos(sin / 18))), 0.3)
- end
- RH2.C0 = clerp(RH2.C0, CFrame.new(0.500003934, -1.89999309, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024) * CFrame.new(0, 0 + 0.05 * math.cos(sin / 18), 0) * CFrame.Angles(0, 0, 0), 0.3)
- LH2.C0 = clerp(LH2.C0, CFrame.new(-0.500000119, -1.89999309, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024) * CFrame.new(0, 0 + 0.05 * math.cos(sin / 18), 0) * CFrame.Angles(0, 0, 0), 0.3)
- elseif torvel > 2 and hitfloor ~= nil then
- Pose2 = "Walk"
- if attack2 == false and skilldoing5 == false and skilldoing4 == false then
- RJ2.C0 = clerp(RJ2.C0, CFrame.new(0, -0.0669884086 - 0.1 * math.cos(sin / 3), -0.249999404, 1, 0, 0, 0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0) + Root.RotVelocity.Y / 15, 0), 0.3)
- Neck2.C0 = clerp(Neck2.C0, CFrame.new(0, 1.47410548, 0.096591115, 1, 0, 0, 0, 0.965925872, -0.258819342, 0, 0.258819342, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0 + Head.RotVelocity.Y / 25, 0), 0.3)
- RS2.C0 = clerp(RS2.C0, CFrame.new(1.50000083, -1.7881257E-7, -7.55374003E-7, 0.866024852, -0.500000954, -3.31524848E-6, 0.500000954, 0.866024971, -2.38418579E-7, 2.98023224E-6, -1.4603138E-6, 1.00000012) * CFrame.new(0.2, 0.1, 0 + 0.8 * math.cos(sin / 6)) * CFrame.Angles(math.rad(0 - 70 * math.cos(sin / 6)), 0, 0), 0.3)
- LS2.C0 = clerp(LS2.C0, CFrame.new(-1.5, 7.74863224E-7, -2.42472197E-7, 0.86602515, 0.500000536, -1.43179045E-6, -0.500000536, 0.866025209, 1.49011612E-6, 1.98185444E-6, -5.66244125E-7, 1.00000012) * CFrame.new(-0.2, 0.1, 0 - 0.8 * math.cos(sin / 6)) * CFrame.Angles(math.rad(0 + 70 * math.cos(sin / 6)), 0, 0), 0.3)
- end
- RH2.C0 = clerp(RH2.C0, CFrame.new(0.5, -1.99998903, 0, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024) * CFrame.new(0, 0, 0 - 1 * math.cos(sin / 6)) * CFrame.Angles(math.rad(0 + 70 * math.cos(sin / 6)), 0, 0), 0.3)
- LH2.C0 = clerp(LH2.C0, CFrame.new(-0.5, -1.99998903, 0, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024) * CFrame.new(0, 0, 0 + 1 * math.cos(sin / 6)) * CFrame.Angles(math.rad(0 - 70 * math.cos(sin / 6)), 0, 0), 0.3)
- end
- end
- end
- end))
- while chr.Humanoid.Health >= 0 do
- swait()
- sin = sin + cha
- hum.WalkSpeed = 35
- local torvel = (Root.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velderp = Root.Velocity.y
- hitfloor, posfloor = rayCast(Root.Position, CFrame.new(Root.Position, Root.Position - Vector3.new(0, 1, 0)).lookVector, 4, chr)
- if Root.Velocity.y > 1 and hitfloor == nil then
- Pose = "Jump"
- if attack == false and skilldoing == false and skilldoing2 == false and skilldoing3 == false then
- RJ.C0 = clerp(RJ.C0, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- Neck.C0 = clerp(Neck.C0, CFrame.new(0, 1.49998474, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- RS.C0 = clerp(RS.C0, CFrame.new(1.70980763, 0.236601114, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- LS.C0 = clerp(LS.C0, CFrame.new(-1.70980763, 0.236601114, 0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- end
- RH.C0 = clerp(RH.C0, CFrame.new(0.5, -1.99998808, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -1.99998808, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- elseif Root.Velocity.y < -1 and hitfloor == nil then
- Pose = "Fall"
- if attack == false and skilldoing == false and skilldoing2 == false and skilldoing3 == false then
- RJ.C0 = clerp(RJ.C0, CFrame.new(-0.034501072, 0, -0.0986937582, 0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- Neck.C0 = clerp(Neck.C0, CFrame.new(0.0941823646, 1.49998474, 0.0453972146, 0.707106829, 0, 0.707106829, 0, 1, 0, -0.707106829, 0, 0.707106829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- RS.C0 = clerp(RS.C0, CFrame.new(1.63909817, 0.114127249, -2.24583914E-7, 0.965925992, -0.258818954, 1.78813934E-7, 0.258818924, 0.965925932, -6.76490401E-7, 0, 7.15255737E-7, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- LS.C0 = clerp(LS.C0, CFrame.new(-1.63910222, 0.114126861, 2.24584937E-7, 0.965925992, 0.258818954, 1.78813934E-7, -0.258818924, 0.965925932, 6.76490401E-7, 0, -7.15255737E-7, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- end
- RH.C0 = clerp(RH.C0, CFrame.new(0.499996245, -1.99998808, -7.62939544E-6, 1.00000012, 0, 0, 0, 1, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- LH.C0 = clerp(LH.C0, CFrame.new(-0.499994338, -1.19998801, -0.500003874, 1.00000012, 0, 0, 0, 1, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- elseif torvel < 1 and hitfloor ~= nil then
- Pose = "Idle"
- if attack == false and skilldoing == false and skilldoing2 == false and skilldoing3 == false then
- RJ.C0 = clerp(RJ.C0, CFrame.new(0, -0.1, 0, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388) * CFrame.new(0, 0 - 0.05 * math.cos(sin / 18), 0) * CFrame.Angles(0, 0, 0), 0.3)
- Neck.C0 = clerp(Neck.C0, CFrame.new(-9.53674771E-7, 1.49998951, -1.65181234E-6, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- RS.C0 = clerp(RS.C0, CFrame.new(1.67320299, 0.10000509, 3.71405895E-6, 0.866025567, -0.5, 8.94069672E-8, 0.49999994, 0.866025507, -2.49183756E-7, 5.96046448E-8, 2.5331974E-7, 1.00000012) * CFrame.new(0 - 0.05 * math.cos(sin / 18), 0, 0) * CFrame.Angles(0, 0, math.rad(0 - 8 * math.cos(sin / 18))), 0.3)
- LS.C0 = clerp(LS.C0, CFrame.new(-1.67320156, 0.0999999046, 1.0063988E-7, 0.866025567, 0.5, 8.94069672E-8, -0.49999994, 0.866025507, 2.50893436E-7, 5.96046448E-8, -2.5331974E-7, 1.00000012) * CFrame.new(0 + 0.05 * math.cos(sin / 18), 0, 0) * CFrame.Angles(0, 0, math.rad(0 + 8 * math.cos(sin / 18))), 0.3)
- end
- RH.C0 = clerp(RH.C0, CFrame.new(0.500003934, -1.89999309, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024) * CFrame.new(0, 0 + 0.05 * math.cos(sin / 18), 0) * CFrame.Angles(0, 0, 0), 0.3)
- LH.C0 = clerp(LH.C0, CFrame.new(-0.500000119, -1.89999309, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024) * CFrame.new(0, 0 + 0.05 * math.cos(sin / 18), 0) * CFrame.Angles(0, 0, 0), 0.3)
- elseif torvel > 2 and hitfloor ~= nil then
- Pose = "Walk"
- if attack == false and skilldoing == false and skilldoing2 == false and skilldoing3 == false then
- RJ.C0 = clerp(RJ.C0, CFrame.new(0, -0.0669884086 - 0.1 * math.cos(sin / 3), -0.249999404, 1, 0, 0, 0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0) + Root.RotVelocity.Y / 15, 0), 0.3)
- Neck.C0 = clerp(Neck.C0, CFrame.new(0, 1.47410548, 0.096591115, 1, 0, 0, 0, 0.965925872, -0.258819342, 0, 0.258819342, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0 + Head.RotVelocity.Y / 25, 0), 0.3)
- RS.C0 = clerp(RS.C0, CFrame.new(1.50000083, -1.7881257E-7, -7.55374003E-7, 0.866024852, -0.500000954, -3.31524848E-6, 0.500000954, 0.866024971, -2.38418579E-7, 2.98023224E-6, -1.4603138E-6, 1.00000012) * CFrame.new(0.2, 0.1, 0 + 0.8 * math.cos(sin / 6)) * CFrame.Angles(math.rad(0 - 70 * math.cos(sin / 6)), 0, 0), 0.3)
- LS.C0 = clerp(LS.C0, CFrame.new(-1.5, 7.74863224E-7, -2.42472197E-7, 0.86602515, 0.500000536, -1.43179045E-6, -0.500000536, 0.866025209, 1.49011612E-6, 1.98185444E-6, -5.66244125E-7, 1.00000012) * CFrame.new(-0.2, 0.1, 0 - 0.8 * math.cos(sin / 6)) * CFrame.Angles(math.rad(0 + 70 * math.cos(sin / 6)), 0, 0), 0.3)
- end
- RH.C0 = clerp(RH.C0, CFrame.new(0.5, -1.99998903, 0, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024) * CFrame.new(0, 0, 0 - 1 * math.cos(sin / 6)) * CFrame.Angles(math.rad(0 + 70 * math.cos(sin / 6)), 0, 0), 0.3)
- LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -1.99998903, 0, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024) * CFrame.new(0, 0, 0 + 1 * math.cos(sin / 6)) * CFrame.Angles(math.rad(0 - 70 * math.cos(sin / 6)), 0, 0), 0.3)
- end
- if clonez == true then
- hum2:MoveTo(Torso.Position + Vector3.new(0, 0, 5))
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement