SHOW:
|
|
- or go back to the newest paste.
| 1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
| 2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 3 | - | plr = game.Players.LocalPlayer |
| 3 | + | local Player,game,owner = owner,game |
| 4 | local RealPlayer = Player | |
| 5 | do | |
| 6 | print("FE Compatibility code V2 by Mokiros")
| |
| 7 | local RealPlayer = RealPlayer | |
| 8 | script.Parent = RealPlayer.Character | |
| 9 | ||
| 10 | --Fake event to make stuff like Mouse.KeyDown work | |
| 11 | local Disconnect_Function = function(this) | |
| 12 | this[1].Functions[this[2]] = nil | |
| 13 | end | |
| 14 | local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
| |
| 15 | local FakeEvent_Metatable = {__index={
| |
| 16 | Connect = function(this,f) | |
| 17 | local i = tostring(math.random(0,10000)) | |
| 18 | while this.Functions[i] do | |
| 19 | - | mouse = plr:GetMouse() |
| 19 | + | i = tostring(math.random(0,10000)) |
| 20 | end | |
| 21 | this.Functions[i] = f | |
| 22 | return setmetatable({this,i},Disconnect_Metatable)
| |
| 23 | end | |
| 24 | }} | |
| 25 | FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect | |
| 26 | local function fakeEvent() | |
| 27 | return setmetatable({Functions={}},FakeEvent_Metatable)
| |
| 28 | end | |
| 29 | ||
| 30 | --Creating fake input objects with fake variables | |
| 31 | local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
| |
| 32 | FakeMouse.keyUp = FakeMouse.KeyUp | |
| 33 | FakeMouse.keyDown = FakeMouse.KeyDown | |
| 34 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 35 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 36 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 37 | end} | |
| 38 | --Merged 2 functions into one by checking amount of arguments | |
| 39 | CAS.UnbindAction = CAS.BindAction | |
| 40 | ||
| 41 | --This function will trigger the events that have been :Connect()'ed | |
| 42 | local function TriggerEvent(self,ev,...) | |
| 43 | for _,f in pairs(self[ev].Functions) do | |
| 44 | f(...) | |
| 45 | end | |
| 46 | end | |
| 47 | FakeMouse.TriggerEvent = TriggerEvent | |
| 48 | UIS.TriggerEvent = TriggerEvent | |
| 49 | ||
| 50 | --Client communication | |
| 51 | local Event = Instance.new("RemoteEvent")
| |
| 52 | Event.Name = "UserInput_Event" | |
| 53 | Event.OnServerEvent:Connect(function(plr,io) | |
| 54 | if plr~=RealPlayer then return end | |
| 55 | FakeMouse.Target = io.Target | |
| 56 | FakeMouse.Hit = io.Hit | |
| 57 | if not io.isMouse then | |
| 58 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 59 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 60 | return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up") | |
| 61 | end | |
| 62 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
| 63 | return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up") | |
| 64 | end | |
| 65 | for _,t in pairs(CAS.Actions) do | |
| 66 | for _,k in pairs(t.Keys) do | |
| 67 | if k==io.KeyCode then | |
| 68 | t.Function(t.Name,io.UserInputState,io) | |
| 69 | end | |
| 70 | end | |
| 71 | end | |
| 72 | FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 73 | UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 74 | end | |
| 75 | end) | |
| 76 | Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
| |
| 77 | local Mouse = owner:GetMouse() | |
| 78 | local UIS = game:GetService("UserInputService")
| |
| 79 | local input = function(io,RobloxHandled) | |
| 80 | if RobloxHandled then return end | |
| 81 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 82 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 83 | end | |
| 84 | UIS.InputBegan:Connect(input) | |
| 85 | UIS.InputEnded:Connect(input) | |
| 86 | local h,t | |
| 87 | --Give the server mouse data every second frame, but only if the values changed | |
| 88 | --If player is not moving their mouse, client won't fire events | |
| 89 | local HB = game:GetService("RunService").Heartbeat
| |
| 90 | while true do | |
| 91 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 92 | h,t=Mouse.Hit,Mouse.Target | |
| 93 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 94 | end | |
| 95 | --Wait 2 frames | |
| 96 | for i=1,2 do | |
| 97 | HB:Wait() | |
| 98 | end | |
| 99 | end]==],script) | |
| 100 | ||
| 101 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 102 | --Real game object | |
| 103 | local RealGame = game | |
| 104 | ||
| 105 | --Metatable for fake service | |
| 106 | local FakeService_Metatable = {
| |
| 107 | __index = function(self,k) | |
| 108 | local s = rawget(self,"_RealService") | |
| 109 | if s then | |
| 110 | return typeof(s[k])=="function" | |
| 111 | and function(_,...)return s[k](s,...)end or s[k] | |
| 112 | end | |
| 113 | end, | |
| 114 | __newindex = function(self,k,v) | |
| 115 | local s = rawget(self,"_RealService") | |
| 116 | if s then s[k]=v end | |
| 117 | end | |
| 118 | } | |
| 119 | local function FakeService(t,RealService) | |
| 120 | t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService | |
| 121 | return setmetatable(t,FakeService_Metatable) | |
| 122 | end | |
| 123 | ||
| 124 | --Fake game object | |
| 125 | local FakeGame = {
| |
| 126 | GetService = function(self,s) | |
| 127 | return rawget(self,s) or RealGame:GetService(s) | |
| 128 | end, | |
| 129 | Players = FakeService({
| |
| 130 | LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
| |
| 131 | },"Players"), | |
| 132 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 133 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 134 | RunService = FakeService({
| |
| 135 | _btrs = {},
| |
| 136 | RenderStepped = RealGame:GetService("RunService").Heartbeat,
| |
| 137 | BindToRenderStep = function(self,name,_,fun) | |
| 138 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 139 | end, | |
| 140 | UnbindFromRenderStep = function(self,name) | |
| 141 | self._btrs[name]:Disconnect() | |
| 142 | end, | |
| 143 | },"RunService") | |
| 144 | } | |
| 145 | rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer) | |
| 146 | FakeGame.service = FakeGame.GetService | |
| 147 | FakeService(FakeGame,game) | |
| 148 | --Changing owner to fake player object to support owner:GetMouse() | |
| 149 | game,owner = FakeGame,FakeGame.Players.LocalPlayer | |
| 150 | end | |
| 151 | ||
| 152 | ||
| 153 | wait(0.2) | |
| 154 | plr = silver22352 | |
| 155 | chr = plr.Character | |
| 156 | Head = chr.Head | |
| 157 | Root = chr.HumanoidRootPart | |
| 158 | Torso = chr.Torso | |
| 159 | RArm = chr["Right Arm"] | |
| 160 | LArm = chr["Left Arm"] | |
| 161 | RLeg = chr["Right Leg"] | |
| 162 | LLeg = chr["Left Leg"] | |
| 163 | RJ = Root.RootJoint | |
| 164 | Neck = Torso.Neck | |
| 165 | LS = Torso["Left Shoulder"] | |
| 166 | LH = Torso["Left Hip"] | |
| 167 | RS = Torso["Right Shoulder"] | |
| 168 | RH = Torso["Right Hip"] | |
| 169 | hum = chr:FindFirstChildOfClass("Humanoid")
| |
| 170 | mouse = silver22352 | |
| 171 | Head2, Root2, RArm2, LArm2, RLeg2, LLeg2 = nil, nil, nil, nil, nil, nil | |
| 172 | Pose = "Idle" | |
| 173 | attack = false | |
| 174 | skilldoing = false | |
| 175 | skilldoing2 = false | |
| 176 | attack2 = false | |
| 177 | skilldoing5 = false | |
| 178 | skilldoing4 = false | |
| 179 | skilldoing3 = false | |
| 180 | comb = 1 | |
| 181 | cc = 1 | |
| 182 | sin = 0 | |
| 183 | cha = 1 | |
| 184 | clonez = false | |
| 185 | create = LoadLibrary("RbxUtility").Create
| |
| 186 | chr.Animate:Remove() | |
| 187 | hum.Animator:Remove() | |
| 188 | function clerp(a, b, t) | |
| 189 | return a:lerp(b, t) | |
| 190 | end | |
| 191 | local newMotor = function(p0, p1, c0, c1) | |
| 192 | local w = Instance.new("Motor", p0)
| |
| 193 | w.Part0 = p0 | |
| 194 | w.Part1 = p1 | |
| 195 | w.C0 = c0 | |
| 196 | w.C1 = c1 | |
| 197 | return w | |
| 198 | end | |
| 199 | RJ.C0, RJ.C1 = CFrame.new(0, 0, 0), CFrame.new(0, 0, 0) | |
| 200 | Neck.C0, Neck.C1 = CFrame.new(0, 1.5, 0), CFrame.new(0, 0, 0) | |
| 201 | local RS = newMotor(Torso, RArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 202 | local LS = newMotor(Torso, LArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 203 | local RH = newMotor(Torso, RLeg, CFrame.new(0.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 204 | local LH = newMotor(Torso, LLeg, CFrame.new(-0.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 205 | function NoOutline(Part) | |
| 206 | Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 207 | end | |
| 208 | function rayCast(Position, Direction, Range, Ignore) | |
| 209 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 210 | end | |
| 211 | function swait(num) | |
| 212 | if num == 0 or num == nil then | |
| 213 | game:service("RunService").Stepped:wait(0)
| |
| 214 | else | |
| 215 | for i = 0, num do | |
| 216 | game:service("RunService").Stepped:wait(0)
| |
| 217 | end | |
| 218 | end | |
| 219 | end | |
| 220 | function parts(Par, name, size, color, mat, ref, tra) | |
| 221 | local part = create("Part")({
| |
| 222 | Parent = Par, | |
| 223 | Name = name, | |
| 224 | Size = size, | |
| 225 | CanCollide = false, | |
| 226 | Anchored = false, | |
| 227 | BrickColor = BrickColor.new(color), | |
| 228 | Material = mat, | |
| 229 | Reflectance = ref, | |
| 230 | Transparency = tra | |
| 231 | }) | |
| 232 | NoOutline(part) | |
| 233 | part:BreakJoints() | |
| 234 | return part | |
| 235 | end | |
| 236 | function meshs(Par, name, scale, mtype, id) | |
| 237 | local mesh = create("SpecialMesh")({
| |
| 238 | Parent = Par, | |
| 239 | Name = name, | |
| 240 | Scale = scale, | |
| 241 | MeshType = mtype | |
| 242 | }) | |
| 243 | if id ~= "" then | |
| 244 | mesh.MeshId = "rbxassetid://" .. id | |
| 245 | end | |
| 246 | return meshs | |
| 247 | end | |
| 248 | function welds(Par, name, p0, p1, c0, c1) | |
| 249 | local weld = create("Weld")({
| |
| 250 | Parent = Par, | |
| 251 | Name = name, | |
| 252 | Part0 = p0, | |
| 253 | Part1 = p1, | |
| 254 | C0 = c0, | |
| 255 | C1 = c1 | |
| 256 | }) | |
| 257 | return weld | |
| 258 | end | |
| 259 | function sounds(Par, id, vol, pit) | |
| 260 | local sound = create("Sound")({
| |
| 261 | Parent = Par, | |
| 262 | SoundId = id, | |
| 263 | Volume = vol, | |
| 264 | PlaybackSpeed = pit | |
| 265 | }) | |
| 266 | sound:Play() | |
| 267 | game:GetService("Debris"):AddItem(sound, 10)
| |
| 268 | return sound | |
| 269 | end | |
| 270 | m = Instance.new("Model", chr)
| |
| 271 | m.Name = "Suit" | |
| 272 | e = Instance.new("Model", chr)
| |
| 273 | e.Name = "Effect" | |
| 274 | N2T = parts(m, "N2T", Vector3.new(1.60000002, 2, 0.200000003), "Smoky grey", Enum.Material.SmoothPlastic, 0, 0) | |
| 275 | 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)) | |
| 276 | N2T = parts(m, "N2T", Vector3.new(1.20000005, 1.00000012, 0.200000003), "Smoky grey", Enum.Material.SmoothPlastic, 0, 0) | |
| 277 | 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)) | |
| 278 | N2T = parts(m, "N2T", Vector3.new(1.20000005, 1.20000005, 0.400000006), "Smoky grey", Enum.Material.SmoothPlastic, 0, 0) | |
| 279 | 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)) | |
| 280 | N2T = parts(m, "N2T", Vector3.new(1.20000005, 1.60000014, 0.200000003), "Smoky grey", Enum.Material.SmoothPlastic, 0, 0) | |
| 281 | 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)) | |
| 282 | N2T = parts(m, "N2T", Vector3.new(2, 0.600000024, 1.20000005), "Smoky grey", Enum.Material.SmoothPlastic, 0, 0) | |
| 283 | 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)) | |
| 284 | N2T = parts(m, "N2T", Vector3.new(2.0999999, 0.200000003, 1.10000002), "Smoky grey", Enum.Material.SmoothPlastic, 0, 0) | |
| 285 | 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)) | |
| 286 | N2 = parts(m, "N2", Vector3.new(0.200000003, 1, 0.200000003), "Institutional white", Enum.Material.SmoothPlastic, 0, 0) | |
| 287 | 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)) | |
| 288 | N2 = parts(m, "N2", Vector3.new(1.19999993, 1.5999999, 0.200000003), "Fossil", Enum.Material.SmoothPlastic, 0, 0) | |
| 289 | 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)) | |
| 290 | N2 = parts(m, "N2", Vector3.new(0.200000003, 1, 0.200000003), "Institutional white", Enum.Material.SmoothPlastic, 0, 0) | |
| 291 | 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)) | |
| 292 | N2T = parts(m, "N2T", Vector3.new(1.39999998, 1.39999998, 0.400000006), "Smoky grey", Enum.Material.SmoothPlastic, 0, 0) | |
| 293 | 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)) | |
| 294 | N2T = parts(m, "N2T", Vector3.new(1.20000005, 0.200000003, 1), "Smoky grey", Enum.Material.SmoothPlastic, 0, 0) | |
| 295 | 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)) | |
| 296 | N2T = parts(m, "N2T", Vector3.new(1.20000005, 1.20000005, 0.200000003), "Smoky grey", Enum.Material.SmoothPlastic, 0, 0) | |
| 297 | 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)) | |
| 298 | N2T = parts(m, "N2T", Vector3.new(1.20000005, 0.800000072, 0.200000003), "Smoky grey", Enum.Material.SmoothPlastic, 0, 0) | |
| 299 | 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)) | |
| 300 | N2 = parts(m, "N2", Vector3.new(0.199999928, 0.399999738, 1.60000014), "Really black", Enum.Material.SmoothPlastic, 0, 0) | |
| 301 | 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)) | |
| 302 | N2 = parts(m, "N2", Vector3.new(0.199999928, 0.19999975, 0.399999917), "Really black", Enum.Material.SmoothPlastic, 0, 0) | |
| 303 | 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)) | |
| 304 | meshs(N2, "Mesh", Vector3.new(1, 1, 1), Enum.MeshType.Wedge, "") | |
| 305 | N2 = parts(m, "N2", Vector3.new(0.199999928, 0.19999975, 0.399999917), "Really black", Enum.Material.SmoothPlastic, 0, 0) | |
| 306 | 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)) | |
| 307 | meshs(N2, "Mesh", Vector3.new(1, 1, 1), Enum.MeshType.Wedge, "") | |
| 308 | N2 = parts(m, "N2", Vector3.new(0.199999928, 0.399999738, 1.4000001), "Really black", Enum.Material.SmoothPlastic, 0, 0) | |
| 309 | 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)) | |
| 310 | meshs(N2, "Mesh", Vector3.new(1, 1, 1), Enum.MeshType.Wedge, "") | |
| 311 | N2 = parts(m, "N2", Vector3.new(0.199999928, 0.399999738, 1.4000001), "Really black", Enum.Material.SmoothPlastic, 0, 0) | |
| 312 | 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)) | |
| 313 | meshs(N2, "Mesh", Vector3.new(1, 1, 1), Enum.MeshType.Wedge, "") | |
| 314 | N21 = parts(m, "N21", Vector3.new(0.200000003, 0.200000003, 0.200000003), "Really black", Enum.Material.SmoothPlastic, 0, 1) | |
| 315 | 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)) | |
| 316 | for _, v in pairs(m:children()) do | |
| 317 | if v:IsA("Part") and v.Name == "N2T" then
| |
| 318 | v.BrickColor = Torso.BrickColor | |
| 319 | end | |
| 320 | end | |
| 321 | aaa = NumberSequence.new({
| |
| 322 | NumberSequenceKeypoint.new(0, 0.2), | |
| 323 | NumberSequenceKeypoint.new(1, 0) | |
| 324 | }) | |
| 325 | bbb = NumberSequence.new({
| |
| 326 | NumberSequenceKeypoint.new(0, 0), | |
| 327 | NumberSequenceKeypoint.new(1, 0) | |
| 328 | }) | |
| 329 | local Efect = create("ParticleEmitter")({
| |
| 330 | Color = ColorSequence.new(Color3.new(0, 0, 0)), | |
| 331 | LightEmission = 0.45, | |
| 332 | Texture = "rbxassetid://50657528", | |
| 333 | Transparency = bbb, | |
| 334 | Size = aaa, | |
| 335 | ZOffset = 0, | |
| 336 | Acceleration = Vector3.new(0, 0, 0), | |
| 337 | LockedToPart = false, | |
| 338 | EmissionDirection = "Top", | |
| 339 | Lifetime = NumberRange.new(0.2, 0.6), | |
| 340 | Rate = 800, | |
| 341 | Rotation = NumberRange.new(-100, 100), | |
| 342 | RotSpeed = NumberRange.new(-50, 50), | |
| 343 | Speed = NumberRange.new(0), | |
| 344 | VelocitySpread = 1000, | |
| 345 | Enabled = false, | |
| 346 | Parent = Root | |
| 347 | }) | |
| 348 | local Buff = create("BillboardGui")({
| |
| 349 | Size = UDim2.new(5, 0, 15, 0), | |
| 350 | Adornee = Root, | |
| 351 | Parent = Root, | |
| 352 | ExtentsOffset = Vector3.new(0, 3, 0), | |
| 353 | AlwaysOnTop = true | |
| 354 | }) | |
| 355 | local BuffLabel = create("TextLabel")({
| |
| 356 | AnchorPoint = Vector2.new(0.5, 0.5), | |
| 357 | BackgroundTransparency = 1, | |
| 358 | TextStrokeTransparency = 1, | |
| 359 | TextTransparency = 1, | |
| 360 | TextColor3 = Color3.new(1, 0, 0), | |
| 361 | Position = UDim2.new(0.5, 0, 0.5, 0), | |
| 362 | Size = UDim2.new(1.5, 0, 0.2, 0), | |
| 363 | Text = "gg", | |
| 364 | Font = "SourceSansBold", | |
| 365 | TextScaled = true, | |
| 366 | Parent = Buff | |
| 367 | }) | |
| 368 | function Damage(Type, Part, hit, dmg, delet) | |
| 369 | if hit.Parent == nil then | |
| 370 | return | |
| 371 | end | |
| 372 | local h = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 373 | for _, v in pairs(hit.Parent:children()) do | |
| 374 | if v:IsA("Humanoid") then
| |
| 375 | h = v | |
| 376 | end | |
| 377 | end | |
| 378 | if h ~= nil and hit.Parent.Name ~= chr.Name then | |
| 379 | if hit.Parent:findFirstChild("AHit") == nil then
| |
| 380 | h.Health = h.Health - dmg | |
| 381 | if h.Health == math.huge then | |
| 382 | hit.Parent:BreakJoints() | |
| 383 | end | |
| 384 | end | |
| 385 | if Type == "Disappear" then | |
| 386 | Part.Parent = nil | |
| 387 | if hit.Parent:findFirstChild("AHit") == nil then
| |
| 388 | local c = create("BoolValue")({
| |
| 389 | Name = "AHit", | |
| 390 | Value = true, | |
| 391 | Parent = hit.Parent | |
| 392 | }) | |
| 393 | game:GetService("Debris"):AddItem(c, 0)
| |
| 394 | end | |
| 395 | elseif Type == "None" then | |
| 396 | if hit.Parent:findFirstChild("AHit") == nil then
| |
| 397 | local c = create("BoolValue")({
| |
| 398 | Name = "AHit", | |
| 399 | Value = true, | |
| 400 | Parent = hit.Parent | |
| 401 | }) | |
| 402 | game:GetService("Debris"):AddItem(c, 0.25)
| |
| 403 | end | |
| 404 | elseif Type == "None2" then | |
| 405 | end | |
| 406 | end | |
| 407 | end | |
| 408 | function Mdamage(Type, Part, Magn, Dmg) | |
| 409 | for _, c in pairs(workspace:children()) do | |
| 410 | local hum = c:findFirstChildOfClass("Humanoid")
| |
| 411 | if hum ~= nil then | |
| 412 | local ddee = c:findFirstChild("Torso")
| |
| 413 | if ddee ~= nil then | |
| 414 | local targ = ddee.Position - Part.Position | |
| 415 | local mag = targ.magnitude | |
| 416 | if Magn >= mag and c.Name ~= plr.Name then | |
| 417 | Damage(Type, Part, ddee, Dmg) | |
| 418 | if hum.Health == math.huge then | |
| 419 | ddee:BreakJoints() | |
| 420 | end | |
| 421 | end | |
| 422 | end | |
| 423 | end | |
| 424 | end | |
| 425 | end | |
| 426 | function effect(par, color, CF, x, y, z, x1, y1, z1, de, mtyp, typ) | |
| 427 | local ex = create("Part")({
| |
| 428 | Size = Vector3.new(0.2, 0.2, 0.2), | |
| 429 | BrickColor = color, | |
| 430 | CanCollide = false, | |
| 431 | Material = "Neon", | |
| 432 | Anchored = true, | |
| 433 | CFrame = CF, | |
| 434 | Parent = par | |
| 435 | }) | |
| 436 | NoOutline(ex) | |
| 437 | local exe = create("SpecialMesh")({
| |
| 438 | Scale = Vector3.new(x, y, z), | |
| 439 | MeshType = mtyp, | |
| 440 | Parent = ex | |
| 441 | }) | |
| 442 | game:GetService("Debris"):AddItem(ex, 10)
| |
| 443 | coroutine.resume(coroutine.create(function() | |
| 444 | for i = 0, 1.1, de do | |
| 445 | swait() | |
| 446 | ex.Transparency = i | |
| 447 | exe.Scale = exe.Scale + Vector3.new(x1, y1, z1) | |
| 448 | if typ == 1 then | |
| 449 | ex.CFrame = ex.CFrame * CFrame.Angles(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)) | |
| 450 | end | |
| 451 | end | |
| 452 | ex:Remove() | |
| 453 | end)) | |
| 454 | end | |
| 455 | function Shuriken() | |
| 456 | attack = true | |
| 457 | if cc == 1 then | |
| 458 | for i = 1, 3 do | |
| 459 | for i = 0, 1, 0.4 do | |
| 460 | swait() | |
| 461 | 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) | |
| 462 | 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) | |
| 463 | 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) | |
| 464 | 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) | |
| 465 | if skilldoing == true or skilldoing2 == true then | |
| 466 | break | |
| 467 | end | |
| 468 | end | |
| 469 | sounds(Root, "rbxassetid://173979241", 1.2, 1) | |
| 470 | do | |
| 471 | local efec = parts(e, "hit", Vector3.new(1.4, 0.2, 1.4), "Really black", Enum.Material.Neon, 0, 0) | |
| 472 | efec.CFrame = Root.CFrame * CFrame.new(1.2, 0.8, -2) | |
| 473 | meshs(efec, "Mesh", Vector3.new(3.2, 3.2, 3.2), Enum.MeshType.FileMesh, "11376946") | |
| 474 | local fire = Efect:Clone() | |
| 475 | fire.Parent = efec | |
| 476 | fire.Color = ColorSequence.new(BrickColor.new("Really black").Color)
| |
| 477 | fire.Enabled = true | |
| 478 | local aa = create("BodyVelocity")({
| |
| 479 | Parent = efec, | |
| 480 | MaxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 481 | Velocity = efec.CFrame.lookVector * 80 | |
| 482 | }) | |
| 483 | local aaa = create("BodyAngularVelocity")({
| |
| 484 | Parent = efec, | |
| 485 | MaxTorque = Vector3.new(math.huge, math.huge, math.huge), | |
| 486 | AngularVelocity = Vector3.new(0, 7, 0) | |
| 487 | }) | |
| 488 | game:GetService("Debris"):AddItem(efec, 5)
| |
| 489 | local hon = efec.Touched:connect(function(hitt) | |
| 490 | if hitt.Parent.Name ~= chr.Name then | |
| 491 | Damage("Disappear", efec, hitt, 15)
| |
| 492 | end | |
| 493 | end) | |
| 494 | for i = 0, 1, 0.4 do | |
| 495 | swait() | |
| 496 | 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) | |
| 497 | 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) | |
| 498 | 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) | |
| 499 | 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) | |
| 500 | if skilldoing == true or skilldoing2 == true then | |
| 501 | break | |
| 502 | end | |
| 503 | end | |
| 504 | end | |
| 505 | end | |
| 506 | for i = 0, 1, 0.15 do | |
| 507 | swait() | |
| 508 | 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) | |
| 509 | 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) | |
| 510 | 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) | |
| 511 | 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) | |
| 512 | if skilldoing == true or skilldoing2 == true then | |
| 513 | break | |
| 514 | end | |
| 515 | end | |
| 516 | else | |
| 517 | for i = 0, 1, 0.3 do | |
| 518 | swait() | |
| 519 | 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) | |
| 520 | 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) | |
| 521 | 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) | |
| 522 | 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) | |
| 523 | if skilldoing == true or skilldoing2 == true then | |
| 524 | break | |
| 525 | end | |
| 526 | end | |
| 527 | sounds(Root, "rbxassetid://173979241", 1.2, 1) | |
| 528 | for i = -15, 15, 15 do | |
| 529 | do | |
| 530 | local efec = parts(e, "hit", Vector3.new(1.4, 0.2, 1.4), "Really black", Enum.Material.Neon, 0, 0) | |
| 531 | efec.CFrame = Root.CFrame * CFrame.new(1.2, 0.8, -2) * CFrame.Angles(0, math.rad(i), 0) | |
| 532 | meshs(efec, "Mesh", Vector3.new(3.2, 3.2, 3.2), Enum.MeshType.FileMesh, "11376946") | |
| 533 | local fire = Efect:Clone() | |
| 534 | fire.Parent = efec | |
| 535 | fire.Color = ColorSequence.new(BrickColor.new("Really black").Color)
| |
| 536 | fire.Enabled = true | |
| 537 | local aa = create("BodyVelocity")({
| |
| 538 | Parent = efec, | |
| 539 | MaxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 540 | Velocity = efec.CFrame.lookVector * 80 | |
| 541 | }) | |
| 542 | local aaa = create("BodyAngularVelocity")({
| |
| 543 | Parent = efec, | |
| 544 | MaxTorque = Vector3.new(math.huge, math.huge, math.huge), | |
| 545 | AngularVelocity = Vector3.new(0, 7, 0) | |
| 546 | }) | |
| 547 | game:GetService("Debris"):AddItem(efec, 5)
| |
| 548 | local hon = efec.Touched:connect(function(hitt) | |
| 549 | if hitt.Parent.Name ~= chr.Name then | |
| 550 | Damage("Disappear", efec, hitt, 15)
| |
| 551 | end | |
| 552 | end) | |
| 553 | end | |
| 554 | end | |
| 555 | for i = 0, 1, 0.15 do | |
| 556 | swait() | |
| 557 | 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) | |
| 558 | 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) | |
| 559 | 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) | |
| 560 | 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) | |
| 561 | if skilldoing == true or skilldoing2 == true then | |
| 562 | break | |
| 563 | end | |
| 564 | end | |
| 565 | end | |
| 566 | attack = false | |
| 567 | end | |
| 568 | function Kunai() | |
| 569 | if skilldoing == true then | |
| 570 | return | |
| 571 | end | |
| 572 | skilldoing = true | |
| 573 | sounds(Root, "rbxasset://sounds/swordslash.wav", 1.2, 1) | |
| 574 | for i = 0, 1, 0.25 do | |
| 575 | swait() | |
| 576 | Torso.Velocity = Root.CFrame.lookVector * 140 | |
| 577 | 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) | |
| 578 | 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) | |
| 579 | 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) | |
| 580 | 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) | |
| 581 | if attack == true or skilldoing2 == true then | |
| 582 | break | |
| 583 | end | |
| 584 | end | |
| 585 | for i = 0, 1, 0.07 do | |
| 586 | swait() | |
| 587 | Mdamage("None", N21, 4, 55)
| |
| 588 | 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) | |
| 589 | 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) | |
| 590 | 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) | |
| 591 | 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) | |
| 592 | if attack == true or skilldoing2 == true then | |
| 593 | break | |
| 594 | end | |
| 595 | end | |
| 596 | skilldoing = false | |
| 597 | end | |
| 598 | function Lightning_Shuriken() | |
| 599 | if skilldoing2 == true then | |
| 600 | return | |
| 601 | end | |
| 602 | skilldoing2 = true | |
| 603 | local ref = parts(m, "ref", Vector3.new(5, 0.200000003, 5), "Toothpaste", Enum.Material.Plastic, 0, 0) | |
| 604 | 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)) | |
| 605 | meshs(ref, "Mesh", Vector3.new(12, 3, 12), Enum.MeshType.FileMesh, "11376946") | |
| 606 | for i = 0, 1, 0.034 do | |
| 607 | swait() | |
| 608 | 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) | |
| 609 | 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) | |
| 610 | 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) | |
| 611 | 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) | |
| 612 | if attack == true or skilldoing == true then | |
| 613 | break | |
| 614 | end | |
| 615 | end | |
| 616 | for i = 0, 1, 0.4 do | |
| 617 | swait() | |
| 618 | 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) | |
| 619 | 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) | |
| 620 | 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) | |
| 621 | 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) | |
| 622 | if attack == true or skilldoing == true then | |
| 623 | break | |
| 624 | end | |
| 625 | end | |
| 626 | sounds(Root, "rbxassetid://173979241", 1.2, 1) | |
| 627 | refWeld:Remove() | |
| 628 | ref.CFrame = Root.CFrame * CFrame.new(0, 0.8, -2) | |
| 629 | local fire = Efect:Clone() | |
| 630 | fire.Parent = ref | |
| 631 | fire.Color = ColorSequence.new(BrickColor.new("Toothpaste").Color)
| |
| 632 | fire.Enabled = true | |
| 633 | local aa = create("BodyVelocity")({
| |
| 634 | Parent = ref, | |
| 635 | MaxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 636 | Velocity = ref.CFrame.lookVector * 65 | |
| 637 | }) | |
| 638 | local aaa = create("BodyAngularVelocity")({
| |
| 639 | Parent = ref, | |
| 640 | MaxTorque = Vector3.new(math.huge, math.huge, math.huge), | |
| 641 | AngularVelocity = Vector3.new(0, -12, 0) | |
| 642 | }) | |
| 643 | game:GetService("Debris"):AddItem(ref, 5)
| |
| 644 | local hon = ref.Touched:connect(function(hitt) | |
| 645 | if hitt.Parent.Name ~= chr.Name then | |
| 646 | Damage("None2", ref, hitt, 10)
| |
| 647 | end | |
| 648 | end) | |
| 649 | for i = 0, 1, 0.08 do | |
| 650 | swait() | |
| 651 | 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) | |
| 652 | 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) | |
| 653 | 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) | |
| 654 | 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) | |
| 655 | if attack == true or skilldoing == true then | |
| 656 | break | |
| 657 | end | |
| 658 | end | |
| 659 | skilldoing2 = false | |
| 660 | end | |
| 661 | function ShurikenC() | |
| 662 | if attack2 == true then | |
| 663 | return | |
| 664 | end | |
| 665 | attack2 = true | |
| 666 | if cc == 1 then | |
| 667 | for i = 1, 3 do | |
| 668 | for i = 0, 1, 0.4 do | |
| 669 | swait() | |
| 670 | 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) | |
| 671 | 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) | |
| 672 | 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) | |
| 673 | 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) | |
| 674 | if skilldoing4 == true or skilldoing5 == true or 1 > hum2.Health then | |
| 675 | break | |
| 676 | end | |
| 677 | end | |
| 678 | sounds(Root2, "rbxassetid://173979241", 1.2, 1) | |
| 679 | do | |
| 680 | local efec = parts(e, "hit", Vector3.new(1.4, 0.2, 1.4), "Really black", Enum.Material.Neon, 0, 0) | |
| 681 | efec.CFrame = Root2.CFrame * CFrame.new(1.2, 0.8, -2) | |
| 682 | meshs(efec, "Mesh", Vector3.new(3.2, 3.2, 3.2), Enum.MeshType.FileMesh, "11376946") | |
| 683 | local fire = Efect:Clone() | |
| 684 | fire.Parent = efec | |
| 685 | fire.Color = ColorSequence.new(BrickColor.new("Really black").Color)
| |
| 686 | fire.Enabled = true | |
| 687 | local aa = create("BodyVelocity")({
| |
| 688 | Parent = efec, | |
| 689 | MaxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 690 | Velocity = efec.CFrame.lookVector * 80 | |
| 691 | }) | |
| 692 | local aaa = create("BodyAngularVelocity")({
| |
| 693 | Parent = efec, | |
| 694 | MaxTorque = Vector3.new(math.huge, math.huge, math.huge), | |
| 695 | AngularVelocity = Vector3.new(0, 7, 0) | |
| 696 | }) | |
| 697 | game:GetService("Debris"):AddItem(efec, 5)
| |
| 698 | local hon = efec.Touched:connect(function(hitt) | |
| 699 | if hitt.Parent.Name ~= chr.Name then | |
| 700 | Damage("Disappear", efec, hitt, 15)
| |
| 701 | end | |
| 702 | end) | |
| 703 | for i = 0, 1, 0.4 do | |
| 704 | swait() | |
| 705 | 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) | |
| 706 | 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) | |
| 707 | 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) | |
| 708 | 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) | |
| 709 | if skilldoing5 == true or skilldoing4 == true or 1 > hum2.Health then | |
| 710 | break | |
| 711 | end | |
| 712 | end | |
| 713 | end | |
| 714 | end | |
| 715 | for i = 0, 1, 0.15 do | |
| 716 | swait() | |
| 717 | 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) | |
| 718 | 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) | |
| 719 | 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) | |
| 720 | 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) | |
| 721 | if skilldoing5 == true or skilldoing4 == true or 1 > hum2.Health then | |
| 722 | break | |
| 723 | end | |
| 724 | end | |
| 725 | else | |
| 726 | for i = 0, 1, 0.3 do | |
| 727 | swait() | |
| 728 | 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) | |
| 729 | 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) | |
| 730 | 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) | |
| 731 | 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) | |
| 732 | if skilldoing5 == true or skilldoing4 == true or 1 > hum2.Health then | |
| 733 | break | |
| 734 | end | |
| 735 | end | |
| 736 | sounds(Root2, "rbxassetid://173979241", 1.2, 1) | |
| 737 | for i = -15, 15, 15 do | |
| 738 | do | |
| 739 | local efec = parts(e, "hit", Vector3.new(1.4, 0.2, 1.4), "Really black", Enum.Material.Neon, 0, 0) | |
| 740 | efec.CFrame = Root2.CFrame * CFrame.new(1.2, 0.8, -2) * CFrame.Angles(0, math.rad(i), 0) | |
| 741 | meshs(efec, "Mesh", Vector3.new(3.2, 3.2, 3.2), Enum.MeshType.FileMesh, "11376946") | |
| 742 | local fire = Efect:Clone() | |
| 743 | fire.Parent = efec | |
| 744 | fire.Color = ColorSequence.new(BrickColor.new("Really black").Color)
| |
| 745 | fire.Enabled = true | |
| 746 | local aa = create("BodyVelocity")({
| |
| 747 | Parent = efec, | |
| 748 | MaxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 749 | Velocity = efec.CFrame.lookVector * 80 | |
| 750 | }) | |
| 751 | local aaa = create("BodyAngularVelocity")({
| |
| 752 | Parent = efec, | |
| 753 | MaxTorque = Vector3.new(math.huge, math.huge, math.huge), | |
| 754 | AngularVelocity = Vector3.new(0, 7, 0) | |
| 755 | }) | |
| 756 | game:GetService("Debris"):AddItem(efec, 5)
| |
| 757 | local hon = efec.Touched:connect(function(hitt) | |
| 758 | if hitt.Parent.Name ~= chr.Name then | |
| 759 | Damage("Disappear", efec, hitt, 15)
| |
| 760 | end | |
| 761 | end) | |
| 762 | end | |
| 763 | end | |
| 764 | for i = 0, 1, 0.15 do | |
| 765 | swait() | |
| 766 | 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) | |
| 767 | 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) | |
| 768 | 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) | |
| 769 | 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) | |
| 770 | if skilldoing5 == true or skilldoing4 == true or 1 > hum2.Health then | |
| 771 | break | |
| 772 | end | |
| 773 | end | |
| 774 | end | |
| 775 | attack2 = false | |
| 776 | end | |
| 777 | function KunaiC() | |
| 778 | if skilldoing5 == true then | |
| 779 | return | |
| 780 | end | |
| 781 | skilldoing5 = true | |
| 782 | sounds(Root2, "rbxasset://sounds/swordslash.wav", 1.2, 1) | |
| 783 | for i = 0, 1, 0.25 do | |
| 784 | swait() | |
| 785 | Torso2.Velocity = Root2.CFrame.lookVector * 140 | |
| 786 | 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) | |
| 787 | 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) | |
| 788 | 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) | |
| 789 | 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) | |
| 790 | if attack2 == true or skilldoing4 == true or 1 > hum2.Health then | |
| 791 | break | |
| 792 | end | |
| 793 | end | |
| 794 | for i = 0, 1, 0.07 do | |
| 795 | swait() | |
| 796 | Mdamage("None", N22, 4, 55)
| |
| 797 | 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) | |
| 798 | 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) | |
| 799 | 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) | |
| 800 | 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) | |
| 801 | if attack2 == true or skilldoing4 == true or 1 > hum2.Health then | |
| 802 | break | |
| 803 | end | |
| 804 | end | |
| 805 | skilldoing5 = false | |
| 806 | end | |
| 807 | function Lightning_ShurikenC() | |
| 808 | if skilldoing4 == true then | |
| 809 | return | |
| 810 | end | |
| 811 | skilldoing4 = true | |
| 812 | local ref = parts(m, "ref", Vector3.new(5, 0.200000003, 5), "Toothpaste", Enum.Material.Plastic, 0, 0) | |
| 813 | 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)) | |
| 814 | meshs(ref, "Mesh", Vector3.new(12, 3, 12), Enum.MeshType.FileMesh, "11376946") | |
| 815 | for i = 0, 1, 0.034 do | |
| 816 | swait() | |
| 817 | 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) | |
| 818 | 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) | |
| 819 | 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) | |
| 820 | 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) | |
| 821 | if attack2 == true or skilldoing5 == true or 1 > hum2.Health then | |
| 822 | break | |
| 823 | end | |
| 824 | end | |
| 825 | for i = 0, 1, 0.4 do | |
| 826 | swait() | |
| 827 | 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) | |
| 828 | 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) | |
| 829 | 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) | |
| 830 | 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) | |
| 831 | if attack2 == true or skilldoing5 == true or 1 > hum2.Health then | |
| 832 | break | |
| 833 | end | |
| 834 | end | |
| 835 | sounds(Root2, "rbxassetid://173979241", 1.2, 1) | |
| 836 | refWeld:Remove() | |
| 837 | ref.CFrame = Root2.CFrame * CFrame.new(0, 0.8, -2) | |
| 838 | local fire = Efect:Clone() | |
| 839 | fire.Parent = ref | |
| 840 | fire.Color = ColorSequence.new(BrickColor.new("Toothpaste").Color)
| |
| 841 | fire.Enabled = true | |
| 842 | local aa = create("BodyVelocity")({
| |
| 843 | Parent = ref, | |
| 844 | MaxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 845 | Velocity = ref.CFrame.lookVector * 65 | |
| 846 | }) | |
| 847 | local aaa = create("BodyAngularVelocity")({
| |
| 848 | Parent = ref, | |
| 849 | MaxTorque = Vector3.new(math.huge, math.huge, math.huge), | |
| 850 | AngularVelocity = Vector3.new(0, -12, 0) | |
| 851 | }) | |
| 852 | game:GetService("Debris"):AddItem(ref, 5)
| |
| 853 | local hon = ref.Touched:connect(function(hitt) | |
| 854 | if hitt.Parent.Name ~= chr.Name then | |
| 855 | Damage("None2", ref, hitt, 10)
| |
| 856 | end | |
| 857 | end) | |
| 858 | for i = 0, 1, 0.08 do | |
| 859 | swait() | |
| 860 | 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) | |
| 861 | 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) | |
| 862 | 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) | |
| 863 | 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) | |
| 864 | if attack2 == true or skilldoing5 == true or 1 > hum2.Health then | |
| 865 | break | |
| 866 | end | |
| 867 | end | |
| 868 | skilldoing4 = false | |
| 869 | end | |
| 870 | aaaa = nil | |
| 871 | function weeb() | |
| 872 | skilldoing3 = true | |
| 873 | for i = 0, 1, 0.12 do | |
| 874 | swait() | |
| 875 | 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) | |
| 876 | 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) | |
| 877 | 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) | |
| 878 | 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) | |
| 879 | end | |
| 880 | for i = 0, 1, 0.1 do | |
| 881 | swait() | |
| 882 | 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) | |
| 883 | 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) | |
| 884 | 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) | |
| 885 | 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) | |
| 886 | end | |
| 887 | chr.Archivable = true | |
| 888 | clone = chr:Clone() | |
| 889 | clone.Parent = workspace | |
| 890 | swait() | |
| 891 | clone.Parent = chr | |
| 892 | Head2 = clone.Head | |
| 893 | Root2 = clone.HumanoidRootPart | |
| 894 | Torso2 = clone.Torso | |
| 895 | Root2.CFrame = Root.CFrame * CFrame.new(0, 0, -3) | |
| 896 | RArm2 = clone["Right Arm"] | |
| 897 | LArm2 = clone["Left Arm"] | |
| 898 | RLeg2 = clone["Right Leg"] | |
| 899 | LLeg2 = clone["Left Leg"] | |
| 900 | clone.Sound:Remove() | |
| 901 | for _, v in pairs(clone:children()) do | |
| 902 | if v:IsA("Part") and v.Name == "Torso" then
| |
| 903 | for _, vs in pairs(v:children()) do | |
| 904 | if vs:IsA("Motor6D") or vs:IsA("Motor") then
| |
| 905 | vs:Remove() | |
| 906 | end | |
| 907 | end | |
| 908 | else | |
| 909 | for _, vs in pairs(v:children()) do | |
| 910 | if vs:IsA("Sound") then
| |
| 911 | vs:Remove() | |
| 912 | end | |
| 913 | end | |
| 914 | end | |
| 915 | end | |
| 916 | hum2 = clone:findFirstChildOfClass("Humanoid")
| |
| 917 | N22 = clone.Suit.N21 | |
| 918 | RJ2 = newMotor(Root2, Torso2, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 919 | Neck2 = newMotor(Torso2, Head2, CFrame.new(0, 1.5, 0), CFrame.new(0, 0, 0)) | |
| 920 | RS2 = newMotor(Torso2, RArm2, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 921 | LS2 = newMotor(Torso2, LArm2, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 922 | RH2 = newMotor(Torso2, RLeg2, CFrame.new(0.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 923 | LH2 = newMotor(Torso2, LLeg2, CFrame.new(-0.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 924 | aaaa = clone | |
| 925 | swait() | |
| 926 | effect(e, Torso.BrickColor, Root2.CFrame, 40, 40, 40, 1.5, 1.5, 1.5, 0.06, "Sphere", 2) | |
| 927 | sounds(Root2, "rbxassetid://944087788", 1.2, 1) | |
| 928 | clonez = true | |
| 929 | skilldoing3 = false | |
| 930 | end | |
| 931 | mouse.Button1Down:connect(function() | |
| 932 | if attack == false then | |
| 933 | coroutine.resume(coroutine.create(function() | |
| 934 | Shuriken() | |
| 935 | end)) | |
| 936 | if clonez == true then | |
| 937 | ShurikenC() | |
| 938 | end | |
| 939 | end | |
| 940 | end) | |
| 941 | mouse.KeyDown:connect(function(k) | |
| 942 | k = k:lower() | |
| 943 | if k == "z" and skilldoing == false then | |
| 944 | coroutine.resume(coroutine.create(function() | |
| 945 | Kunai() | |
| 946 | end)) | |
| 947 | if clonez == true then | |
| 948 | KunaiC() | |
| 949 | end | |
| 950 | elseif k == "x" and skilldoing2 == false then | |
| 951 | coroutine.resume(coroutine.create(function() | |
| 952 | Lightning_Shuriken() | |
| 953 | end)) | |
| 954 | if clonez == true then | |
| 955 | Lightning_ShurikenC() | |
| 956 | end | |
| 957 | elseif k == "c" and cc == 1 then | |
| 958 | cc = 2 | |
| 959 | print("wide")
| |
| 960 | elseif k == "c" and cc == 2 then | |
| 961 | cc = 1 | |
| 962 | print("straight")
| |
| 963 | elseif k == "n" and clonez == false then | |
| 964 | weeb() | |
| 965 | elseif k == " " and (Pose == "Jump" or Pose == "Fall") then | |
| 966 | sounds(Root, "rbxassetid://322364178", 0.7, 1) | |
| 967 | Torso.Velocity = Root.CFrame.lookVector * hum.WalkSpeed + Vector3.new(0, 1, 0) * 70 | |
| 968 | if clonez == true then | |
| 969 | sounds(Root2, "rbxassetid://322364178", 0.7, 1) | |
| 970 | Torso2.Velocity = Root2.CFrame.lookVector * hum2.WalkSpeed + Vector3.new(0, 1, 0) * 70 | |
| 971 | end | |
| 972 | end | |
| 973 | if k == " " and clonez == true then | |
| 974 | hum2.Jump = true | |
| 975 | end | |
| 976 | end) | |
| 977 | Pose2 = "Idle" | |
| 978 | coroutine.resume(coroutine.create(function() | |
| 979 | while true do | |
| 980 | swait() | |
| 981 | if clonez == true and aaaa ~= nil and hum2.Health < 1 then | |
| 982 | game:GetService("Debris"):AddItem(clone, 5)
| |
| 983 | swait(2) | |
| 984 | Head2, Root2, RArm2, LArm2, RLeg2, LLeg2 = nil, nil, nil, nil, nil, nil | |
| 985 | aaaa = nil | |
| 986 | clonez = false | |
| 987 | end | |
| 988 | if clonez == true and aaaa ~= nil then | |
| 989 | hum2.WalkSpeed = 35 | |
| 990 | local torvel = (Root2.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 991 | local velderp = Root2.Velocity.y | |
| 992 | hitfloor, posfloor = rayCast(Root2.Position, CFrame.new(Root2.Position, Root2.Position - Vector3.new(0, 1, 0)).lookVector, 4, chr) | |
| 993 | if 1 < Root2.Velocity.y and hitfloor == nil then | |
| 994 | Pose2 = "Jump" | |
| 995 | if attack2 == false and skilldoing5 == false and skilldoing4 == false then | |
| 996 | 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) | |
| 997 | 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) | |
| 998 | 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) | |
| 999 | 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) | |
| 1000 | end | |
| 1001 | 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) | |
| 1002 | 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) | |
| 1003 | elseif Root2.Velocity.y < -1 and hitfloor == nil then | |
| 1004 | Pose2 = "Fall" | |
| 1005 | if attack2 == false and skilldoing5 == false and skilldoing4 == false then | |
| 1006 | 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) | |
| 1007 | 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) | |
| 1008 | 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) | |
| 1009 | 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) | |
| 1010 | end | |
| 1011 | 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) | |
| 1012 | 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) | |
| 1013 | elseif torvel < 1 and hitfloor ~= nil then | |
| 1014 | Pose2 = "Idle" | |
| 1015 | if attack2 == false and skilldoing5 == false and skilldoing4 == false then | |
| 1016 | 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) | |
| 1017 | 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) | |
| 1018 | 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) | |
| 1019 | 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) | |
| 1020 | end | |
| 1021 | 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) | |
| 1022 | 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) | |
| 1023 | elseif torvel > 2 and hitfloor ~= nil then | |
| 1024 | Pose2 = "Walk" | |
| 1025 | if attack2 == false and skilldoing5 == false and skilldoing4 == false then | |
| 1026 | 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) | |
| 1027 | 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) | |
| 1028 | 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) | |
| 1029 | 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) | |
| 1030 | end | |
| 1031 | 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) | |
| 1032 | 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) | |
| 1033 | end | |
| 1034 | end | |
| 1035 | end | |
| 1036 | end)) | |
| 1037 | while chr.Humanoid.Health >= 0 do | |
| 1038 | swait() | |
| 1039 | sin = sin + cha | |
| 1040 | hum.WalkSpeed = 35 | |
| 1041 | local torvel = (Root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 1042 | local velderp = Root.Velocity.y | |
| 1043 | hitfloor, posfloor = rayCast(Root.Position, CFrame.new(Root.Position, Root.Position - Vector3.new(0, 1, 0)).lookVector, 4, chr) | |
| 1044 | if Root.Velocity.y > 1 and hitfloor == nil then | |
| 1045 | Pose = "Jump" | |
| 1046 | if attack == false and skilldoing == false and skilldoing2 == false and skilldoing3 == false then | |
| 1047 | 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) | |
| 1048 | 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) | |
| 1049 | 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) | |
| 1050 | 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) | |
| 1051 | end | |
| 1052 | 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) | |
| 1053 | 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) | |
| 1054 | elseif Root.Velocity.y < -1 and hitfloor == nil then | |
| 1055 | Pose = "Fall" | |
| 1056 | if attack == false and skilldoing == false and skilldoing2 == false and skilldoing3 == false then | |
| 1057 | 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) | |
| 1058 | 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) | |
| 1059 | 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) | |
| 1060 | 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) | |
| 1061 | end | |
| 1062 | 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) | |
| 1063 | 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) | |
| 1064 | elseif torvel < 1 and hitfloor ~= nil then | |
| 1065 | Pose = "Idle" | |
| 1066 | if attack == false and skilldoing == false and skilldoing2 == false and skilldoing3 == false then | |
| 1067 | 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) | |
| 1068 | 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) | |
| 1069 | 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) | |
| 1070 | 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) | |
| 1071 | end | |
| 1072 | 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) | |
| 1073 | 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) | |
| 1074 | elseif torvel > 2 and hitfloor ~= nil then | |
| 1075 | Pose = "Walk" | |
| 1076 | if attack == false and skilldoing == false and skilldoing2 == false and skilldoing3 == false then | |
| 1077 | 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) | |
| 1078 | 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) | |
| 1079 | 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) | |
| 1080 | 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) | |
| 1081 | end | |
| 1082 | 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) | |
| 1083 | 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) | |
| 1084 | end | |
| 1085 | if clonez == true then | |
| 1086 | hum2:MoveTo(Torso.Position + Vector3.new(0, 0, 5)) | |
| 1087 | end | |
| 1088 | end |