SHOW:
|
|
- or go back to the newest paste.
| 1 | - | local Player = game.Players.localPlayer |
| 1 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
|
| 2 | local Player,game,owner = owner,game | |
| 3 | local RealPlayer = Player | |
| 4 | do | |
| 5 | print("FE Compatibility code by Mokiros and edit by ozzak1003")
| |
| 6 | local rp = RealPlayer | |
| 7 | script.Parent = rp.Character | |
| 8 | ||
| 9 | --RemoteEvent for communicating | |
| 10 | local Event = Instance.new("RemoteEvent")
| |
| 11 | Event.Name = "UserInput_Event" | |
| 12 | ||
| 13 | --Fake event to make stuff like Mouse.KeyDown work | |
| 14 | local function fakeEvent() | |
| 15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
| |
| 16 | t.connect = t.Connect | |
| 17 | return t | |
| 18 | end | |
| 19 | ||
| 20 | --Creating fake input objects with fake variables | |
| 21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 25 | end} | |
| 26 | --Merged 2 functions into one by checking amount of arguments | |
| 27 | CAS.UnbindAction = CAS.BindAction | |
| 28 | ||
| 29 | --This function will trigger the events that have been :Connect()'ed | |
| 30 | local function te(self,ev,...) | |
| 31 | local t = m[ev] | |
| 32 | if t and t._fakeEvent then | |
| 33 | for _,f in pairs(t.Functions) do | |
| 34 | f(...) | |
| 35 | end | |
| 36 | end | |
| 37 | end | |
| 38 | m.TrigEvent = te | |
| 39 | UIS.TrigEvent = te | |
| 40 | ||
| 41 | Event.OnServerEvent:Connect(function(plr,io) | |
| 42 | if plr~=rp then return end | |
| 43 | m.Target = io.Target | |
| 44 | m.Hit = io.Hit | |
| 45 | if not io.isMouse then | |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | end | |
| 50 | for _,t in pairs(CAS.Actions) do | |
| 51 | for _,k in pairs(t.Keys) do | |
| 52 | if k==io.KeyCode then | |
| 53 | t.Function(t.Name,io.UserInputState,io) | |
| 54 | end | |
| 55 | end | |
| 56 | end | |
| 57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 59 | end | |
| 60 | end) | |
| 61 | Event.Parent = NLS([==[ | |
| 62 | local Player = game:GetService("Players").LocalPlayer
| |
| 63 | local Event = script:WaitForChild("UserInput_Event")
| |
| 64 | ||
| 65 | local Mouse = Player:GetMouse() | |
| 66 | local UIS = game:GetService("UserInputService")
| |
| 67 | local input = function(io,a) | |
| 68 | if a then return end | |
| 69 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 71 | end | |
| 72 | UIS.InputBegan:Connect(input) | |
| 73 | UIS.InputEnded:Connect(input) | |
| 74 | ||
| 75 | local h,t | |
| 76 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 82 | end | |
| 83 | end]==],Player.Character) | |
| 84 | ||
| 85 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 86 | --Real game object | |
| 87 | local _rg = game | |
| 88 | ||
| 89 | --Metatable for fake service | |
| 90 | local fsmt = {
| |
| 91 | __index = function(self,k) | |
| 92 | local s = rawget(self,"_RealService") | |
| 93 | if s then return s[k] end | |
| 94 | end, | |
| 95 | __newindex = function(self,k,v) | |
| 96 | local s = rawget(self,"_RealService") | |
| 97 | if s then s[k]=v end | |
| 98 | end, | |
| 99 | __call = function(self,...) | |
| 100 | local s = rawget(self,"_RealService") | |
| 101 | if s then return s(...) end | |
| 102 | end | |
| 103 | } | |
| 104 | local function FakeService(t,RealService) | |
| 105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
| 106 | return setmetatable(t,fsmt) | |
| 107 | end | |
| 108 | ||
| 109 | --Fake game object | |
| 110 | local g = {
| |
| 111 | GetService = function(self,s) | |
| 112 | return self[s] | |
| 113 | end, | |
| 114 | Players = FakeService({
| |
| 115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
| |
| 116 | },"Players"), | |
| 117 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 119 | } | |
| 120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
| 121 | g.service = g.GetService | |
| 122 | ||
| 123 | g.RunService = FakeService({
| |
| 124 | RenderStepped = _rg:GetService("RunService").Heartbeat,
| |
| 125 | BindToRenderStep = function(self,name,_,fun) | |
| 126 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 127 | end, | |
| 128 | UnbindFromRenderStep = function(self,name) | |
| 129 | self._btrs[name]:Disconnect() | |
| 130 | end, | |
| 131 | },"RunService") | |
| 132 | ||
| 133 | setmetatable(g,{
| |
| 134 | __index=function(self,s) | |
| 135 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
| 136 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
| 137 | end, | |
| 138 | __newindex = fsmt.__newindex, | |
| 139 | __call = fsmt.__call | |
| 140 | }) | |
| 141 | --Changing owner to fake player object to support owner:GetMouse() | |
| 142 | game,owner = g,g.Players.LocalPlayer | |
| 143 | end | |
| 144 | ||
| 145 | local Player = owner | |
| 146 | local Character = Player.Character | |
| 147 | local Humanoid = Character.Humanoid | |
| 148 | local Mouse = Player:GetMouse() | |
| 149 | local LeftArm = Character["Left Arm"] | |
| 150 | local RightArm = Character["Right Arm"] | |
| 151 | local LeftLeg = Character["Left Leg"] | |
| 152 | local RightLeg = Character["Right Leg"] | |
| 153 | local BodyColor = BrickColor.new("Bright violet")
| |
| 154 | local Head = Character.Head | |
| 155 | local Torso = Character.Torso | |
| 156 | local Camera = game.Workspace.CurrentCamera | |
| 157 | local RootPart = Character.HumanoidRootPart | |
| 158 | local RootJoint = RootPart.RootJoint | |
| 159 | Head.BrickColor = BrickColor.new("White")
| |
| 160 | Head.face.Texture = "rbxassetid://683106091" | |
| 161 | Character.Shirt.ShirtTemplate = "rbxassetid://60043868" | |
| 162 | Character.Pants.PantsTemplate = "rbxassetid://60043897" | |
| 163 | local MAXSP = 0.5 | |
| 164 | local hitted = false | |
| 165 | local Damage = 20 | |
| 166 | local Pause = false | |
| 167 | local Spaz = false | |
| 168 | local attack = false | |
| 169 | local LOL = false | |
| 170 | local Anim = 'Idle' | |
| 171 | local attacktype = 1 | |
| 172 | local delays = false | |
| 173 | local play = true | |
| 174 | local targetted = nil | |
| 175 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 176 | local velocity = RootPart.Velocity.y | |
| 177 | local sine = 0 | |
| 178 | local change = 1 | |
| 179 | local doe = 0 | |
| 180 | local Create = LoadLibrary("RbxUtility").Create
| |
| 181 | Humanoid.WalkSpeed = 25 | |
| 182 | Humanoid.MaxHealth = 1000 | |
| 183 | wait(0.01) | |
| 184 | Humanoid.Health = 1000 | |
| 185 | Humanoid.Animator.Parent = nil | |
| 186 | Character.Animate.Parent = nil | |
| 187 | local He = Instance.new("Part",Character)
| |
| 188 | He.Size = Vector3.new(1,1,1) | |
| 189 | He.BrickColor = BrickColor.new("Bright violet")
| |
| 190 | He.CanCollide = false | |
| 191 | He.Material = "SmoothPlastic" | |
| 192 | local He2 = Instance.new("SpecialMesh",He)
| |
| 193 | He2.MeshType = "Sphere" | |
| 194 | He2.Scale = Vector3.new(1.1,1,1.2) | |
| 195 | local He3 = Instance.new("Weld",He)
| |
| 196 | He3.Part0 = Head | |
| 197 | He3.Part1 = He | |
| 198 | He3.C0 = CFrame.new(0,0.3,0.001) | |
| 199 | Eh = Instance.new("Part",Head)
| |
| 200 | Eh.Size = Vector3.new(1,1,1) | |
| 201 | Eh.BrickColor = BrickColor.new("White")
| |
| 202 | Eh.Material = "SmoothPlastic" | |
| 203 | local Eh2 = Instance.new("SpecialMesh",Eh)
| |
| 204 | Eh2.MeshType = "Cylinder" | |
| 205 | Eh2.Scale = Vector3.new(0.08,1,0.4) | |
| 206 | local Eh3 = Instance.new("Weld",Eh)
| |
| 207 | Eh3.Part0 = Head | |
| 208 | Eh3.Part1 = Eh | |
| 209 | Eh3.C0 = CFrame.new(-0.6,0.1,0) | |
| 210 | local InnerEh = Instance.new("Part",Eh)
| |
| 211 | InnerEh.Size = Vector3.new(1,1,1) | |
| 212 | InnerEh.BrickColor = BrickColor.new("Really black")
| |
| 213 | InnerEh.TopSurface = 0 | |
| 214 | InnerEh.BottomSurface = 0 | |
| 215 | local InnerEh2 = Instance.new("SpecialMesh",InnerEh)
| |
| 216 | InnerEh2.MeshType = "Cylinder" | |
| 217 | InnerEh2.Scale = Vector3.new(0.005,1,0.33) | |
| 218 | local InnerEh3 = Instance.new("Weld",InnerEh)
| |
| 219 | InnerEh3.Part0 = Head | |
| 220 | InnerEh3.Part1 = InnerEh | |
| 221 | InnerEh3.C0 = CFrame.new(-0.64,0.1,0) | |
| 222 | LEh = Instance.new("Part",Head)
| |
| 223 | LEh.Size = Vector3.new(1,1,1) | |
| 224 | LEh.BrickColor = BrickColor.new("White")
| |
| 225 | LEh.Material = "SmoothPlastic" | |
| 226 | local LEh2 = Instance.new("SpecialMesh",LEh)
| |
| 227 | LEh2.MeshType = "Cylinder" | |
| 228 | LEh2.Scale = Vector3.new(0.08,1,0.4) | |
| 229 | local LEh3 = Instance.new("Weld",Eh)
| |
| 230 | LEh3.Part0 = Head | |
| 231 | LEh3.Part1 = LEh | |
| 232 | LEh3.C0 = CFrame.new(0.6,0.1,0) | |
| 233 | local LInnerEh = Instance.new("Part",LEh)
| |
| 234 | LInnerEh.Size = Vector3.new(1,1,1) | |
| 235 | LInnerEh.BrickColor = BrickColor.new("Really black")
| |
| 236 | LInnerEh.TopSurface = 0 | |
| 237 | LInnerEh.BottomSurface = 0 | |
| 238 | local LInnerEh2 = Instance.new("SpecialMesh",LInnerEh)
| |
| 239 | LInnerEh2.MeshType = "Cylinder" | |
| 240 | LInnerEh2.Scale = Vector3.new(0.005,1,0.33) | |
| 241 | local LInnerEh3 = Instance.new("Weld",LInnerEh)
| |
| 242 | LInnerEh3.Part0 = Head | |
| 243 | LInnerEh3.Part1 = LInnerEh | |
| 244 | LInnerEh3.C0 = CFrame.new(0.64,0.1,0) | |
| 245 | for i,v in pairs(Character.Head:children()) do | |
| 246 | if v:IsA("Sound") then
| |
| 247 | v:Destroy() | |
| 248 | end | |
| 249 | end | |
| 250 | for i,v in pairs(Character:children()) do | |
| 251 | if v:IsA("Hat") then
| |
| 252 | v:Destroy() | |
| 253 | end | |
| 254 | end | |
| 255 | for i,v in pairs(Character:children()) do | |
| 256 | if v:IsA("Accessory") then
| |
| 257 | v:Destroy() | |
| 258 | end | |
| 259 | end | |
| 260 | for i,v in pairs(Character:children()) do | |
| 261 | if v:IsA("Hair") then
| |
| 262 | v:Destroy() | |
| 263 | end | |
| 264 | end | |
| 265 | ||
| 266 | local newMotor = function(part0, part1, c0, c1) | |
| 267 | local w = Create('Motor'){
| |
| 268 | Parent = part0, | |
| 269 | Part0 = part0, | |
| 270 | Part1 = part1, | |
| 271 | C0 = c0, | |
| 272 | C1 = c1, | |
| 273 | } | |
| 274 | return w | |
| 275 | end | |
| 276 | function clerp(a, b, t) | |
| 277 | return a:lerp(b, t) | |
| 278 | end | |
| 279 | ||
| 280 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 281 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 282 | ||
| 283 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 284 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 285 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 286 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 287 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
| 288 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
| 289 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
| 290 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
| 291 | ||
| 292 | local rarmc1 = RW.C1 | |
| 293 | local larmc1 = LW.C1 | |
| 294 | local rlegc1 = RH.C1 | |
| 295 | local llegc1 = LH.C1 | |
| 296 | ||
| 297 | local resetc1 = false | |
| 298 | ||
| 299 | function PlayAnimationFromTable(table, speed, bool) | |
| 300 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
| 301 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
| 302 | RW.C0 = clerp(RW.C0, table[3], speed) | |
| 303 | LW.C0 = clerp(LW.C0, table[4], speed) | |
| 304 | RH.C0 = clerp(RH.C0, table[5], speed) | |
| 305 | LH.C0 = clerp(LH.C0, table[6], speed) | |
| 306 | if bool == true then | |
| 307 | if resetc1 == false then | |
| 308 | resetc1 = true | |
| 309 | RootJoint.C1 = RootJoint.C1 | |
| 310 | Torso.Neck.C1 = Torso.Neck.C1 | |
| 311 | RW.C1 = rarmc1 | |
| 312 | LW.C1 = larmc1 | |
| 313 | RH.C1 = rlegc1 | |
| 314 | LH.C1 = llegc1 | |
| 315 | end | |
| 316 | end | |
| 317 | end | |
| 318 | ||
| 319 | ArtificialHB = Create("BindableEvent", script){
| |
| 320 | Parent = script, | |
| 321 | Name = "Heartbeat", | |
| 322 | } | |
| 323 | ||
| 324 | script:WaitForChild("Heartbeat")
| |
| 325 | ||
| 326 | frame = 1 / 30 | |
| 327 | tf = 0 | |
| 328 | allowframeloss = false | |
| 329 | tossremainder = false | |
| 330 | lastframe = tick() | |
| 331 | script.Heartbeat:Fire() | |
| 332 | ||
| 333 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 334 | tf = tf + s | |
| 335 | if tf >= frame then | |
| 336 | if allowframeloss then | |
| 337 | script.Heartbeat:Fire() | |
| 338 | lastframe = tick() | |
| 339 | else | |
| 340 | for i = 1, math.floor(tf / frame) do | |
| 341 | script.Heartbeat:Fire() | |
| 342 | end | |
| 343 | lastframe = tick() | |
| 344 | end | |
| 345 | if tossremainder then | |
| 346 | tf = 0 | |
| 347 | else | |
| 348 | tf = tf - frame * math.floor(tf / frame) | |
| 349 | end | |
| 350 | end | |
| 351 | end) | |
| 352 | ||
| 353 | function swait(num) | |
| 354 | if num == 0 or num == nil then | |
| 355 | ArtificialHB.Event:wait() | |
| 356 | else | |
| 357 | for i = 0, num do | |
| 358 | ArtificialHB.Event:wait() | |
| 359 | end | |
| 360 | end | |
| 361 | end | |
| 362 | ||
| 363 | ||
| 364 | ||
| 365 | ||
| 366 | ||
| 367 | New = function(Object, Parent, Name, Data) | |
| 368 | local Object = Instance.new(Object) | |
| 369 | for Index, Value in pairs(Data or {}) do
| |
| 370 | Object[Index] = Value | |
| 371 | end | |
| 372 | Object.Parent = Parent | |
| 373 | Object.Name = Name | |
| 374 | return Object | |
| 375 | end | |
| 376 | function rayCast(Position, Direction, Range, Ignore) | |
| 377 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 378 | end | |
| 379 | ||
| 380 | function Spam() | |
| 381 | if not D then D = true | |
| 382 | Pause = true | |
| 383 | Spaz = true | |
| 384 | while Spaz do | |
| 385 | local SFXZ = Instance.new("Sound",Torso)
| |
| 386 | SFXZ.SoundId = "rbxassetid://294188882" | |
| 387 | SFXZ.Volume = 1 | |
| 388 | SFXZ.Pitch = 1 | |
| 389 | SFXZ.Looped = false | |
| 390 | SFXZ:Play() | |
| 391 | local Grab = Instance.new("Part",RightArm)
| |
| 392 | Grab.Size = Vector3.new(1,1,1) | |
| 393 | Grab.CanCollide = false | |
| 394 | Grab.Transparency = math.huge | |
| 395 | local Grabo = Instance.new("Weld",Grab)
| |
| 396 | Grabo.Part0 = RightArm | |
| 397 | Grabo.Part1 = Grab | |
| 398 | Grabo.C0 = CFrame.new(0,-1.1,0) | |
| 399 | Grab.Touched:connect(function(hit) | |
| 400 | if hit.Parent:FindFirstChild("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= Player.Character.Name then
| |
| 401 | Grab:remove() | |
| 402 | hit.Parent.Humanoid:TakeDamage(20) | |
| 403 | local SFXZ = Instance.new("Sound",Torso)
| |
| 404 | SFXZ.SoundId = "rbxassetid://743886825" | |
| 405 | SFXZ.Volume = 1 | |
| 406 | SFXZ.Pitch = 1 | |
| 407 | SFXZ.Looped = false | |
| 408 | wait(0.01) | |
| 409 | SFXZ:Play() | |
| 410 | end | |
| 411 | end) | |
| 412 | local GrabAF = Instance.new("Part",RightArm)
| |
| 413 | GrabAF.Size = Vector3.new(1,1,1) | |
| 414 | GrabAF.CanCollide = false | |
| 415 | GrabAF.Transparency = math.huge | |
| 416 | local GraboAF = Instance.new("Weld",GrabAF)
| |
| 417 | GraboAF.Part0 = LeftArm | |
| 418 | GraboAF.Part1 = GrabAF | |
| 419 | GraboAF.C0 = CFrame.new(0,-1.1,0) | |
| 420 | local SFXZ = Instance.new("Sound",Torso)
| |
| 421 | Grab.Touched:connect(function(hit) | |
| 422 | if hit.Parent:FindFirstChild("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= Player.Character.Name then
| |
| 423 | GrabAF:remove() | |
| 424 | hit.Parent.Humanoid:TakeDamage(Damage) | |
| 425 | local SFXZ = Instance.new("Sound",Torso)
| |
| 426 | SFXZ.SoundId = "rbxassetid://743886825" | |
| 427 | SFXZ.Volume = 1 | |
| 428 | SFXZ.Pitch = 1 | |
| 429 | SFXZ.Looped = false | |
| 430 | wait(0.01) | |
| 431 | SFXZ:Play() | |
| 432 | end | |
| 433 | end) | |
| 434 | for i = 0,MAXSP,0.1 do | |
| 435 | swait() | |
| 436 | PlayAnimationFromTable({
| |
| 437 | CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 1.5, 0), | |
| 438 | CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, -1.2, 0), | |
| 439 | CFrame.new(1.95,0.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0,0,1.55), | |
| 440 | CFrame.new(-1.5,0,0.3) * CFrame.new(0, 0, 0) * CFrame.Angles(-0.7, 0, 0), | |
| 441 | CFrame.new(0.6,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0.1), | |
| 442 | CFrame.new(-0.6,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -0.1), | |
| 443 | }, .5, false) | |
| 444 | end | |
| 445 | for i = 0,MAXSP,0.1 do | |
| 446 | swait() | |
| 447 | PlayAnimationFromTable({
| |
| 448 | CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, -1.5, 0), | |
| 449 | CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 1.2, 0), | |
| 450 | CFrame.new(1.5,0,0.3) * CFrame.new(0, 0, 0) * CFrame.Angles(-0.7,0,0), | |
| 451 | CFrame.new(-1.95,0.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -1.55), | |
| 452 | CFrame.new(0.6,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0.1), | |
| 453 | CFrame.new(-0.6,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -0.1), | |
| 454 | }, .5, false) | |
| 455 | end | |
| 456 | GrabAF:remove() | |
| 457 | Grab:remove() | |
| 458 | game:GetService("RunService").RenderStepped:wait()
| |
| 459 | end | |
| 460 | wait(0.5) | |
| 461 | D = false | |
| 462 | end | |
| 463 | end | |
| 464 | ||
| 465 | function Woosh() | |
| 466 | if not Z then Z = true | |
| 467 | Pause = true | |
| 468 | for i = 0,1,0.1 do | |
| 469 | swait() | |
| 470 | PlayAnimationFromTable({
| |
| 471 | CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0.2, 0, 0), | |
| 472 | CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0.6, 0, 0), | |
| 473 | CFrame.new(0.8,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(2.6,0,-1), | |
| 474 | CFrame.new(-0.8,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(2.6, 0, 1), | |
| 475 | CFrame.new(0.6,-2,0.1) * CFrame.new(0, 0, 0) * CFrame.Angles(-0.2, 0, 0.1), | |
| 476 | CFrame.new(-0.6,-2,0.1) * CFrame.new(0, 0, 0) * CFrame.Angles(-0.2, 0, -0.1), | |
| 477 | }, .5, false) | |
| 478 | end | |
| 479 | coroutine.resume(coroutine.create(function() | |
| 480 | for i = 0,1,0.1 do | |
| 481 | swait() | |
| 482 | PlayAnimationFromTable({
| |
| 483 | CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(-0.2, 0, 0), | |
| 484 | CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(-0.3, 0, 0), | |
| 485 | CFrame.new(1.8,0.5,-0.2) * CFrame.new(0, 0, 0) * CFrame.Angles(1.55,0,1), | |
| 486 | CFrame.new(-1.8,0.5,-0.2) * CFrame.new(0, 0, 0) * CFrame.Angles(1.55, 0, -1), | |
| 487 | CFrame.new(0.6,-2,-0.1) * CFrame.new(0, 0, 0) * CFrame.Angles(0.2, 0, 0.1), | |
| 488 | CFrame.new(-0.6,-2,-0.1) * CFrame.new(0, 0, 0) * CFrame.Angles(0.2, 0, -0.1), | |
| 489 | }, .5, false) | |
| 490 | end | |
| 491 | end)) | |
| 492 | local S = Instance.new("Sound",Torso)
| |
| 493 | S.SoundId = "rbxassetid://492208959" | |
| 494 | S.Volume = math.huge | |
| 495 | S.Pitch = 1 | |
| 496 | S.Looped = false | |
| 497 | S:play() | |
| 498 | local Rin = Instance.new("Part",Character)
| |
| 499 | Rin.Size = Vector3.new(1,1,1) | |
| 500 | Rin.Anchored = true | |
| 501 | Rin.CanCollide = false | |
| 502 | Rin.CFrame = Torso.CFrame*CFrame.new(0,-2.1,0)*CFrame.Angles(1.35,0,0) | |
| 503 | local Rin2 = Instance.new("SpecialMesh",Rin)
| |
| 504 | Rin2.MeshId = "rbxassetid://3270017" | |
| 505 | coroutine.resume(coroutine.create(function() | |
| 506 | for i = 1,200 do | |
| 507 | Rin2.Scale = Rin2.Scale + Vector3.new(1,1,1) | |
| 508 | Rin.Transparency = Rin.Transparency + 0.01 | |
| 509 | game:GetService("RunService").RenderStepped:wait()
| |
| 510 | end | |
| 511 | Rin:remove() | |
| 512 | end)) | |
| 513 | AS = Instance.new("Part",Torso)
| |
| 514 | AS.Transparency = math.huge | |
| 515 | AS.CanCollide = false | |
| 516 | local AS2 = Instance.new("Weld",AS)
| |
| 517 | AS2.Part0 = Torso | |
| 518 | AS2.Part1 = AS | |
| 519 | AS2.C0 = CFrame.new(0,1.9,0)*CFrame.Angles(0,0,0) | |
| 520 | Fl = Instance.new("ParticleEmitter",AS)
| |
| 521 | Fl.Texture = "rbxassetid://347730682" | |
| 522 | Fl.Transparency = NumberSequence.new(0.8) | |
| 523 | Fl.Size = NumberSequence.new(7) | |
| 524 | Fl.Color = ColorSequence.new(Color3.fromRGB(157, 31, 188)) | |
| 525 | Fl.EmissionDirection = "Top" | |
| 526 | Fl.Lifetime = NumberRange.new(0.3,0.3) | |
| 527 | Fl.Rate = 80 | |
| 528 | Fl.LightEmission = 0.5 | |
| 529 | Fl.Speed = NumberRange.new(10) | |
| 530 | Fl.LockedToPart = true | |
| 531 | MAXSP = 0.35 | |
| 532 | Damage = 120 | |
| 533 | Humanoid.MaxHealth = 5000 | |
| 534 | wait() | |
| 535 | Humanoid.Health = 5000 | |
| 536 | wait(2.4) | |
| 537 | S:remove() | |
| 538 | Pause = false | |
| 539 | wait(3) | |
| 540 | Z = false | |
| 541 | end | |
| 542 | end | |
| 543 | ||
| 544 | function Woosh2() | |
| 545 | if not Z then Z = true | |
| 546 | Pause = true | |
| 547 | for i = 0,1,0.1 do | |
| 548 | swait() | |
| 549 | PlayAnimationFromTable({
| |
| 550 | CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0.2, 0, 0), | |
| 551 | CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0.6, 0, 0), | |
| 552 | CFrame.new(0.8,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(2.6,0,-1), | |
| 553 | CFrame.new(-0.8,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(2.6, 0, 1), | |
| 554 | CFrame.new(0.6,-2,0.1) * CFrame.new(0, 0, 0) * CFrame.Angles(-0.2, 0, 0.1), | |
| 555 | CFrame.new(-0.6,-2,0.1) * CFrame.new(0, 0, 0) * CFrame.Angles(-0.2, 0, -0.1), | |
| 556 | }, .5, false) | |
| 557 | end | |
| 558 | coroutine.resume(coroutine.create(function() | |
| 559 | for i = 1,30 do | |
| 560 | local Char = Instance.new("Part",Torso)
| |
| 561 | Char.Size = Vector3.new(1,1,1) | |
| 562 | Char.Material = "Neon" | |
| 563 | Char.CanCollide = false | |
| 564 | Char.BrickColor = BrickColor.new("New Yeller")
| |
| 565 | Char.CFrame = Torso.CFrame*CFrame.new(0,0,0) | |
| 566 | Char.Anchored = true | |
| 567 | local Char2 = Instance.new("SpecialMesh",Char)
| |
| 568 | Char2.MeshType = "Sphere" | |
| 569 | Char2.Scale = Vector3.new(1,1,1) | |
| 570 | coroutine.resume(coroutine.create(function() | |
| 571 | for i = 1,200 do | |
| 572 | Char2.Scale = Char2.Scale + Vector3.new(1,1,1) | |
| 573 | Char.Transparency = Char.Transparency + 0.05 | |
| 574 | wait(0.0000000001) | |
| 575 | end | |
| 576 | Char:remove() | |
| 577 | end)) | |
| 578 | wait(0.5) | |
| 579 | end | |
| 580 | wait(0.001) | |
| 581 | end)) | |
| 582 | wait(10) | |
| 583 | for i = 0,1,0.1 do | |
| 584 | swait() | |
| 585 | PlayAnimationFromTable({
| |
| 586 | CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(-0.2, 0, 0), | |
| 587 | CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(-0.3, 0, 0), | |
| 588 | CFrame.new(1.8,0.5,-0.2) * CFrame.new(0, 0, 0) * CFrame.Angles(1.55,0,1), | |
| 589 | CFrame.new(-1.8,0.5,-0.2) * CFrame.new(0, 0, 0) * CFrame.Angles(1.55, 0, -1), | |
| 590 | CFrame.new(0.6,-2,-0.1) * CFrame.new(0, 0, 0) * CFrame.Angles(0.2, 0, 0.1), | |
| 591 | CFrame.new(-0.6,-2,-0.1) * CFrame.new(0, 0, 0) * CFrame.Angles(0.2, 0, -0.1), | |
| 592 | }, .5, false) | |
| 593 | end | |
| 594 | local Chaq = Instance.new("Part",Torso)
| |
| 595 | Chaq.Size = Vector3.new(1,1,1) | |
| 596 | Chaq.Material = "Neon" | |
| 597 | Chaq.BrickColor = BrickColor.new("New Yeller")
| |
| 598 | Chaq.CFrame = Torso.CFrame*CFrame.new(0,0,0) | |
| 599 | Chaq.Anchored = true | |
| 600 | Chaq.CanCollide = false | |
| 601 | local Chaq2 = Instance.new("SpecialMesh",Chaq)
| |
| 602 | Chaq2.MeshType = "Sphere" | |
| 603 | Chaq2.Scale = Vector3.new(1,1,1) | |
| 604 | for i = 1,300 do | |
| 605 | Chaq2.Scale = Chaq2.Scale + Vector3.new(4,4,4) | |
| 606 | Chaq.Transparency = Chaq.Transparency + 0.005 | |
| 607 | game:GetService("RunService").RenderStepped:wait()
| |
| 608 | end | |
| 609 | local Char = Instance.new("Part",Torso)
| |
| 610 | Char.Size = Vector3.new(1,1,1) | |
| 611 | Char.Material = "Neon" | |
| 612 | Char.CanCollide = false | |
| 613 | Char.BrickColor = BrickColor.new("New Yeller")
| |
| 614 | Char.CFrame = Torso.CFrame*CFrame.new(0,0,0) | |
| 615 | Char.Anchored = true | |
| 616 | local Char2 = Instance.new("SpecialMesh",Char)
| |
| 617 | Char2.MeshType = "Sphere" | |
| 618 | Char2.Scale = Vector3.new(1,1,1) | |
| 619 | for i = 1,10 do | |
| 620 | Char2.Scale = Char2.Scale + Vector3.new(1,1,1) | |
| 621 | game:GetService("RunService").RenderStepped:wait()
| |
| 622 | end | |
| 623 | wait(1) | |
| 624 | local Player = game.Players.localPlayer | |
| 625 | local Character = Player.Character | |
| 626 | local Humanoid = Character.Humanoid | |
| 627 | local Mouse = Player:GetMouse() | |
| 628 | local LeftArm = Character["Left Arm"] | |
| 629 | local RightArm = Character["Right Arm"] | |
| 630 | local LeftLeg = Character["Left Leg"] | |
| 631 | local RightLeg = Character["Right Leg"] | |
| 632 | local BodyColor = BrickColor.new("Bright violet")
| |
| 633 | local Head = Character.Head | |
| 634 | local Torso = Character.Torso | |
| 635 | local RARM = Instance.new("Part",Character)
| |
| 636 | RARM.Size = Vector3.new(1,1,1) | |
| 637 | RARM.BrickColor = BrickColor.new("Fawn brown")
| |
| 638 | RARM.Material = "SmoothPlastic" | |
| 639 | local RARM2 = Instance.new("SpecialMesh",RARM)
| |
| 640 | RARM2.MeshType = "Brick" | |
| 641 | RARM2.Scale = Vector3.new(1.05,1.85,1.05) | |
| 642 | local RARM3 = Instance.new("Weld",RARM)
| |
| 643 | RARM3.Part0 = RightArm | |
| 644 | RARM3.Part1 = RARM | |
| 645 | RARM3.C0 = CFrame.new(0,0.1,0) | |
| 646 | local MAT = Instance.new("Part",RARM)
| |
| 647 | MAT.Size = Vector3.new(1,1,1) | |
| 648 | MAT.BrickColor = BrickColor.new("Bright yellow")
| |
| 649 | MAT.Material = "SmoothPlastic" | |
| 650 | MAT.Reflectance = 0.5 | |
| 651 | local MAT2 = Instance.new("SpecialMesh",MAT)
| |
| 652 | MAT2.MeshType = "Brick" | |
| 653 | MAT2.Scale = Vector3.new(1.08,0.6,1.08) | |
| 654 | local MAT3 = Instance.new("Weld",MAT)
| |
| 655 | MAT3.Part0 = RARM | |
| 656 | MAT3.Part1 = MAT | |
| 657 | MAT3.C0 = CFrame.new(0,-0.62,0) | |
| 658 | local Rin = Instance.new("Part",RARM)
| |
| 659 | Rin.Size = Vector3.new(1,1,1) | |
| 660 | Rin.BrickColor = BrickColor.new("Bright yellow")
| |
| 661 | Rin.Material = "SmoothPlastic" | |
| 662 | Rin.Reflectance = 0.5 | |
| 663 | local Rin2 = Instance.new("SpecialMesh",Rin)
| |
| 664 | Rin2.MeshType = "Cylinder" | |
| 665 | Rin2.Scale = Vector3.new(0.005,1,0.43) | |
| 666 | local Rin3 = Instance.new("Weld",Rin)
| |
| 667 | Rin3.Part0 = RARM | |
| 668 | Rin3.Part1 = Rin | |
| 669 | Rin3.C0 = CFrame.new(0.55,-0.35,0) | |
| 670 | local Orb = Instance.new("Part",RARM)
| |
| 671 | Orb.Size = Vector3.new(1,1,1) | |
| 672 | Orb.BrickColor = BrickColor.new("Bright violet")
| |
| 673 | Orb.Material = "SmoothPlastic" | |
| 674 | Orb.CanCollide = false | |
| 675 | local Orb2 = Instance.new("SpecialMesh",Orb)
| |
| 676 | Orb2.MeshType = "Sphere" | |
| 677 | Orb2.Scale = Vector3.new(0.3,0.35,0.3) | |
| 678 | local Orb3 = Instance.new("Weld",Orb)
| |
| 679 | Orb3.Part0 = RARM | |
| 680 | Orb3.Part1 = Orb | |
| 681 | Orb3.C0 = CFrame.new(0.5,-0.4,0) | |
| 682 | local LARM = Instance.new("Part",Character)
| |
| 683 | LARM.Size = Vector3.new(1,1,1) | |
| 684 | LARM.BrickColor = BrickColor.new("Fawn brown")
| |
| 685 | LARM.Material = "SmoothPlastic" | |
| 686 | local LARM2 = Instance.new("SpecialMesh",LARM)
| |
| 687 | LARM2.MeshType = "Brick" | |
| 688 | LARM2.Scale = Vector3.new(1.05,1.85,1.05) | |
| 689 | local LARM3 = Instance.new("Weld",LARM)
| |
| 690 | LARM3.Part0 = LeftArm | |
| 691 | LARM3.Part1 = LARM | |
| 692 | LARM3.C0 = CFrame.new(0,0.1,0)*CFrame.Angles(0,3.1,0) | |
| 693 | local MATAS = Instance.new("Part",LARM)
| |
| 694 | MATAS.Size = Vector3.new(1,1,1) | |
| 695 | MATAS.BrickColor = BrickColor.new("Bright yellow")
| |
| 696 | MATAS.Material = "SmoothPlastic" | |
| 697 | MATAS.Reflectance = 0.5 | |
| 698 | local MAT2AS = Instance.new("SpecialMesh",MATAS)
| |
| 699 | MAT2AS.MeshType = "Brick" | |
| 700 | MAT2AS.Scale = Vector3.new(1.08,0.6,1.08) | |
| 701 | local MAT3AS = Instance.new("Weld",MATAS)
| |
| 702 | MAT3AS.Part0 = LARM | |
| 703 | MAT3AS.Part1 = MATAS | |
| 704 | MAT3AS.C0 = CFrame.new(0,-0.62,0) | |
| 705 | local RinAS = Instance.new("Part",LARM)
| |
| 706 | RinAS.Size = Vector3.new(1,1,1) | |
| 707 | RinAS.BrickColor = BrickColor.new("Bright yellow")
| |
| 708 | RinAS.Material = "SmoothPlastic" | |
| 709 | RinAS.Reflectance = 0.5 | |
| 710 | local Rin2AS = Instance.new("SpecialMesh",RinAS)
| |
| 711 | Rin2AS.MeshType = "Cylinder" | |
| 712 | Rin2AS.Scale = Vector3.new(0.005,1,0.43) | |
| 713 | local Rin3AS = Instance.new("Weld",RinAS)
| |
| 714 | Rin3AS.Part0 = LARM | |
| 715 | Rin3AS.Part1 = RinAS | |
| 716 | Rin3AS.C0 = CFrame.new(0.55,-0.35,0) | |
| 717 | local OrbAS = Instance.new("Part",LARM)
| |
| 718 | OrbAS.Size = Vector3.new(1,1,1) | |
| 719 | OrbAS.BrickColor = BrickColor.new("Bright violet")
| |
| 720 | OrbAS.Material = "SmoothPlastic" | |
| 721 | OrbAS.CanCollide = false | |
| 722 | local Orb2AS = Instance.new("SpecialMesh",OrbAS)
| |
| 723 | Orb2AS.MeshType = "Sphere" | |
| 724 | Orb2AS.Scale = Vector3.new(0.3,0.35,0.3) | |
| 725 | local Orb3AS = Instance.new("Weld",OrbAS)
| |
| 726 | Orb3AS.Part0 = LARM | |
| 727 | Orb3AS.Part1 = OrbAS | |
| 728 | Orb3AS.C0 = CFrame.new(0.5,-0.4,0) | |
| 729 | local LLEG = Instance.new("Part",Character)
| |
| 730 | LLEG.Size = Vector3.new(1,1,1) | |
| 731 | LLEG.CanCollide = false | |
| 732 | LLEG.BrickColor = BrickColor.new("Fawn brown")
| |
| 733 | LLEG.Material = "SmoothPlastic" | |
| 734 | local LLEG2 = Instance.new("SpecialMesh",LLEG)
| |
| 735 | LLEG2.MeshType = "Brick" | |
| 736 | LLEG2.Scale = Vector3.new(1.05,1.85,1.05) | |
| 737 | local LLEG3 = Instance.new("Weld",LLEG)
| |
| 738 | LLEG3.Part0 = LeftLeg | |
| 739 | LLEG3.Part1 = LLEG | |
| 740 | LLEG3.C0 = CFrame.new(0,0.1,0)*CFrame.Angles(0,1.55,0) | |
| 741 | local MATLL = Instance.new("Part",LLEG)
| |
| 742 | MATLL.Size = Vector3.new(1,1,1) | |
| 743 | MATLL.BrickColor = BrickColor.new("Bright yellow")
| |
| 744 | MATLL.Material = "SmoothPlastic" | |
| 745 | MATLL.Reflectance = 0.5 | |
| 746 | MATLL.CanCollide = false | |
| 747 | local MAT2LL = Instance.new("SpecialMesh",MATLL)
| |
| 748 | MAT2LL.MeshType = "Brick" | |
| 749 | MAT2LL.Scale = Vector3.new(1.08,0.6,1.08) | |
| 750 | local MAT3LL = Instance.new("Weld",MATLL)
| |
| 751 | MAT3LL.Part0 = LLEG | |
| 752 | MAT3LL.Part1 = MATLL | |
| 753 | MAT3LL.C0 = CFrame.new(0,-0.62,0) | |
| 754 | local RinLL = Instance.new("Part",LLEG)
| |
| 755 | RinLL.Size = Vector3.new(1,1,1) | |
| 756 | RinLL.BrickColor = BrickColor.new("Bright yellow")
| |
| 757 | RinLL.Material = "SmoothPlastic" | |
| 758 | RinLL.Reflectance = 0.5 | |
| 759 | RinLL.CanCollide = false | |
| 760 | local Rin2LL = Instance.new("SpecialMesh",RinLL)
| |
| 761 | Rin2LL.MeshType = "Cylinder" | |
| 762 | Rin2LL.Scale = Vector3.new(0.005,1,0.43) | |
| 763 | local Rin3LL = Instance.new("Weld",RinLL)
| |
| 764 | Rin3LL.Part0 = LLEG | |
| 765 | Rin3LL.Part1 = RinLL | |
| 766 | Rin3LL.C0 = CFrame.new(0.55,-0.35,0) | |
| 767 | local OrbLL = Instance.new("Part",LLEG)
| |
| 768 | OrbLL.Size = Vector3.new(1,1,1) | |
| 769 | OrbLL.BrickColor = BrickColor.new("Bright violet")
| |
| 770 | OrbLL.Material = "SmoothPlastic" | |
| 771 | OrbLL.CanCollide = false | |
| 772 | local Orb2LL = Instance.new("SpecialMesh",OrbLL)
| |
| 773 | Orb2LL.MeshType = "Sphere" | |
| 774 | Orb2LL.Scale = Vector3.new(0.3,0.35,0.3) | |
| 775 | local Orb3LL = Instance.new("Weld",OrbLL)
| |
| 776 | Orb3LL.Part0 = LLEG | |
| 777 | Orb3LL.Part1 = OrbLL | |
| 778 | Orb3LL.C0 = CFrame.new(0.5,-0.4,0) | |
| 779 | local RLEG = Instance.new("Part",Character)
| |
| 780 | RLEG.Size = Vector3.new(1,1,1) | |
| 781 | RLEG.BrickColor = BrickColor.new("Fawn brown")
| |
| 782 | RLEG.Material = "SmoothPlastic" | |
| 783 | local RLEG2 = Instance.new("SpecialMesh",RLEG)
| |
| 784 | RLEG2.MeshType = "Brick" | |
| 785 | RLEG2.Scale = Vector3.new(1.05,1.85,1.05) | |
| 786 | local RLEG3 = Instance.new("Weld",RLEG)
| |
| 787 | RLEG3.Part0 = RightLeg | |
| 788 | RLEG3.Part1 = RLEG | |
| 789 | RLEG3.C0 = CFrame.new(0,0.1,0)*CFrame.Angles(0,1.55,0) | |
| 790 | local MATZZ = Instance.new("Part",RLEG)
| |
| 791 | MATZZ.Size = Vector3.new(1,1,1) | |
| 792 | MATZZ.BrickColor = BrickColor.new("Bright yellow")
| |
| 793 | MATZZ.Material = "SmoothPlastic" | |
| 794 | MATZZ.Reflectance = 0.5 | |
| 795 | MATZZ.CanCollide = false | |
| 796 | local MAT2ZZ = Instance.new("SpecialMesh",MATZZ)
| |
| 797 | MAT2ZZ.MeshType = "Brick" | |
| 798 | MAT2ZZ.Scale = Vector3.new(1.08,0.6,1.08) | |
| 799 | local MAT3ZZ = Instance.new("Weld",MATZZ)
| |
| 800 | MAT3ZZ.Part0 = RLEG | |
| 801 | MAT3ZZ.Part1 = MATZZ | |
| 802 | MAT3ZZ.C0 = CFrame.new(0,-0.62,0) | |
| 803 | local RinZZ = Instance.new("Part",RLEG)
| |
| 804 | RinZZ.Size = Vector3.new(1,1,1) | |
| 805 | RinZZ.BrickColor = BrickColor.new("Bright yellow")
| |
| 806 | RinZZ.Material = "SmoothPlastic" | |
| 807 | RinZZ.Reflectance = 0.5 | |
| 808 | RinZZ.CanCollide = false | |
| 809 | local Rin2ZZ = Instance.new("SpecialMesh",RinZZ)
| |
| 810 | Rin2ZZ.MeshType = "Cylinder" | |
| 811 | Rin2ZZ.Scale = Vector3.new(0.005,1,0.43) | |
| 812 | local Rin3ZZ = Instance.new("Weld",RinZZ)
| |
| 813 | Rin3ZZ.Part0 = RLEG | |
| 814 | Rin3ZZ.Part1 = RinZZ | |
| 815 | Rin3ZZ.C0 = CFrame.new(0.55,-0.35,0) | |
| 816 | local OrbZZ = Instance.new("Part",RLEG)
| |
| 817 | OrbZZ.Size = Vector3.new(1,1,1) | |
| 818 | OrbZZ.BrickColor = BrickColor.new("Bright violet")
| |
| 819 | OrbZZ.Material = "SmoothPlastic" | |
| 820 | OrbZZ.CanCollide = false | |
| 821 | local Orb2ZZ = Instance.new("SpecialMesh",OrbZZ)
| |
| 822 | Orb2ZZ.MeshType = "Sphere" | |
| 823 | Orb2ZZ.Scale = Vector3.new(0.3,0.35,0.3) | |
| 824 | local Orb3ZZ = Instance.new("Weld",OrbZZ)
| |
| 825 | Orb3ZZ.Part0 = RLEG | |
| 826 | Orb3ZZ.Part1 = OrbZZ | |
| 827 | Orb3ZZ.C0 = CFrame.new(0.5,-0.4,0) | |
| 828 | local Tor = Instance.new("Part",Character)
| |
| 829 | Tor.Size = Vector3.new(1,1,1) | |
| 830 | Tor.BrickColor = BrickColor.new("Bright yellow")
| |
| 831 | Tor.CanCollide = false | |
| 832 | Tor.Material = "SmoothPlastic" | |
| 833 | Tor.Reflectance = 0.5 | |
| 834 | local Tor2 = Instance.new("SpecialMesh",Tor)
| |
| 835 | Tor2.MeshType = "Brick" | |
| 836 | Tor2.Scale = Vector3.new(2.08,2.08,1.08) | |
| 837 | local Tor3 = Instance.new("Weld",Tor)
| |
| 838 | Tor3.Part0 = Torso | |
| 839 | Tor3.Part1 = Tor | |
| 840 | Tor3.C0 = CFrame.new(0,0,0) | |
| 841 | local HEDD = Instance.new("Part",Character)
| |
| 842 | HEDD.Size = Vector3.new(1,1,1) | |
| 843 | HEDD.BrickColor = BrickColor.new("Bright yellow")
| |
| 844 | HEDD.Material = "SmoothPlastic" | |
| 845 | HEDD.Reflectance = 0.5 | |
| 846 | local HEDD2 = Instance.new("SpecialMesh",HEDD)
| |
| 847 | HEDD2.MeshType = "Head" | |
| 848 | HEDD2.Scale = Vector3.new(2.28,1.28,1.28) | |
| 849 | local HEDD3 = Instance.new("Weld",HEDD)
| |
| 850 | HEDD3.Part0 = Head | |
| 851 | HEDD3.Part1 = HEDD | |
| 852 | HEDD3.C0 = CFrame.new(0,0,0) | |
| 853 | Character.Shirt:remove() | |
| 854 | Character.Pants:remove() | |
| 855 | Eh.BrickColor = BrickColor.new("Bright yellow")
| |
| 856 | Eh.Material = "SmoothPlastic" | |
| 857 | Eh.Reflectance = 0.5 | |
| 858 | LEh.Reflectance = 0.5 | |
| 859 | Eh.Material = "SmoothPlastic" | |
| 860 | LEh.Material = "SmoothPlastic" | |
| 861 | LEh.BrickColor = BrickColor.new("Bright yellow")
| |
| 862 | Head.BrickColor = BrickColor.new("Bright violet")
| |
| 863 | MAXSP = 0.1 | |
| 864 | Damage = 600 | |
| 865 | local AQ = Instance.new("Part",Character)
| |
| 866 | AQ.Transparency = 12121 | |
| 867 | AQ.CanCollide = false | |
| 868 | local AQ2 = Instance.new("Weld",AQ)
| |
| 869 | AQ2.Part0 = Torso | |
| 870 | AQ2.Part1 = AQ | |
| 871 | AQ2.C0 = CFrame.new(0,0,0) | |
| 872 | local FlA = Instance.new("ParticleEmitter",AQ)
| |
| 873 | FlA.Texture = "rbxassetid://569507414" | |
| 874 | FlA.Size = NumberSequence.new(0.8,0.2) | |
| 875 | FlA.Color = ColorSequence.new(Color3.fromRGB(255,153,28), Color3.fromRGB(255,153,28)) | |
| 876 | FlA.EmissionDirection = "Top" | |
| 877 | FlA.Lifetime = NumberRange.new(1,2) | |
| 878 | FlA.Rate = 70 | |
| 879 | FlA.Transparency = NumberSequence.new(0.5,0.6) | |
| 880 | FlA.LightEmission = 0.75 | |
| 881 | FlA.Speed = NumberRange.new(3) | |
| 882 | FlA.Acceleration = Vector3.new(0, 0, 0) | |
| 883 | FlA.VelocitySpread = 50 | |
| 884 | Fl.Color = ColorSequence.new(Color3.fromRGB(255,153,28),Color3.fromRGB(255,33,36)) | |
| 885 | Fl.Transparency = NumberSequence.new(0.6) | |
| 886 | for i = 1,80 do | |
| 887 | Char2.Scale = Char2.Scale + Vector3.new(1,1,1) | |
| 888 | Char.Transparency = Char.Transparency + 0.05 | |
| 889 | game:GetService("RunService").RenderStepped:wait()
| |
| 890 | end | |
| 891 | Char:remove() | |
| 892 | Humanoid.MaxHealth = 10000 | |
| 893 | wait() | |
| 894 | Humanoid.Health = 10000 | |
| 895 | Pause = false | |
| 896 | wait(1241241142) | |
| 897 | Z = false | |
| 898 | end | |
| 899 | end | |
| 900 | ||
| 901 | ||
| 902 | function DeathBall() | |
| 903 | if not D then D = true | |
| 904 | Pause = true | |
| 905 | for i = 0,1,0.1 do | |
| 906 | swait() | |
| 907 | PlayAnimationFromTable({
| |
| 908 | CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 909 | CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0.8, 0, 0), | |
| 910 | CFrame.new(1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0,0,0), | |
| 911 | CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 912 | CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 913 | CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 914 | }, .5, false) | |
| 915 | end | |
| 916 | local sbs = Instance.new("BodyPosition", RootPart)
| |
| 917 | sbs.P = 3000 | |
| 918 | sbs.D = 1000 | |
| 919 | sbs.maxForce = Vector3.new(500000, 500000000, 500000) | |
| 920 | sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0) | |
| 921 | wait(3) | |
| 922 | for i = 0,1,0.1 do | |
| 923 | swait() | |
| 924 | PlayAnimationFromTable({
| |
| 925 | CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 926 | CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(-0.3, 0, 0), | |
| 927 | CFrame.new(1.5,1,0) * CFrame.new(0, 0, 0) * CFrame.Angles(3.15,0,0), | |
| 928 | CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(-0.2, 0, 0), | |
| 929 | CFrame.new(0.6,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0.1), | |
| 930 | CFrame.new(-0.6,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -0.1), | |
| 931 | }, .5, false) | |
| 932 | end | |
| 933 | local AZ = Instance.new("Part",Character)
| |
| 934 | AZ.Size = Vector3.new(1,1,1) | |
| 935 | AZ.Shape = "Ball" | |
| 936 | AZ.BrickColor = BrickColor.new("Deep orange")
| |
| 937 | AZ.Anchored = true | |
| 938 | AZ.CanCollide = false | |
| 939 | AZ.CFrame = RightArm.CFrame*CFrame.new(0,-100,0) | |
| 940 | AZ.Material = "Neon" | |
| 941 | AZ.Touched:connect(function(hit) | |
| 942 | if hitted == false then | |
| 943 | hitted = true | |
| 944 | wait(1) | |
| 945 | AZ.Anchored = true | |
| 946 | coroutine.resume(coroutine.create(function() | |
| 947 | for i = 1,50 do | |
| 948 | local Cha = Instance.new("Part",AZ)
| |
| 949 | Cha.Size = Vector3.new(1,1,1) | |
| 950 | Cha.Transparency = 1 | |
| 951 | Cha.BrickColor = AZ.BrickColor | |
| 952 | Cha.Material = "Neon" | |
| 953 | Cha.Anchored = true | |
| 954 | Cha.CanCollide = false | |
| 955 | Cha.CFrame = AZ.CFrame*CFrame.new(0,0,0) | |
| 956 | local Cha2 = Instance.new("SpecialMesh",Cha)
| |
| 957 | Cha2.MeshType = "Sphere" | |
| 958 | Cha2.Scale = Vector3.new(1000,1000,1000) | |
| 959 | coroutine.resume(coroutine.create(function() | |
| 960 | for i = 1,100 do | |
| 961 | Cha2.Scale = Cha2.Scale - Vector3.new(6,6,6) | |
| 962 | Cha.Transparency = Cha.Transparency - 0.005 | |
| 963 | wait(0.0000000000000000000000001) | |
| 964 | end | |
| 965 | Cha:remove() | |
| 966 | end)) | |
| 967 | wait(0.5) | |
| 968 | end | |
| 969 | wait(0.5) | |
| 970 | end)) | |
| 971 | local HitBox = Instance.new("Part",AZ)
| |
| 972 | HitBox.Size = Vector3.new(800,800,800) | |
| 973 | HitBox.CanCollide = false | |
| 974 | HitBox.Anchored = true | |
| 975 | HitBox.Transparency = 1211 | |
| 976 | HitBox.CFrame = AZ.CFrame*CFrame.new(0,0,0) | |
| 977 | HitBox.Touched:connect(function(hit) | |
| 978 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil and hit.Parent.Name ~= Character.Name then
| |
| 979 | hit:remove() | |
| 980 | end | |
| 981 | end) | |
| 982 | wait(30) | |
| 983 | HitBox:remove() | |
| 984 | AZ:remove() | |
| 985 | end | |
| 986 | end) | |
| 987 | local AZZ = Instance.new("ParticleEmitter",AZ)
| |
| 988 | AZZ.Texture = "rbxassetid://569507523" | |
| 989 | AZZ.Color = ColorSequence.new(Color3.fromRGB(255, 3, 3), Color3.fromRGB(113, 1, 1)) | |
| 990 | AZZ.EmissionDirection = "Top" | |
| 991 | AZZ.Rotation = NumberRange.new(-20, 20) | |
| 992 | AZZ.Size = NumberSequence.new(20) | |
| 993 | AZZ.Lifetime = NumberRange.new(0.4,0.5) | |
| 994 | AZZ.Rate = 1111 | |
| 995 | AZZ.LightEmission = 0.75 | |
| 996 | AZZ.Speed = NumberRange.new(3) | |
| 997 | AZZ.VelocitySpread = 100 | |
| 998 | local FZA = Instance.new("ParticleEmitter",AZ)
| |
| 999 | FZA.Texture = "rbxassetid://258128463" | |
| 1000 | FZA.Size = NumberSequence.new(20) | |
| 1001 | FZA.LightEmission = 0.75 | |
| 1002 | FZA.Color = ColorSequence.new(Color3.fromRGB(232, 171, 45), Color3.fromRGB(216, 104, 11)) | |
| 1003 | FZA.Lifetime = NumberRange.new(1,2) | |
| 1004 | FZA.Rate = 11123 | |
| 1005 | for i = 1,300 do | |
| 1006 | AZ.Size = AZ.Size + Vector3.new(0.5,0.5,0.5) | |
| 1007 | game:GetService("RunService").RenderStepped:wait()
| |
| 1008 | end | |
| 1009 | AZ.Anchored = false | |
| 1010 | local Fly = Instance.new("BodyVelocity",AZ)
| |
| 1011 | Fly.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1012 | Fly.velocity = Mouse.hit.lookVector*120 | |
| 1013 | for i = 0,2,0.1 do | |
| 1014 | swait() | |
| 1015 | PlayAnimationFromTable({
| |
| 1016 | CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(-0.4, 0, 0), | |
| 1017 | CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(-0.2, 0, 0), | |
| 1018 | CFrame.new(1.5,0.5,-0.5) * CFrame.new(0, 0, 0) * CFrame.Angles(1.55,0,0), | |
| 1019 | CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1020 | CFrame.new(0.5,-1.8,0.2) * CFrame.new(0, 0, 0) * CFrame.Angles(-0.2, 0, 0), | |
| 1021 | CFrame.new(-0.5,-1.5,-0.3) * CFrame.new(0, 0, 0) * CFrame.Angles(-0.4, 0, 0), | |
| 1022 | }, .5, false) | |
| 1023 | end | |
| 1024 | wait(2) | |
| 1025 | sbs:remove() | |
| 1026 | Pause = false | |
| 1027 | wait(1) | |
| 1028 | D = false | |
| 1029 | end | |
| 1030 | end | |
| 1031 | function DeathBeam() | |
| 1032 | if not D then D = true | |
| 1033 | Pause = true | |
| 1034 | for i = 0,2,0.1 do | |
| 1035 | swait() | |
| 1036 | PlayAnimationFromTable({
| |
| 1037 | CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 1.6, 0), | |
| 1038 | CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, -1.55, 0), | |
| 1039 | CFrame.new(1.95,0.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0,0,1.55), | |
| 1040 | CFrame.new(-1.8,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -0.4), | |
| 1041 | CFrame.new(0.6,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0.1), | |
| 1042 | CFrame.new(-0.6,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -0.1), | |
| 1043 | }, .5, false) | |
| 1044 | end | |
| 1045 | local Dea = Instance.new("Part",RightArm)
| |
| 1046 | Dea.Size = Vector3.new(1,1,1) | |
| 1047 | Dea.Material = "Neon" | |
| 1048 | Dea.Transparency = 1 | |
| 1049 | Dea.BrickColor = BrickColor.new("Plum")
| |
| 1050 | local Dea2 = Instance.new("SpecialMesh",Dea)
| |
| 1051 | Dea2.MeshType = "Sphere" | |
| 1052 | Dea2.Scale = Vector3.new(3.5,3.5,3.5) | |
| 1053 | local Dea3 = Instance.new("Weld",Dea)
| |
| 1054 | Dea3.Part0 = RightArm | |
| 1055 | Dea3.Part1 = Dea | |
| 1056 | Dea3.C0 = CFrame.new(0,-1.1,0) | |
| 1057 | for i = 1,100 do | |
| 1058 | Dea.Transparency = Dea.Transparency - 0.01 | |
| 1059 | game:GetService("RunService").RenderStepped:wait()
| |
| 1060 | end | |
| 1061 | local Cy = Instance.new("Part",Torso)
| |
| 1062 | Cy.Size = Vector3.new(2,2,2) | |
| 1063 | Cy.Material = "Neon" | |
| 1064 | Cy.BrickColor = Dea.BrickColor | |
| 1065 | Cy.Anchored = true | |
| 1066 | Cy.Shape = "Cylinder" | |
| 1067 | Cy.CanCollide = false | |
| 1068 | Cy.CFrame = RightArm.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,1.55) | |
| 1069 | Cy.Touched:connect(function(hit) | |
| 1070 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil and hit.Parent.Name ~= Character.Name then
| |
| 1071 | hit:remove() | |
| 1072 | end | |
| 1073 | end) | |
| 1074 | for i = 1,200 do | |
| 1075 | Cy.Size = Cy.Size + Vector3.new(3,0,0) | |
| 1076 | Cy.CFrame = RightArm.CFrame*CFrame.new(-0.03*i,-1.5*i,0)*CFrame.new(0,-3,0)*CFrame.Angles(0,0,1.55) | |
| 1077 | game:GetService("RunService").RenderStepped:wait()
| |
| 1078 | end | |
| 1079 | for i = 1,10 do | |
| 1080 | Cy.Transparency = Cy.Transparency + 0.1 | |
| 1081 | Dea.Transparency = Dea.Transparency + 0.1 | |
| 1082 | game:GetService("RunService").RenderStepped:wait()
| |
| 1083 | end | |
| 1084 | Cy:remove() | |
| 1085 | Dea:remove() | |
| 1086 | Pause = false | |
| 1087 | wait(2) | |
| 1088 | D = false | |
| 1089 | end | |
| 1090 | end | |
| 1091 | Mouse.Button1Down:connect(function() | |
| 1092 | Spam() | |
| 1093 | end) | |
| 1094 | ||
| 1095 | Mouse.Button1Up:connect(function() | |
| 1096 | Pause = false | |
| 1097 | Spaz = false | |
| 1098 | end) | |
| 1099 | ||
| 1100 | Mouse.KeyDown:connect(function(key) | |
| 1101 | if key == "q" then | |
| 1102 | DeathBeam() | |
| 1103 | end | |
| 1104 | if key == "e" then | |
| 1105 | DeathBall() | |
| 1106 | end | |
| 1107 | if key == "m" and attack == false and attacktype == 1 then | |
| 1108 | Woosh() | |
| 1109 | attacktype = 2 | |
| 1110 | elseif key == "m" and attack == false and attacktype == 2 then | |
| 1111 | Woosh2() | |
| 1112 | end | |
| 1113 | end) | |
| 1114 | coroutine.wrap(function() | |
| 1115 | while 1 do | |
| 1116 | swait() | |
| 1117 | if doe <= 360 then | |
| 1118 | doe = doe + 2 | |
| 1119 | else | |
| 1120 | doe = 0 | |
| 1121 | end | |
| 1122 | end | |
| 1123 | end)() | |
| 1124 | while true do | |
| 1125 | swait() | |
| 1126 | RightArm.BrickColor = BodyColor | |
| 1127 | LeftArm.BrickColor = BodyColor | |
| 1128 | RightLeg.BrickColor = BodyColor | |
| 1129 | LeftLeg.BrickColor = BodyColor | |
| 1130 | Torso.BrickColor = BodyColor | |
| 1131 | for i, v in pairs(Character:GetChildren()) do | |
| 1132 | if v:IsA("Part") then
| |
| 1133 | v.Material = "SmoothPlastic" | |
| 1134 | elseif v:IsA("Accessory") then
| |
| 1135 | v:WaitForChild("Handle").Material = "SmoothPlastic"
| |
| 1136 | end | |
| 1137 | end | |
| 1138 | ||
| 1139 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 1140 | velocity = RootPart.Velocity.y | |
| 1141 | sine = sine + change | |
| 1142 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
| 1143 | if RootPart.Velocity.y > 1 and hit == nil then | |
| 1144 | Anim = "Jump" | |
| 1145 | if Pause == false then | |
| 1146 | PlayAnimationFromTable({
| |
| 1147 | CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1148 | CFrame.new(-0.0579944476, 1.48445117, -0.000906195492, 0.999631822, -0.0259140469, -0.00804444961, 0.0262291897, 0.998776913, 0.0419151038, 0.0069484422, -0.0421099029, 0.999089062) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1149 | CFrame.new(1.68067598, 0.167780995, 5.50026158e-08, 0.965881884, -0.258982956, -3.41060513e-13, 0.258982956, 0.965881884, 4.47034836e-07, 8.49010675e-08, 3.16640808e-07, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1150 | CFrame.new(-1.67620921, 0.188169807, -3.04922651e-07, 0.95698452, 0.290146649, -2.61441073e-07, -0.290146649, 0.95698452, -1.0069979e-05, -2.89639524e-06, 1.04542296e-05, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1151 | CFrame.new(0.537238836, -1.93797374, 0.176598221, 0.998698533, -0.0506777391, -0.00574572897, 0.0510024093, 0.992341697, 0.112511501, -6.35704041e-08, -0.112657718, 0.993634105) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1152 | CFrame.new(-0.536944568, -1.94808352, 0.126473114, 0.998626292, 0.0520468242, 0.00521374354, -0.0523067154, 0.993665218, 0.0995327011, -3.84102691e-07, -0.099668026, 0.995023906) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1153 | }, .3, false) | |
| 1154 | end | |
| 1155 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
| 1156 | Anim = "Fall" | |
| 1157 | if Pause == false then | |
| 1158 | PlayAnimationFromTable({
| |
| 1159 | CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1160 | CFrame.new(-0.0576509275, 1.50532985, -0.129091382, 0.999631822, -0.0231846143, -0.0140984114, 0.0262298863, 0.958684564, 0.283279002, 0.00694822101, -0.283544153, 0.958935201) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1161 | CFrame.new(1.68622994, 0.21415168, 7.02040666e-08, 0.881990671, -0.471266806, -3.41060513e-13, 0.471266806, 0.881990671, 4.47034836e-07, 1.54493137e-07, 2.89139166e-07, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1162 | CFrame.new(-1.72513735, 0.240890861, 2.54038241e-07, 0.814108491, 0.58071363, -2.61430017e-07, -0.580713034, 0.814108849, -1.00698489e-05, -6.08482924e-06, 8.98058715e-06, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1163 | CFrame.new(0.536720514, -1.92783141, 0.223740995, 0.998698533, -0.0498600565, -0.0107376017, 0.0510031059, 0.976314366, 0.210260883, -3.04512355e-07, -0.210534185, 0.977587521) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1164 | CFrame.new(-0.535922825, -1.92850935, 0.222419083, 0.99863112, 0.0512506701, 0.0104565797, -0.0523065142, 0.978474379, 0.199629858, -3.7062793e-07, -0.199902818, 0.97981596) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1165 | }, .3, false) | |
| 1166 | end | |
| 1167 | elseif Torsovelocity < 1 and hit ~= nil then | |
| 1168 | Anim = "Idle" | |
| 1169 | if Pause == false then | |
| 1170 | change = 1 | |
| 1171 | PlayAnimationFromTable({
| |
| 1172 | CFrame.new(0,0,0) * CFrame.new(0, 0-.05*math.sin(tick()*1.5), 0) * CFrame.Angles(-0.2, 0, 0), | |
| 1173 | CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1174 | CFrame.new(1.9,0.4,-0.5) * CFrame.new(0, 0-.1*math.sin(tick()*1.5), 0) * CFrame.Angles(1.2,0,1), | |
| 1175 | CFrame.new(-1.9,0.4,-0.5) * CFrame.new(0, 0-.1*math.sin(tick()*1.5), 0) * CFrame.Angles(1.2,0,-1), | |
| 1176 | CFrame.new(0.6,-2,-0.2) * CFrame.new(0, 0+.05*math.sin(tick()*1.5), 0) * CFrame.Angles(0.15, 0, 0.1), | |
| 1177 | CFrame.new(-0.6,-2,-0.2) * CFrame.new(0, 0+.05*math.sin(tick()*1.5), 0) * CFrame.Angles(0.15, 0, -0.1), | |
| 1178 | }, .3, false) | |
| 1179 | end | |
| 1180 | elseif Torsovelocity > 2 and hit ~= nil then | |
| 1181 | Anim = "Walk" | |
| 1182 | if Pause == false then | |
| 1183 | PlayAnimationFromTable({
| |
| 1184 | CFrame.new(0,1,0) * CFrame.new(0,0-.2*math.sin(tick()*4),0)*CFrame.Angles(-0.5,0,0), | |
| 1185 | CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0.3, 0, 0), | |
| 1186 | CFrame.new(0.3,0.45,-1) * CFrame.new(0,0,0)*CFrame.Angles(0,0,-1.4), | |
| 1187 | CFrame.new(-0.3,0.45,-1) * CFrame.new(0,0,0)*CFrame.Angles(0,0,1.4), | |
| 1188 | CFrame.new(0.5,-2,0.3) * CFrame.new(0,0,0)*CFrame.Angles(-0.3,0,0), | |
| 1189 | CFrame.new(-0.5,-1.5,-0.5) * CFrame.new(0,0,0)*CFrame.Angles(0,0,0) | |
| 1190 | }, .3, false) | |
| 1191 | end | |
| 1192 | end | |
| 1193 | end |