SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
| |
| 2 | print("FE Compatibility code by Mokiros Edit by Zach ")
| |
| 3 | InternalData = {}
| |
| 4 | do | |
| 5 | script.Parent = owner.Character | |
| 6 | local Event = Instance.new("RemoteEvent")
| |
| 7 | Event.Name = "UserInput" | |
| 8 | local function NewFakeEvent() | |
| 9 | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
| |
| 10 | return Fake | |
| 11 | end | |
| 12 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
| |
| 13 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
| |
| 14 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 15 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 16 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 17 | local function TriggerEvent(self,Event,...) | |
| 18 | local Trigger = Mouse[Event] | |
| 19 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
| 20 | Trigger.Function(...) | |
| 21 | end | |
| 22 | end | |
| 23 | Mouse.TrigEvent = TriggerEvent | |
| 24 | UserInputService.TrigEvent = TriggerEvent | |
| 25 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 26 | if FiredBy.Name ~= owner.Name then end | |
| 27 | if Input.MouseEvent then | |
| 28 | Mouse.Target = Input.Target | |
| 29 | Mouse.Hit = Input.Hit | |
| 30 | else | |
| 31 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 32 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 33 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
| 34 | end | |
| 35 | for _,Action in pairs(ContextActionService.Actions) do | |
| 36 | for _,Key in pairs(Action.Keys) do | |
| 37 | if Key==Input.KeyCode then | |
| 38 | Action.Function(Action.Name,Input.UserInputState,Input) | |
| 39 | end | |
| 40 | end | |
| 41 | end | |
| 42 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
| 43 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 44 | end | |
| 45 | end) | |
| 46 | InternalData["Mouse"] = Mouse | |
| 47 | InternalData["ContextActionService"] = ContextActionService | |
| 48 | InternalData["UserInputService"] = UserInputService | |
| 49 | Event.Parent = NLS([[ | |
| 50 | local Player = owner | |
| 51 | local Event = script:WaitForChild("UserInput")
| |
| 52 | local UserInputService = game:GetService("UserInputService")
| |
| 53 | local Mouse = Player:GetMouse() | |
| 54 | local Input = function(Input,gameProcessedEvent) | |
| 55 | if gameProcessedEvent then return end | |
| 56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 57 | end | |
| 58 | UserInputService.InputBegan:Connect(Input) | |
| 59 | UserInputService.InputEnded:Connect(Input) | |
| 60 | local Hit,Target | |
| 61 | while wait(1/30) do | |
| 62 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 63 | Hit,Target = Mouse.Hit,Mouse.Target | |
| 64 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 65 | end | |
| 66 | end | |
| 67 | ]],owner.Character) | |
| 68 | end | |
| 69 | RealGame = game;game = setmetatable({},{
| |
| 70 | __index = function (self,Index) | |
| 71 | local Sandbox = function (Thing) | |
| 72 | if Thing:IsA("Player") then
| |
| 73 | local RealPlayer = Thing | |
| 74 | return setmetatable({},{
| |
| 75 | __index = function (self,Index) | |
| 76 | local Type = type(RealPlayer[Index]) | |
| 77 | if Type == "function" then | |
| 78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 79 | return function (self) | |
| 80 | return InternalData["Mouse"] | |
| 81 | end | |
| 82 | end | |
| 83 | return function (self,...) | |
| 84 | return RealPlayer[Index](RealPlayer,...) | |
| 85 | end | |
| 86 | else | |
| 87 | if Index == "PlrObj" then | |
| 88 | return RealPlayer | |
| 89 | end | |
| 90 | return RealPlayer[Index] | |
| 91 | end | |
| 92 | end; | |
| 93 | __tostring = function(self) | |
| 94 | return RealPlayer.Name | |
| 95 | end | |
| 96 | }) | |
| 97 | end | |
| 98 | end | |
| 99 | if RealGame[Index] then | |
| 100 | local Type = type(RealGame[Index]) | |
| 101 | if Type == "function" then | |
| 102 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 103 | return function (self,Service) | |
| 104 | if Service:lower() == "players" then | |
| 105 | return setmetatable({},{
| |
| 106 | __index = function (self2,Index2) | |
| 107 | local RealService = RealGame:GetService(Service) | |
| 108 | local Type2 = type(Index2) | |
| 109 | if Type2 == "function" then | |
| 110 | return function (self,...) | |
| 111 | return RealService[Index2](RealService,...) | |
| 112 | end | |
| 113 | else | |
| 114 | if Index2:lower() == "localplayer" then | |
| 115 | return Sandbox(owner) | |
| 116 | end | |
| 117 | return RealService[Index2] | |
| 118 | end | |
| 119 | end; | |
| 120 | __tostring = function(self) | |
| 121 | return RealGame:GetService(Service).Name | |
| 122 | end | |
| 123 | }) | |
| 124 | elseif Service:lower() == "contextactionservice" then | |
| 125 | return InternalData["ContextActionService"] | |
| 126 | elseif Service:lower() == "contextactionservice" then | |
| 127 | return InternalData["UserInputService"] | |
| 128 | elseif Service:lower() == "runservice" then | |
| 129 | return setmetatable({},{
| |
| 130 | __index = function(self2,Index2) | |
| 131 | local RealService = RealGame:GetService(Service) | |
| 132 | local Type2 = type(Index2) | |
| 133 | if Type2 == "function" then | |
| 134 | return function (self,...) | |
| 135 | return RealService[Index2](RealService,...) | |
| 136 | end | |
| 137 | else | |
| 138 | if Index2:lower() == "bindtorenderstep" then | |
| 139 | return function (self,Name,Priority,Function) | |
| 140 | return RealGame:GetService("RunService").Stepped:Connect(Function)
| |
| 141 | end | |
| 142 | end | |
| 143 | if Index2:lower() == "renderstepped" then | |
| 144 | return RealService["Stepped"] | |
| 145 | end | |
| 146 | return RealService[Index2] | |
| 147 | end | |
| 148 | end | |
| 149 | }) | |
| 150 | else | |
| 151 | return RealGame:GetService(Service) | |
| 152 | end | |
| 153 | end | |
| 154 | end | |
| 155 | return function (self,...) | |
| 156 | return RealGame[Index](RealGame,...) | |
| 157 | end | |
| 158 | else | |
| 159 | if game:GetService(Index) then | |
| 160 | return game:GetService(Index) | |
| 161 | end | |
| 162 | return RealGame[Index] | |
| 163 | end | |
| 164 | else | |
| 165 | return nil | |
| 166 | end | |
| 167 | end | |
| 168 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
| |
| 169 | print("Complete! Running...")
| |
| 170 | ||
| 171 | wait(0.2) | |
| 172 | ||
| 173 | Player = game:GetService("Players").LocalPlayer
| |
| 174 | PlayerGui = Player.PlayerGui | |
| 175 | Cam = workspace.CurrentCamera | |
| 176 | Backpack = Player.Backpack | |
| 177 | Character = Player.Character | |
| 178 | Humanoid = Character.Humanoid | |
| 179 | Mouse = Player:GetMouse() | |
| 180 | RootPart = Character["HumanoidRootPart"] | |
| 181 | Torso = Character["Torso"] | |
| 182 | Head = Character["Head"] | |
| 183 | RightArm = Character["Right Arm"] | |
| 184 | LeftArm = Character["Left Arm"] | |
| 185 | RightLeg = Character["Right Leg"] | |
| 186 | LeftLeg = Character["Left Leg"] | |
| 187 | RootJoint = RootPart["RootJoint"] | |
| 188 | Neck = Torso["Neck"] | |
| 189 | RightShoulder = Torso["Right Shoulder"] | |
| 190 | LeftShoulder = Torso["Left Shoulder"] | |
| 191 | RightHip = Torso["Right Hip"] | |
| 192 | LeftHip = Torso["Left Hip"] | |
| 193 | Character.Archivable = true | |
| 194 | Player:ClearCharacterAppearance() | |
| 195 | ||
| 196 | IT = Instance.new | |
| 197 | CF = CFrame.new | |
| 198 | VT = Vector3.new | |
| 199 | RAD = math.rad | |
| 200 | C3 = Color3.new | |
| 201 | UD2 = UDim2.new | |
| 202 | BRICKC = BrickColor.new | |
| 203 | ANGLES = CFrame.Angles | |
| 204 | EULER = CFrame.fromEulerAnglesXYZ | |
| 205 | COS = math.cos | |
| 206 | ACOS = math.acos | |
| 207 | SIN = math.sin | |
| 208 | ASIN = math.asin | |
| 209 | ABS = math.abs | |
| 210 | MRANDOM = math.random | |
| 211 | FLOOR = math.floor | |
| 212 | ||
| 213 | --//=================================\\ | |
| 214 | --|| USEFUL VALUES | |
| 215 | --\\=================================// | |
| 216 | ||
| 217 | Animation_Speed = 3 | |
| 218 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 219 | local Speed = 20 | |
| 220 | local SIZE = 1 | |
| 221 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 222 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 223 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
| 224 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
| 225 | local DAMAGEMULTIPLIER = 1 | |
| 226 | local ANIM = "Idle" | |
| 227 | local ATTACK = false | |
| 228 | local EQUIPPED = false | |
| 229 | local HOLD = false | |
| 230 | local COMBO = 1 | |
| 231 | local Rooted = false | |
| 232 | local SINE = 0 | |
| 233 | local KEYHOLD = false | |
| 234 | local CHANGE = 2 / Animation_Speed | |
| 235 | local WALKINGANIM = false | |
| 236 | local Player_Size = 1 | |
| 237 | local VALUE1 = false | |
| 238 | local VALUE2 = false | |
| 239 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 240 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 241 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 242 | local ATANIM = IT("Animation")
| |
| 243 | ATANIM.Name = "Attack Animation" | |
| 244 | ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663" | |
| 245 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
| 246 | local WEAPONGUI = IT("ScreenGui", PlayerGui)
| |
| 247 | WEAPONGUI.Name = "Weapon GUI" | |
| 248 | local Weapon = IT("Model")
| |
| 249 | Weapon.Name = "Adds" | |
| 250 | local Effects = IT("Folder", Weapon)
| |
| 251 | Effects.Name = "Effects" | |
| 252 | local ANIMATOR = Humanoid.Animator | |
| 253 | local ANIMATE = Character.Animate | |
| 254 | local UNANCHOR = true | |
| 255 | local CLOCKLOOP = 0 | |
| 256 | local SONG = 1497785701 | |
| 257 | local CLOCKTARGET = nil | |
| 258 | local CLOCKSPEED = 1 | |
| 259 | script.Parent = WEAPONGUI | |
| 260 | local CLONE = Character:Clone() | |
| 261 | CLONE.Parent = nil | |
| 262 | local Delete = IT("Model", Character)
| |
| 263 | Delete.Name = "Those who must be Punished." | |
| 264 | Character.Archivable = false | |
| 265 | local sick = Instance.new("Sound",Torso)
| |
| 266 | local ENERGYSOUND = 1417051162 | |
| 267 | local EXPLOSIONSOUND = 1417056081 | |
| 268 | ||
| 269 | ||
| 270 | --//=================================\\ | |
| 271 | --\\=================================// | |
| 272 | ||
| 273 | ||
| 274 | ||
| 275 | - | --|| SAZERENOS' ARTIFICIAL HEARTBEAT |
| 275 | + | |
| 276 | --\\=================================// | |
| 277 | ||
| 278 | - | ArtificialHB = Instance.new("BindableEvent", script)
|
| 278 | + | |
| 279 | - | ArtificialHB.Name = "ArtificialHB" |
| 279 | + | |
| 280 | --\\=================================// | |
| 281 | - | script:WaitForChild("ArtificialHB")
|
| 281 | + | |
| 282 | m = game.Players.LocalPlayer | |
| 283 | - | frame = Frame_Speed |
| 283 | + | |
| 284 | - | tf = 0 |
| 284 | + | |
| 285 | - | allowframeloss = false |
| 285 | + | |
| 286 | - | tossremainder = false |
| 286 | + | |
| 287 | - | lastframe = tick() |
| 287 | + | |
| 288 | - | script.ArtificialHB:Fire() |
| 288 | + | |
| 289 | local text = Instance.new("TextLabel", txt)
| |
| 290 | - | game:GetService("RunService").Heartbeat:connect(function(s, p)
|
| 290 | + | |
| 291 | - | tf = tf + s |
| 291 | + | |
| 292 | - | if tf >= frame then |
| 292 | + | |
| 293 | - | if allowframeloss then |
| 293 | + | |
| 294 | - | script.ArtificialHB:Fire() |
| 294 | + | |
| 295 | - | lastframe = tick() |
| 295 | + | |
| 296 | text.TextStrokeTransparency = 0 | |
| 297 | - | for i = 1, math.floor(tf / frame) do |
| 297 | + | |
| 298 | - | script.ArtificialHB:Fire() |
| 298 | + | |
| 299 | v = Instance.new("Part")
| |
| 300 | - | lastframe = tick() |
| 300 | + | |
| 301 | v.Parent = m.Character | |
| 302 | - | if tossremainder then |
| 302 | + | |
| 303 | - | tf = 0 |
| 303 | + | |
| 304 | v.CanCollide = false | |
| 305 | - | tf = tf - frame * math.floor(tf / frame) |
| 305 | + | |
| 306 | v.TopSurface = "Smooth" | |
| 307 | v.Size = Vector3.new(5, 5, 3) | |
| 308 | v.Transparency = 1 | |
| 309 | v.CFrame = char.Torso.CFrame | |
| 310 | v.BrickColor = BrickColor.new("Really black")
| |
| 311 | v.Transparency = 1 | |
| 312 | v.Shape = "Block" | |
| 313 | spawn(function() | |
| 314 | local TweenService = game:GetService("TweenService")
| |
| 315 | local Colours = {Color3.fromRGB(255, 176, 0),Color3.fromRGB(0,0,0),Color3.fromRGB(255, 176, 0),Color3.fromRGB(0,0,0),Color3.fromRGB(255, 176, 0),Color3.fromRGB(0,0,0),Color3.fromRGB(255, 176, 0),Color3.fromRGB(0,0,0)}
| |
| 316 | local Int = 0 | |
| 317 | while wait(0.5) do | |
| 318 | if Int == #Colours then Int = 0 end | |
| 319 | Int = Int+1 | |
| 320 | TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play()
| |
| 321 | end | |
| 322 | end) | |
| 323 | text.Text = "The Death Speaker" | |
| 324 | ||
| 325 | --//=================================\\ | |
| 326 | --|| SOME FUNCTIONS | |
| 327 | --\\=================================// | |
| 328 | ||
| 329 | local asd = Instance.new("ParticleEmitter")
| |
| 330 | asd.Color = ColorSequence.new(Color3.new(0.5, 0.5, 0), Color3.new(.3, 0, 0)) | |
| 331 | asd.LightEmission = .1 | |
| 332 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
| 333 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
| |
| 334 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
| |
| 335 | asd.Transparency = bbb | |
| 336 | asd.Size = aaa | |
| 337 | asd.ZOffset = .9 | |
| 338 | asd.Acceleration = Vector3.new(0, -15, 0) | |
| 339 | asd.LockedToPart = false | |
| 340 | asd.EmissionDirection = "Back" | |
| 341 | asd.Lifetime = NumberRange.new(1, 2) | |
| 342 | asd.Rotation = NumberRange.new(-100, 100) | |
| 343 | asd.RotSpeed = NumberRange.new(-100, 100) | |
| 344 | asd.Speed = NumberRange.new(10) | |
| 345 | asd.Enabled = false | |
| 346 | asd.VelocitySpread = 999 | |
| 347 | ||
| 348 | function getbloody(victim,amount) | |
| 349 | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size) | |
| 350 | PART.CFrame = victim.CFrame | |
| 351 | local HITPLAYERSOUNDS = {"356551938","264486467"}
| |
| 352 | Debris:AddItem(PART,5) | |
| 353 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
| 354 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
| 355 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
| 356 | local prtcl = asd:Clone() | |
| 357 | prtcl.Parent = PART | |
| 358 | prtcl:Emit(amount*10) | |
| 359 | end | |
| 360 | ||
| 361 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 362 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 363 | end | |
| 364 | ||
| 365 | function PositiveAngle(NUMBER) | |
| 366 | if NUMBER >= 0 then | |
| 367 | NUMBER = 0 | |
| 368 | end | |
| 369 | return NUMBER | |
| 370 | end | |
| 371 | ||
| 372 | function NegativeAngle(NUMBER) | |
| 373 | if NUMBER <= 0 then | |
| 374 | NUMBER = 0 | |
| 375 | end | |
| 376 | return NUMBER | |
| 377 | end | |
| 378 | ||
| 379 | function Swait(NUMBER) | |
| 380 | if NUMBER == 0 or NUMBER == nil then | |
| 381 | ArtificialHB.Event:wait() | |
| 382 | else | |
| 383 | for i = 1, NUMBER do | |
| 384 | ArtificialHB.Event:wait() | |
| 385 | end | |
| 386 | end | |
| 387 | end | |
| 388 | ||
| 389 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 390 | local NEWMESH = IT(MESH) | |
| 391 | if MESH == "SpecialMesh" then | |
| 392 | NEWMESH.MeshType = MESHTYPE | |
| 393 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 394 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 395 | end | |
| 396 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 397 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 398 | end | |
| 399 | end | |
| 400 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 401 | NEWMESH.Scale = SCALE | |
| 402 | NEWMESH.Parent = PARENT | |
| 403 | return NEWMESH | |
| 404 | end | |
| 405 | ||
| 406 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 407 | local NEWPART = IT("Part")
| |
| 408 | NEWPART.formFactor = FORMFACTOR | |
| 409 | NEWPART.Reflectance = REFLECTANCE | |
| 410 | NEWPART.Transparency = TRANSPARENCY | |
| 411 | NEWPART.CanCollide = false | |
| 412 | NEWPART.Locked = true | |
| 413 | NEWPART.Anchored = true | |
| 414 | if ANCHOR == false then | |
| 415 | NEWPART.Anchored = false | |
| 416 | end | |
| 417 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 418 | NEWPART.Name = NAME | |
| 419 | NEWPART.Size = SIZE | |
| 420 | NEWPART.Position = Torso.Position | |
| 421 | NEWPART.Material = MATERIAL | |
| 422 | NEWPART:BreakJoints() | |
| 423 | NEWPART.Parent = PARENT | |
| 424 | return NEWPART | |
| 425 | end | |
| 426 | ||
| 427 | local function weldBetween(a, b) | |
| 428 | local weldd = Instance.new("ManualWeld")
| |
| 429 | weldd.Part0 = a | |
| 430 | weldd.Part1 = b | |
| 431 | weldd.C0 = CFrame.new() | |
| 432 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 433 | weldd.Parent = a | |
| 434 | return weldd | |
| 435 | end | |
| 436 | ||
| 437 | ||
| 438 | function QuaternionFromCFrame(cf) | |
| 439 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 440 | local trace = m00 + m11 + m22 | |
| 441 | if trace > 0 then | |
| 442 | local s = math.sqrt(1 + trace) | |
| 443 | local recip = 0.5 / s | |
| 444 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 445 | else | |
| 446 | local i = 0 | |
| 447 | if m11 > m00 then | |
| 448 | i = 1 | |
| 449 | end | |
| 450 | if m22 > (i == 0 and m00 or m11) then | |
| 451 | i = 2 | |
| 452 | end | |
| 453 | if i == 0 then | |
| 454 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 455 | local recip = 0.5 / s | |
| 456 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 457 | elseif i == 1 then | |
| 458 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 459 | local recip = 0.5 / s | |
| 460 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 461 | elseif i == 2 then | |
| 462 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 463 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 464 | end | |
| 465 | end | |
| 466 | end | |
| 467 | ||
| 468 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 469 | local xs, ys, zs = x + x, y + y, z + z | |
| 470 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 471 | local xx = x * xs | |
| 472 | local xy = x * ys | |
| 473 | local xz = x * zs | |
| 474 | local yy = y * ys | |
| 475 | local yz = y * zs | |
| 476 | local zz = z * zs | |
| 477 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
| 478 | end | |
| 479 | ||
| 480 | function QuaternionSlerp(a, b, t) | |
| 481 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 482 | local startInterp, finishInterp; | |
| 483 | if cosTheta >= 0.0001 then | |
| 484 | if (1 - cosTheta) > 0.0001 then | |
| 485 | local theta = ACOS(cosTheta) | |
| 486 | local invSinTheta = 1 / SIN(theta) | |
| 487 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 488 | finishInterp = SIN(t * theta) * invSinTheta | |
| 489 | else | |
| 490 | startInterp = 1 - t | |
| 491 | finishInterp = t | |
| 492 | end | |
| 493 | else | |
| 494 | if (1 + cosTheta) > 0.0001 then | |
| 495 | local theta = ACOS(-cosTheta) | |
| 496 | local invSinTheta = 1 / SIN(theta) | |
| 497 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 498 | finishInterp = SIN(t * theta) * invSinTheta | |
| 499 | else | |
| 500 | startInterp = t - 1 | |
| 501 | finishInterp = t | |
| 502 | end | |
| 503 | end | |
| 504 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
| 505 | end | |
| 506 | ||
| 507 | function Clerp(a, b, t) | |
| 508 | local qa = {QuaternionFromCFrame(a)}
| |
| 509 | local qb = {QuaternionFromCFrame(b)}
| |
| 510 | local ax, ay, az = a.x, a.y, a.z | |
| 511 | local bx, by, bz = b.x, b.y, b.z | |
| 512 | local _t = 1 - t | |
| 513 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 514 | end | |
| 515 | ||
| 516 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 517 | local frame = IT("Frame")
| |
| 518 | frame.BackgroundTransparency = TRANSPARENCY | |
| 519 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 520 | frame.Position = POSITION | |
| 521 | frame.Size = SIZE | |
| 522 | frame.BackgroundColor3 = COLOR | |
| 523 | frame.BorderColor3 = BORDERCOLOR | |
| 524 | frame.Name = NAME | |
| 525 | frame.Parent = PARENT | |
| 526 | return frame | |
| 527 | end | |
| 528 | ||
| 529 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 530 | local label = IT("TextLabel")
| |
| 531 | label.BackgroundTransparency = 1 | |
| 532 | label.Size = UD2(1, 0, 1, 0) | |
| 533 | label.Position = UD2(0, 0, 0, 0) | |
| 534 | label.TextColor3 = TEXTCOLOR | |
| 535 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 536 | label.TextTransparency = TRANSPARENCY | |
| 537 | label.FontSize = TEXTFONTSIZE | |
| 538 | label.Font = TEXTFONT | |
| 539 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 540 | label.TextStrokeColor3 = C3(1,1,1) | |
| 541 | label.TextScaled = false | |
| 542 | label.Text = TEXT | |
| 543 | label.Name = NAME | |
| 544 | label.Parent = PARENT | |
| 545 | return label | |
| 546 | end | |
| 547 | ||
| 548 | function NoOutlines(PART) | |
| 549 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 550 | end | |
| 551 | ||
| 552 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 553 | local NEWWELD = IT(TYPE) | |
| 554 | NEWWELD.Part0 = PART0 | |
| 555 | NEWWELD.Part1 = PART1 | |
| 556 | NEWWELD.C0 = C0 | |
| 557 | NEWWELD.C1 = C1 | |
| 558 | NEWWELD.Parent = PARENT | |
| 559 | return NEWWELD | |
| 560 | end | |
| 561 | ||
| 562 | local S = IT("Sound")
| |
| 563 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
| 564 | local NEWSOUND = nil | |
| 565 | coroutine.resume(coroutine.create(function() | |
| 566 | NEWSOUND = S:Clone() | |
| 567 | NEWSOUND.Parent = PARENT | |
| 568 | NEWSOUND.Volume = VOLUME | |
| 569 | NEWSOUND.Pitch = PITCH | |
| 570 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 571 | NEWSOUND:play() | |
| 572 | if DOESLOOP == true then | |
| 573 | NEWSOUND.Looped = true | |
| 574 | else | |
| 575 | repeat wait(1) until NEWSOUND.Playing == false | |
| 576 | NEWSOUND:remove() | |
| 577 | end | |
| 578 | end)) | |
| 579 | return NEWSOUND | |
| 580 | end | |
| 581 | ||
| 582 | function CFrameFromTopBack(at, top, back) | |
| 583 | local right = top:Cross(back) | |
| 584 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
| 585 | end | |
| 586 | ||
| 587 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 588 | function WACKYEFFECT(Table) | |
| 589 | local TYPE = (Table.EffectType or "Sphere") | |
| 590 | local SIZE = (Table.Size or VT(1,1,1)) | |
| 591 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
| 592 | local TRANSPARENCY = (Table.Transparency or 0) | |
| 593 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
| 594 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
| 595 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
| 596 | local ROTATION1 = (Table.RotationX or 0) | |
| 597 | local ROTATION2 = (Table.RotationY or 0) | |
| 598 | local ROTATION3 = (Table.RotationZ or 0) | |
| 599 | local MATERIAL = (Table.Material or "Neon") | |
| 600 | local COLOR = (Table.Color or C3(1,1,1)) | |
| 601 | local TIME = (Table.Time or 45) | |
| 602 | local SOUNDID = (Table.SoundID or nil) | |
| 603 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
| 604 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
| 605 | coroutine.resume(coroutine.create(function() | |
| 606 | local PLAYSSOUND = false | |
| 607 | local SOUND = nil | |
| 608 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
| |
| 609 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
| 610 | PLAYSSOUND = true | |
| 611 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
| 612 | end | |
| 613 | EFFECT.Color = COLOR | |
| 614 | local MSH = nil | |
| 615 | if TYPE == "Sphere" then | |
| 616 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 617 | elseif TYPE == "Block" then | |
| 618 | MSH = IT("BlockMesh",EFFECT)
| |
| 619 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
| 620 | elseif TYPE == "Wave" then | |
| 621 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 622 | elseif TYPE == "Ring" then | |
| 623 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
| |
| 624 | elseif TYPE == "Slash" then | |
| 625 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 626 | elseif TYPE == "Round Slash" then | |
| 627 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 628 | elseif TYPE == "Swirl" then | |
| 629 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
| |
| 630 | elseif TYPE == "Skull" then | |
| 631 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
| |
| 632 | elseif TYPE == "Crystal" then | |
| 633 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
| |
| 634 | end | |
| 635 | if MSH ~= nil then | |
| 636 | local MOVESPEED = nil | |
| 637 | if MOVEDIRECTION ~= nil then | |
| 638 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
| 639 | end | |
| 640 | local GROWTH = SIZE - ENDSIZE | |
| 641 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
| 642 | if TYPE == "Block" then | |
| 643 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 644 | else | |
| 645 | EFFECT.CFrame = CFRAME | |
| 646 | end | |
| 647 | for LOOP = 1, TIME+1 do | |
| 648 | Swait() | |
| 649 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
| 650 | if TYPE == "Wave" then | |
| 651 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
| 652 | end | |
| 653 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
| 654 | if TYPE == "Block" then | |
| 655 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 656 | else | |
| 657 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
| 658 | end | |
| 659 | if MOVEDIRECTION ~= nil then | |
| 660 | local ORI = EFFECT.Orientation | |
| 661 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
| 662 | EFFECT.Orientation = ORI | |
| 663 | end | |
| 664 | end | |
| 665 | if PLAYSSOUND == false then | |
| 666 | EFFECT:remove() | |
| 667 | else | |
| 668 | repeat Swait() until SOUND.Playing == false | |
| 669 | EFFECT:remove() | |
| 670 | end | |
| 671 | else | |
| 672 | if PLAYSSOUND == false then | |
| 673 | EFFECT:remove() | |
| 674 | else | |
| 675 | repeat Swait() until SOUND.Playing == false | |
| 676 | EFFECT:remove() | |
| 677 | end | |
| 678 | end | |
| 679 | end)) | |
| 680 | end | |
| 681 | ||
| 682 | function MakeForm(PART,TYPE) | |
| 683 | if TYPE == "Cyl" then | |
| 684 | local MSH = IT("CylinderMesh",PART)
| |
| 685 | elseif TYPE == "Ball" then | |
| 686 | local MSH = IT("SpecialMesh",PART)
| |
| 687 | MSH.MeshType = "Sphere" | |
| 688 | elseif TYPE == "Wedge" then | |
| 689 | local MSH = IT("SpecialMesh",PART)
| |
| 690 | MSH.MeshType = "Wedge" | |
| 691 | end | |
| 692 | end | |
| 693 | ||
| 694 | Debris = game:GetService("Debris")
| |
| 695 | ||
| 696 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
| 697 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
| 698 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
| 699 | end | |
| 700 | ||
| 701 | function turnto(position) | |
| 702 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
| 703 | end | |
| 704 | ||
| 705 | function SpawnTrail(FROM,TO,BIG) | |
| 706 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Deep orange", "Trail", VT(0,0,0)) | |
| 707 | MakeForm(TRAIL,"Cyl") | |
| 708 | local DIST = (FROM - TO).Magnitude | |
| 709 | if BIG == true then | |
| 710 | TRAIL.Size = VT(0.5,DIST,0.5) | |
| 711 | else | |
| 712 | TRAIL.Size = VT(0.25,DIST,0.25) | |
| 713 | end | |
| 714 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
| 715 | coroutine.resume(coroutine.create(function() | |
| 716 | for i = 1, 5 do | |
| 717 | Swait() | |
| 718 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
| 719 | end | |
| 720 | TRAIL:remove() | |
| 721 | end)) | |
| 722 | end | |
| 723 | ||
| 724 | --//=================================\\ | |
| 725 | --|| WEAPON CREATION | |
| 726 | --\\=================================// | |
| 727 | ||
| 728 | Humanoid.Parent = nil | |
| 729 | RootPart.Size = RootPart.Size*SIZE | |
| 730 | Torso.Size = Torso.Size*SIZE | |
| 731 | RightArm.Size = RightArm.Size*SIZE | |
| 732 | RightLeg.Size = RightLeg.Size*SIZE | |
| 733 | LeftArm.Size = LeftArm.Size*SIZE | |
| 734 | LeftLeg.Size = LeftLeg.Size*SIZE | |
| 735 | RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 736 | RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 737 | Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 738 | Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 739 | RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
| 740 | LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
| 741 | RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 742 | LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 743 | RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 744 | LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 745 | Head.Size = Head.Size*SIZE | |
| 746 | RootJoint.Parent = RootPart | |
| 747 | Neck.Parent = Torso | |
| 748 | RightShoulder.Parent = Torso | |
| 749 | LeftShoulder.Parent = Torso | |
| 750 | RightHip.Parent = Torso | |
| 751 | LeftHip.Parent = Torso | |
| 752 | ||
| 753 | local Handle = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,1.2,0.2),false) | |
| 754 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0))
| |
| 755 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.8,0.2),false) | |
| 756 | MakeForm(Part,"Wedge") | |
| 757 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
| |
| 758 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.6),false) | |
| 759 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 760 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
| 761 | MakeForm(Part,"Cyl") | |
| 762 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 763 | for i = 1, 8 do | |
| 764 | local Piece = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
| 765 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
| |
| 766 | end | |
| 767 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 768 | MakeForm(Part,"Wedge") | |
| 769 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
| |
| 770 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.39,0.41,0.39),false) | |
| 771 | MakeForm(Part,"Cyl") | |
| 772 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 773 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
| 774 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 775 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.5),false) | |
| 776 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 777 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0,0.6),false) | |
| 778 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3))
| |
| 779 | local RightBarrel = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.28,5,0.28),false) | |
| 780 | MakeForm(RightBarrel,"Cyl") | |
| 781 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, RightBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0))
| |
| 782 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.2,0.2),false) | |
| 783 | MakeForm(Part,"Wedge") | |
| 784 | CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 785 | local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
| 786 | MakeForm(RightHole,"Cyl") | |
| 787 | CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, RightHole, CF(0, 2.5, 0), CF(0, 0, 0))
| |
| 788 | ||
| 789 | Humanoid.DisplayDistanceType = "None" | |
| 790 | local top = Instance.new("Shirt")
| |
| 791 | top.ShirtTemplate = "rbxassetid://1830724093" | |
| 792 | top.Parent = Character | |
| 793 | top.Name = "Cloth" | |
| 794 | local bottom = Instance.new("Pants")
| |
| 795 | bottom.PantsTemplate = "rbxassetid://230347534" | |
| 796 | bottom.Parent = Character | |
| 797 | bottom.Name = "Cloth" | |
| 798 | local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false) | |
| 799 | PRT.Color = C3(0,0,0) | |
| 800 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.1,0.15*SIZE,0.085) * ANGLES(RAD(12), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 801 | CreateMesh("SpecialMesh", PRT, "FileMesh", "19999424", "20571982", VT(1.07,1.07,1.07)*SIZE, VT(0,0,0))
| |
| 802 | local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false) | |
| 803 | PRT.Color = C3(0,0,0) | |
| 804 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.031,-1.1*SIZE,-0.2) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 805 | CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "1149570750", VT(1, 1, 1)*SIZE, VT(0,0,0))
| |
| 806 | local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false) | |
| 807 | PRT.Color = C3(0,0,0) | |
| 808 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.14*SIZE,-0.20) * ANGLES(RAD(12), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 809 | CreateMesh("SpecialMesh", PRT, "FileMesh", "11419729", "112346956", VT(1, 1, 1)*SIZE, VT(0,0,0))
| |
| 810 | local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false) | |
| 811 | PRT.Color = C3(0,0,0) | |
| 812 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.8*SIZE,0) * ANGLES(RAD(12), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 813 | CreateMesh("SpecialMesh", PRT, "FileMesh", "1374148", "413143035", VT(1, 1, 1)*SIZE, VT(0,0,0))
| |
| 814 | local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false) | |
| 815 | PRT.Color = C3(0,0,0) | |
| 816 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0,0*SIZE,0.7) * ANGLES(RAD(12), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 817 | CreateMesh("SpecialMesh", PRT, "FileMesh", "1147817045", "1147816718", VT(0.8, 0.8, 0.8)*SIZE, VT(0,0,0))
| |
| 818 | ||
| 819 | local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Institutional white", "BraceletPart", VT(1.01,0.3,1.01),false) | |
| 820 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, BasePart, CF(0, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 821 | for i = 1, 3 do | |
| 822 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Deep orange", "BraceletPart", VT(0.2,1.02,0.2),false) | |
| 823 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0, 0, 0.6-0.3*i) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
| |
| 824 | MakeForm(Part,"Cyl") | |
| 825 | end | |
| 826 | for i = 1, 3 do | |
| 827 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Deep orange", "BraceletPart", VT(0.2,1.02,0.2),false) | |
| 828 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.6-0.3*i, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(90)), CF(0, 0, 0))
| |
| 829 | MakeForm(Part,"Cyl") | |
| 830 | end | |
| 831 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Institutional white", "BraceletPart", VT(0.51,0.6,0.25),false) | |
| 832 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0))
| |
| 833 | MakeForm(Part,"Wedge") | |
| 834 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Institutional white", "BraceletPart", VT(0.51,0.6,0.25),false) | |
| 835 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0))
| |
| 836 | MakeForm(Part,"Wedge") | |
| 837 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Deep orange", "BraceletPart", VT(0.52,0.5,0.25/2.3),false) | |
| 838 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0))
| |
| 839 | MakeForm(Part,"Wedge") | |
| 840 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Deep orange", "BraceletPart", VT(0.52,0.5,0.25/2.3),false) | |
| 841 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0))
| |
| 842 | MakeForm(Part,"Wedge") | |
| 843 | ||
| 844 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Cocoa", "Watch", VT(1.05,0.06,1.05)*SIZE,false) | |
| 845 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 846 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Rust", "Watch", VT(0.5,0.1,0.5)*SIZE,false) | |
| 847 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
| |
| 848 | MakeForm(PRT,"Cyl") | |
| 849 | local PRT = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false) | |
| 850 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
| |
| 851 | MakeForm(PRT,"Cyl") | |
| 852 | PRT.Color = C3(255/255, 176/255, 0/255) | |
| 853 | local RING = CreatePart(3, Weapon, "Metal", 0, 0, "Cocoa", "Watch", VT(0.055,0.15,0.055)*SIZE,false) | |
| 854 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
| |
| 855 | MakeForm(RING,"Cyl") | |
| 856 | RING.Color = C3(99/255, 95/255, 98/255) | |
| 857 | for i = 1, 12 do | |
| 858 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false) | |
| 859 | PRT.Color = C3(99/255, 95/255, 98/255) | |
| 860 | local MSH = IT("BlockMesh",PRT)
| |
| 861 | MSH.Scale = VT(0.6,1,1) | |
| 862 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD((360/12)*i), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.2*SIZE))
| |
| 863 | end | |
| 864 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15)*SIZE,false) | |
| 865 | PRT.Color = C3(99/255, 95/255, 98/255) | |
| 866 | local MSH = IT("BlockMesh",PRT)
| |
| 867 | MSH.Scale = VT(0.4,1,1) | |
| 868 | local WATCH1 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.075*SIZE))
| |
| 869 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false) | |
| 870 | PRT.Color = C3(99/255, 95/255, 98/255) | |
| 871 | local MSH = IT("BlockMesh",PRT)
| |
| 872 | MSH.Scale = VT(0.4,1,1) | |
| 873 | local WATCH2 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -(0.075/1.5)*SIZE))
| |
| 874 | coroutine.resume(coroutine.create(function() | |
| 875 | while true do | |
| 876 | Swait() | |
| 877 | CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED | |
| 878 | WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed) | |
| 879 | WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed) | |
| 880 | if CLOCKLOOP <= -150 then | |
| 881 | if VALUE1 == false then | |
| 882 | CLOCKLOOP = 0 | |
| 883 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RING.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(255/255, 176/255, 0/255), SoundID = 743521450, SoundPitch = 1.2, SoundVolume = 4})
| |
| 884 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
| 885 | ApplyAoE(HITPOS,10,15,45,75,false) | |
| 886 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(15,2,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 176/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 887 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(12,3,12), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 255/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 888 | if CLOCKTARGET ~= nil then | |
| 889 | CLOCKTARGET.Health = CLOCKTARGET.Health - 20 | |
| 890 | if CLOCKTARGET.Torso ~= nil then | |
| 891 | CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))) | |
| 892 | end | |
| 893 | if CLOCKTARGET.Health == 0 then | |
| 894 | CLOCKTARGET = nil | |
| 895 | end | |
| 896 | end | |
| 897 | end | |
| 898 | end | |
| 899 | end | |
| 900 | end)) | |
| 901 | ||
| 902 | for _, c in pairs(Weapon:GetChildren()) do | |
| 903 | if c.ClassName == "Part" then | |
| 904 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 905 | end | |
| 906 | end | |
| 907 | ||
| 908 | Neck.Name = "Weld" | |
| 909 | RootJoint.Name = "Weld" | |
| 910 | RightShoulder.Name = "Weld" | |
| 911 | LeftShoulder.Name = "Weld" | |
| 912 | RightHip.Name = "Weld" | |
| 913 | LeftHip.Name = "Weld" | |
| 914 | ||
| 915 | local SKILLTEXTCOLOR = C3(255/255, 176/255, 0/255) | |
| 916 | local SKILLFONT = "Fantasy" | |
| 917 | local SKILLTEXTSIZE = 7 | |
| 918 | ||
| 919 | Weapon.Parent = Character | |
| 920 | Humanoid.Parent = Character | |
| 921 | ||
| 922 | Humanoid.Died:connect(function() | |
| 923 | ATTACK = true | |
| 924 | end) | |
| 925 | ||
| 926 | local BODY = {}
| |
| 927 | for _, c in pairs(Character:GetDescendants()) do | |
| 928 | if c:IsA("BasePart") and c.Name ~= "Handle" then
| |
| 929 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
| 930 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 931 | end | |
| 932 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
| |
| 933 | elseif c:IsA("JointInstance") then
| |
| 934 | table.insert(BODY,{c,c.Parent,nil,nil,nil})
| |
| 935 | end | |
| 936 | end | |
| 937 | for e = 1, #BODY do | |
| 938 | if BODY[e] ~= nil then | |
| 939 | local STUFF = BODY[e] | |
| 940 | local PART = STUFF[1] | |
| 941 | local PARENT = STUFF[2] | |
| 942 | local MATERIAL = STUFF[3] | |
| 943 | local COLOR = STUFF[4] | |
| 944 | local TRANSPARENCY = STUFF[5] | |
| 945 | if PART.ClassName == "Part" and PART ~= RootPart then | |
| 946 | PART.Material = MATERIAL | |
| 947 | PART.Color = COLOR | |
| 948 | PART.Transparency = TRANSPARENCY | |
| 949 | end | |
| 950 | PART.AncestryChanged:Connect(function() | |
| 951 | PART.Parent = PARENT | |
| 952 | end) | |
| 953 | end | |
| 954 | end | |
| 955 | ||
| 956 | --//=================================\\ | |
| 957 | --|| ANIM | |
| 958 | --\\=================================// | |
| 959 | ||
| 960 | ||
| 961 | function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors) | |
| 962 | PLAYMAINANIM = false | |
| 963 | if WhichPose == "Cast1" then | |
| 964 | for i=0, Time, 0.1 / Animation_Speed do | |
| 965 | Swait() | |
| 966 | if Magic == true then | |
| 967 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Deep orange".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 968 | end | |
| 969 | if Gyro ~= nil and Gyro ~= false then | |
| 970 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
| 971 | end | |
| 972 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed) | |
| 973 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed) | |
| 974 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
| 975 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
| 976 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
| 977 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
| 978 | end | |
| 979 | elseif WhichPose == "Cast2" then | |
| 980 | for i=0, Time, 0.1 / Animation_Speed do | |
| 981 | Swait() | |
| 982 | if Magic == true then | |
| 983 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Deep orange".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 984 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Deep orange".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 985 | end | |
| 986 | if Gyro ~= nil and Gyro ~= false then | |
| 987 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
| 988 | end | |
| 989 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
| 990 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
| 991 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
| 992 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
| 993 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
| 994 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
| 995 | end | |
| 996 | elseif WhichPose == "RightArmUp" then | |
| 997 | for i=0, Time, 0.1 / Animation_Speed do | |
| 998 | Swait() | |
| 999 | if Magic == true then | |
| 1000 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightBarrel.CFrame*CF(0,2.5,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Deep orange".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1001 | end | |
| 1002 | if Gyro ~= nil and Gyro ~= false then | |
| 1003 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
| 1004 | end | |
| 1005 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
| 1006 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
| 1007 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(-90), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
| 1008 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
| 1009 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1010 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1011 | end | |
| 1012 | elseif WhichPose == "Taunt" then | |
| 1013 | for i=0, Time, 0.1 / Animation_Speed do | |
| 1014 | Swait() | |
| 1015 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
| 1016 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
| 1017 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
| 1018 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
| 1019 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
| 1020 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
| 1021 | end | |
| 1022 | CreateSound(221057812,Torso,10,1,false) | |
| 1023 | for i=0, Time*2, 0.1 / Animation_Speed do | |
| 1024 | Swait() | |
| 1025 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
| 1026 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
| 1027 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
| 1028 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
| 1029 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
| 1030 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
| 1031 | end | |
| 1032 | for i=0, Time, 0.1 / Animation_Speed do | |
| 1033 | Swait() | |
| 1034 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
| 1035 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed) | |
| 1036 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
| 1037 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
| 1038 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
| 1039 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
| 1040 | end | |
| 1041 | elseif WhichPose == "Prepare key" then | |
| 1042 | for i=0, Time, 0.1 / Animation_Speed do | |
| 1043 | Swait() | |
| 1044 | if Gyro ~= nil and Gyro ~= false then | |
| 1045 | Gyro.cframe = CF(RootPart.Position,Tors.Position) | |
| 1046 | end | |
| 1047 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed) | |
| 1048 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed) | |
| 1049 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
| 1050 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
| 1051 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
| 1052 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
| 1053 | end | |
| 1054 | elseif WhichPose == "Turn key" then | |
| 1055 | for i=0, Time, 0.1 / Animation_Speed do | |
| 1056 | Swait() | |
| 1057 | if Gyro ~= nil and Gyro ~= false then | |
| 1058 | Gyro.cframe = CF(RootPart.Position,Tors.Position) | |
| 1059 | end | |
| 1060 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed) | |
| 1061 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed) | |
| 1062 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
| 1063 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
| 1064 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
| 1065 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
| 1066 | end | |
| 1067 | end | |
| 1068 | PLAYMAINANIM = true | |
| 1069 | end | |
| 1070 | ||
| 1071 | --//=================================\\ | |
| 1072 | --|| DAMAGING | |
| 1073 | --\\=================================// | |
| 1074 | ||
| 1075 | function CastWarpOutlines(TARGET) | |
| 1076 | coroutine.resume(coroutine.create(function() | |
| 1077 | local T = TARGET:GetChildren() | |
| 1078 | for i = 1, #T do | |
| 1079 | local child = T[i] | |
| 1080 | if child.ClassName == "Part" or child.ClassName == "MeshPart" then | |
| 1081 | do | |
| 1082 | local clone = child:Clone() | |
| 1083 | clone.Parent = Effects | |
| 1084 | clone.Anchored = true | |
| 1085 | clone.CanCollide = false | |
| 1086 | clone:ClearAllChildren() | |
| 1087 | clone.CFrame = child.CFrame | |
| 1088 | if clone.Name == "Head" then | |
| 1089 | clone.Size = VT(clone.Size.Y, clone.Size.Y, clone.Size.Y) | |
| 1090 | end | |
| 1091 | if clone.ClassName == "MeshPart" then | |
| 1092 | clone.TextureID = "" | |
| 1093 | end | |
| 1094 | clone.Color = C3(255/255, 176/255, 0) | |
| 1095 | clone.Material = "Neon" | |
| 1096 | coroutine.resume(coroutine.create(function() | |
| 1097 | for i = 1, 100 do | |
| 1098 | Swait() | |
| 1099 | clone.Transparency = clone.Transparency + 0.01 | |
| 1100 | clone.Size = clone.Size + VT(0.001, 0.001, 0.001) | |
| 1101 | end | |
| 1102 | clone:remove() | |
| 1103 | end)) | |
| 1104 | end | |
| 1105 | end | |
| 1106 | end | |
| 1107 | end)) | |
| 1108 | end | |
| 1109 | ||
| 1110 | function ApplyDamage(Humanoid,Damage,TorsoPart) | |
| 1111 | local defence = Instance.new("BoolValue",Humanoid.Parent)
| |
| 1112 | defence.Name = ("HitBy"..Player.Name)
| |
| 1113 | game:GetService("Debris"):AddItem(defence, 0.001)
| |
| 1114 | Damage = Damage * DAMAGEMULTIPLIER | |
| 1115 | if Humanoid.Health ~= 0 then | |
| 1116 | local CritChance = MRANDOM(1,100) | |
| 1117 | if Damage > Humanoid.Health then | |
| 1118 | Damage = math.ceil(Humanoid.Health) | |
| 1119 | if Damage == 0 then | |
| 1120 | Damage = 0.1 | |
| 1121 | end | |
| 1122 | end | |
| 1123 | Humanoid.Health = Humanoid.Health - Damage | |
| 1124 | end | |
| 1125 | end | |
| 1126 | ||
| 1127 | function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL) | |
| 1128 | local CHILDREN = workspace:GetDescendants() | |
| 1129 | for index, CHILD in pairs(CHILDREN) do | |
| 1130 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
| 1131 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 1132 | if HUM then | |
| 1133 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 1134 | if TORSO then | |
| 1135 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
| 1136 | if INSTAKILL == true then | |
| 1137 | CHILD:BreakJoints() | |
| 1138 | else | |
| 1139 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
| 1140 | ApplyDamage(HUM,DMG,TORSO) | |
| 1141 | end | |
| 1142 | if FLING > 0 then | |
| 1143 | for _, c in pairs(CHILD:GetChildren()) do | |
| 1144 | if c:IsA("BasePart") then
| |
| 1145 | local bv = Instance.new("BodyVelocity")
| |
| 1146 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 1147 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
| 1148 | bv.Parent = c | |
| 1149 | Debris:AddItem(bv,0.05) | |
| 1150 | end | |
| 1151 | end | |
| 1152 | end | |
| 1153 | end | |
| 1154 | end | |
| 1155 | end | |
| 1156 | end | |
| 1157 | end | |
| 1158 | end | |
| 1159 | ||
| 1160 | function ApplyAoE(POSITION,RANGE,BRUTAL) | |
| 1161 | local CHILDREN = workspace:GetDescendants() | |
| 1162 | for index, CHILD in pairs(CHILDREN) do | |
| 1163 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 1164 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 1165 | if HUM then | |
| 1166 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 1167 | if TORSO then | |
| 1168 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
| 1169 | if BRUTAL == true then | |
| 1170 | Kill(CHILD) | |
| 1171 | else | |
| 1172 | CHILD:BreakJoints() | |
| 1173 | end | |
| 1174 | end | |
| 1175 | end | |
| 1176 | end | |
| 1177 | end | |
| 1178 | end | |
| 1179 | end | |
| 1180 | ||
| 1181 | function Kill(Char) | |
| 1182 | local NewCharacter = IT("Model",Effects)
| |
| 1183 | NewCharacter.Name = "Ow im ded ;-;" | |
| 1184 | for _, c in pairs(Char:GetDescendants()) do | |
| 1185 | if c:IsA("BasePart") and c.Transparency == 0 then
| |
| 1186 | if c.Parent == Char then | |
| 1187 | getbloody(c,5) | |
| 1188 | end | |
| 1189 | c:BreakJoints() | |
| 1190 | c.Material = "Glass" | |
| 1191 | c.Color = C3(1,0,0) | |
| 1192 | c.CanCollide = true | |
| 1193 | c.Transparency = 0.3 | |
| 1194 | if c:FindFirstChildOfClass("SpecialMesh") then
| |
| 1195 | c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
| |
| 1196 | end | |
| 1197 | if c.Name == "Head" then | |
| 1198 | c:ClearAllChildren() | |
| 1199 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
| 1200 | end | |
| 1201 | if c.ClassName == "MeshPart" then | |
| 1202 | c.TextureID = "" | |
| 1203 | end | |
| 1204 | if c:FindFirstChildOfClass("BodyPosition") then
| |
| 1205 | c:FindFirstChildOfClass("BodyPosition"):remove()
| |
| 1206 | end | |
| 1207 | if c:FindFirstChildOfClass("ParticleEmitter") then
| |
| 1208 | c:FindFirstChildOfClass("ParticleEmitter"):remove()
| |
| 1209 | end | |
| 1210 | c.Parent = NewCharacter | |
| 1211 | c.Name = "DeadPart" | |
| 1212 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
| 1213 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
| 1214 | end | |
| 1215 | end | |
| 1216 | Char:remove() | |
| 1217 | Debris:AddItem(NewCharacter,5) | |
| 1218 | end | |
| 1219 | ||
| 1220 | function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier) | |
| 1221 | local dmg = math.random(min,max) | |
| 1222 | for i,v in ipairs(workspace:GetChildren()) do | |
| 1223 | if v:FindFirstChild("HitBy"..Player.Name) == nil then
| |
| 1224 | local body = v:GetChildren() | |
| 1225 | for part = 1, #body do | |
| 1226 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
| |
| 1227 | if(body[part].Position - position).Magnitude < radius then | |
| 1228 | if v.ClassName == "Model" then | |
| 1229 | if v:FindFirstChildOfClass("Humanoid") then
| |
| 1230 | ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
| |
| 1231 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
| 1232 | end | |
| 1233 | end | |
| 1234 | end | |
| 1235 | end | |
| 1236 | end | |
| 1237 | end | |
| 1238 | if v:FindFirstChild("HitBy"..Player.Name) then
| |
| 1239 | v:FindFirstChild("HitBy"..Player.Name):remove()
| |
| 1240 | end | |
| 1241 | end | |
| 1242 | end | |
| 1243 | ||
| 1244 | function CreateCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
| 1245 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
| 1246 | local mesh = IT("SpecialMesh",wave)
| |
| 1247 | mesh.MeshType = "FileMesh" | |
| 1248 | mesh.MeshId = "http://www.roblox.com/asset/?id=1078075" | |
| 1249 | mesh.Scale = SIZE | |
| 1250 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
| 1251 | wave.CFrame = CFRAME | |
| 1252 | coroutine.resume(coroutine.create(function(PART) | |
| 1253 | for i = 1, WAIT do | |
| 1254 | Swait() | |
| 1255 | mesh.Scale = mesh.Scale + GROW | |
| 1256 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
| 1257 | if DOESROT == true then | |
| 1258 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
| 1259 | end | |
| 1260 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
| 1261 | if wave.Transparency > 0.99 then | |
| 1262 | wave:remove() | |
| 1263 | end | |
| 1264 | end | |
| 1265 | end)) | |
| 1266 | end | |
| 1267 | ||
| 1268 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
| 1269 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
| 1270 | local mesh = IT("SpecialMesh",wave)
| |
| 1271 | mesh.MeshType = "Sphere" | |
| 1272 | mesh.Scale = SIZE | |
| 1273 | mesh.Offset = VT(0,0,0) | |
| 1274 | wave.CFrame = CFRAME | |
| 1275 | coroutine.resume(coroutine.create(function(PART) | |
| 1276 | for i = 1, WAIT do | |
| 1277 | Swait() | |
| 1278 | mesh.Scale = mesh.Scale + GROW | |
| 1279 | wave.Transparency = wave.Transparency + (1/WAIT) | |
| 1280 | if wave.Transparency > 0.99 then | |
| 1281 | wave:remove() | |
| 1282 | end | |
| 1283 | end | |
| 1284 | end)) | |
| 1285 | end | |
| 1286 | ||
| 1287 | function killnearest(position, range, maxstrength) | |
| 1288 | for i, v in ipairs(workspace:GetChildren()) do | |
| 1289 | local body = v:GetChildren() | |
| 1290 | for part = 1, #body do | |
| 1291 | if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude and v.ClassName == "Model" then | |
| 1292 | CastWarpOutlines(v) | |
| 1293 | v:remove() | |
| 1294 | if game.Players:FindFirstChild(v.Name) then | |
| 1295 | local Value = IT("BoolValue", Kill)
| |
| 1296 | Value.Name = v.Name | |
| 1297 | end | |
| 1298 | end | |
| 1299 | end | |
| 1300 | end | |
| 1301 | end | |
| 1302 | ||
| 1303 | function MagicSphere3(SIZE, WAIT, CFRAME, COLOR, GROW) | |
| 1304 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Deep orange"), "Effect", VT(1, 1, 1), true)
| |
| 1305 | local mesh = IT("SpecialMesh", wave)
| |
| 1306 | mesh.MeshType = "Sphere" | |
| 1307 | mesh.Scale = SIZE | |
| 1308 | mesh.Offset = VT(0, 0, 0) | |
| 1309 | wave.CFrame = CFRAME | |
| 1310 | coroutine.resume(coroutine.create(function(PART) | |
| 1311 | for i = 1, WAIT do | |
| 1312 | Swait() | |
| 1313 | mesh.Scale = mesh.Scale + GROW | |
| 1314 | wave.Transparency = wave.Transparency + 1 / WAIT | |
| 1315 | if wave.Transparency > 0.99 then | |
| 1316 | wave:remove() | |
| 1317 | end | |
| 1318 | end | |
| 1319 | end)) | |
| 1320 | end | |
| 1321 | function MagicBlock(SIZE, WAIT, CFRAME, COLOR, GROW) | |
| 1322 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE, SIZE, SIZE), true) | |
| 1323 | local mesh = IT("BlockMesh", wave)
| |
| 1324 | wave.CFrame = CFRAME | |
| 1325 | coroutine.resume(coroutine.create(function(PART) | |
| 1326 | for i = 1, WAIT do | |
| 1327 | Swait() | |
| 1328 | mesh.Scale = mesh.Scale + GROW | |
| 1329 | wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360, 360)), RAD(math.random(-360, 360)), RAD(math.random(-360, 360))) | |
| 1330 | wave.Transparency = wave.Transparency + 1 / WAIT | |
| 1331 | if wave.Transparency > 0.99 then | |
| 1332 | wave:remove() | |
| 1333 | end | |
| 1334 | end | |
| 1335 | end)) | |
| 1336 | end | |
| 1337 | ||
| 1338 | --//=================================\\ | |
| 1339 | --|| ATTACK FUNCTIONS AND STUFF | |
| 1340 | --\\=================================// | |
| 1341 | ||
| 1342 | function TimeSweep() | |
| 1343 | ATTACK = true | |
| 1344 | Rooted = false | |
| 1345 | text.Text = "Cya" | |
| 1346 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 1347 | Swait() | |
| 1348 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1349 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 1*SIZE, -0.3*SIZE) * ANGLES(RAD(0.98), RAD(-119.59 + 2.5 * SIN(SINE / 25)), RAD(-175.39 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1350 | end | |
| 1351 | for e = 1, #BODY do | |
| 1352 | if BODY[e] ~= nil then | |
| 1353 | local STUFF = BODY[e] | |
| 1354 | local PART = STUFF[1] | |
| 1355 | if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then
| |
| 1356 | local PRT = PART:Clone() | |
| 1357 | PRT.Anchored = true | |
| 1358 | PRT.CanCollide = false | |
| 1359 | PRT.Material = "Glass" | |
| 1360 | PRT.Color = C3(0.5,0.5,0) | |
| 1361 | PRT.Name = "WarpEffect" | |
| 1362 | PRT.Parent = Effects | |
| 1363 | PRT.CFrame = PART.CFrame | |
| 1364 | PRT:BreakJoints() | |
| 1365 | if PRT:FindFirstChildOfClass("Sound") then
| |
| 1366 | PRT:FindFirstChildOfClass("Sound"):remove()
| |
| 1367 | end | |
| 1368 | if PRT:FindFirstChildOfClass("Decal") then
| |
| 1369 | PRT:FindFirstChildOfClass("Decal"):remove()
| |
| 1370 | end | |
| 1371 | coroutine.resume(coroutine.create(function() | |
| 1372 | for i = 1, 100 do | |
| 1373 | Swait() | |
| 1374 | PRT.Transparency = PRT.Transparency + 1/100 | |
| 1375 | end | |
| 1376 | PRT:remove() | |
| 1377 | end)) | |
| 1378 | end | |
| 1379 | end | |
| 1380 | end | |
| 1381 | CreateSound(289556450, Torso, 10, 1) | |
| 1382 | local POS = RootPart.Orientation | |
| 1383 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0)) | |
| 1384 | RootPart.Orientation = POS | |
| 1385 | RootJoint.Parent = RootPart | |
| 1386 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 1387 | Swait() | |
| 1388 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1389 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 1*SIZE, -0.3*SIZE) * ANGLES(RAD(0.98), RAD(-119.59 + 2.5 * SIN(SINE / 25)), RAD(-175.39 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1390 | end | |
| 1391 | for i=0, 0.1, 0.1 / Animation_Speed do | |
| 1392 | Swait() | |
| 1393 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 1*SIZE, -0.3*SIZE) * ANGLES(RAD(0.98), RAD(-119.59 + 2.5 * SIN(SINE / 25)), RAD(-175.39 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1394 | end | |
| 1395 | text.Text = "wanTH092" | |
| 1396 | ATTACK = false | |
| 1397 | Rooted = false | |
| 1398 | end | |
| 1399 | ||
| 1400 | function MagicMissiles() | |
| 1401 | ATTACK = true | |
| 1402 | Rooted = true | |
| 1403 | text.Text = "Look up bro." | |
| 1404 | local SELECTING = true | |
| 1405 | local SPOTS = {}
| |
| 1406 | coroutine.resume(coroutine.create(function() | |
| 1407 | local LOOP = 0 | |
| 1408 | repeat | |
| 1409 | LOOP = LOOP + 1 | |
| 1410 | Swait() | |
| 1411 | if LOOP >= 10 then | |
| 1412 | LOOP = 0 | |
| 1413 | for i = 1, #SPOTS do | |
| 1414 | if SPOTS[i] ~= nil then | |
| 1415 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0/255, 0/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 1416 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0/255, 0/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 1417 | end | |
| 1418 | end | |
| 1419 | end | |
| 1420 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
| 1421 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, -.1 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1422 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(155), RAD(-45), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1423 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1424 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1425 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1426 | until SELECTING == false | |
| 1427 | Rooted = false | |
| 1428 | repeat | |
| 1429 | LOOP = LOOP + 1 | |
| 1430 | Swait() | |
| 1431 | if LOOP >= 10 then | |
| 1432 | LOOP = 0 | |
| 1433 | for i = 1, #SPOTS do | |
| 1434 | if SPOTS[i] ~= nil then | |
| 1435 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 176/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 1436 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 176/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 1437 | end | |
| 1438 | end | |
| 1439 | end | |
| 1440 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
| 1441 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed) | |
| 1442 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1443 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1444 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1445 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1446 | until ATTACK == false | |
| 1447 | end)) | |
| 1448 | repeat | |
| 1449 | repeat Swait() until HOLD == true | |
| 1450 | local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude | |
| 1451 | if DIST > 9999999 then | |
| 1452 | DIST = 9999999 | |
| 1453 | end | |
| 1454 | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace) | |
| 1455 | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
| 1456 | if HITFLOOR ~= nil then | |
| 1457 | table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))) | |
| 1458 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(3,1,3), Transparency = 0, Transparency2 = 1, CFrame = RightBarrel.CFrame*CF(0,2.5,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 176/255, 0/255), SoundID = 213603013, SoundPitch = 1, SoundVolume = 6})
| |
| 1459 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(2,1.5,2), Transparency = 0, Transparency2 = 1, CFrame = RightBarrel.CFrame*CF(0,2.5,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 176/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 1460 | end | |
| 1461 | repeat Swait() until HOLD == false | |
| 1462 | until #SPOTS == 4 | |
| 1463 | SELECTING = false | |
| 1464 | for i = 1, #SPOTS do | |
| 1465 | if SPOTS[i] ~= nil then | |
| 1466 | local POS = SPOTS[i] | |
| 1467 | coroutine.resume(coroutine.create(function() | |
| 1468 | local MISSILE = IT("Model",Effects)
| |
| 1469 | MISSILE.Name = "Missile" | |
| 1470 | local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Deep orange", "Part", VT(2,2,2)) | |
| 1471 | MakeForm(BASEPART,"Cyl") | |
| 1472 | MISSILE.PrimaryPart = BASEPART | |
| 1473 | BASEPART.CFrame = POS*CF(0,-30*3,0) | |
| 1474 | local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Deep orange", "Part", VT(2,4,2)) | |
| 1475 | MakeForm(HEAD,"Ball") | |
| 1476 | HEAD.CFrame = BASEPART.CFrame*CF(0,1,0) | |
| 1477 | local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Deep orange", "Part", VT(2.5,0.1,2.5)) | |
| 1478 | MakeForm(TAIL,"Cyl") | |
| 1479 | TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0) | |
| 1480 | for i = 1, 10 do | |
| 1481 | Swait() | |
| 1482 | for _, c in pairs(MISSILE:GetChildren()) do | |
| 1483 | if c.ClassName == "Part" then | |
| 1484 | c.Transparency = c.Transparency - 1/10 | |
| 1485 | end | |
| 1486 | end | |
| 1487 | end | |
| 1488 | for i = 1, 15*1.5 do | |
| 1489 | Swait() | |
| 1490 | MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0)) | |
| 1491 | end | |
| 1492 | ApplyAoE(BASEPART.CFrame.p,80,140,180,300,false) | |
| 1493 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(300,4,300), Transparency = 0.5, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 255/255), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
| |
| 1494 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(140,140,140), Transparency = 0, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(255/255, 176/255, 0/255), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 4})
| |
| 1495 | WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(88,8,88), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 255/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 1496 | WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(80,12,80), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 176/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 1497 | MISSILE:remove() | |
| 1498 | end)) | |
| 1499 | end | |
| 1500 | end | |
| 1501 | wait(0.6) | |
| 1502 | text.Text = "wanTH092" | |
| 1503 | ATTACK = false | |
| 1504 | Rooted = false | |
| 1505 | end | |
| 1506 | ||
| 1507 | function TimesUp() | |
| 1508 | CLOCKTARGET = nil | |
| 1509 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 1510 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1511 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
| |
| 1512 | if TORSO then | |
| 1513 | ATTACK = true | |
| 1514 | Rooted = false | |
| 1515 | coroutine.resume(coroutine.create(function() | |
| 1516 | repeat | |
| 1517 | Swait() | |
| 1518 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
| 1519 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1520 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.5*SIZE, -0.2*SIZE) * ANGLES(RAD(75), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1521 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1522 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1523 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1524 | until ATTACK == false | |
| 1525 | end)) | |
| 1526 | if Effects:FindFirstChild("NeonDoll") then
| |
| 1527 | repeat Swait() until Effects:FindFirstChild("NeonDoll") == nil
| |
| 1528 | end | |
| 1529 | wait(0.5) | |
| 1530 | local FAKECHARACTER = IT("Model",Effects)
| |
| 1531 | FAKECHARACTER.Name = "NeonDoll" | |
| 1532 | local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Deep orange", "Part", VT(0.3,0.3,0.15),false) | |
| 1533 | CreateWeldOrSnapOrMotor("Weld", RING, RING, TORS, CF(0,0.6,0), CF(0,0,0))
| |
| 1534 | local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Deep orange", "Part", VT(0.15,0.3,0.15),false) | |
| 1535 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0,0.15,0))
| |
| 1536 | local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Deep orange", "Part", VT(0.15,0.3,0.15),false) | |
| 1537 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0,0.15,0))
| |
| 1538 | local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Deep orange", "Part", VT(0.15,0.3,0.15),false) | |
| 1539 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0,0.15,0))
| |
| 1540 | local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Deep orange", "Part", VT(0.15,0.3,0.15),false) | |
| 1541 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0,0.15,0))
| |
| 1542 | local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Deep orange", "Part", VT(0.15,0.15,0.15),false) | |
| 1543 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0))
| |
| 1544 | CreateSound(201858045, TORS, 5, 0.4, false) | |
| 1545 | for i = 1, 150 do | |
| 1546 | Swait() | |
| 1547 | text.Text = "Stand still this will take a few Sec" | |
| 1548 | CLOCKSPEED = 15 | |
| 1549 | for _, c in pairs(FAKECHARACTER:GetChildren()) do | |
| 1550 | if c.ClassName == "Part" then | |
| 1551 | c.Transparency = c.Transparency - 0.5/150 | |
| 1552 | end | |
| 1553 | end | |
| 1554 | end | |
| 1555 | CLOCKTARGET = HUM | |
| 1556 | coroutine.resume(coroutine.create(function() | |
| 1557 | repeat Swait() CLOCKSPEED = 0.5 until CLOCKTARGET == nil | |
| 1558 | for i = 1, 25 do | |
| 1559 | Swait() | |
| 1560 | for _, c in pairs(FAKECHARACTER:GetChildren()) do | |
| 1561 | if c.ClassName == "Part" then | |
| 1562 | c.Transparency = c.Transparency + 0.5/25 | |
| 1563 | end | |
| 1564 | end | |
| 1565 | end | |
| 1566 | CLOCKSPEED = 1 | |
| 1567 | FAKECHARACTER:remove() | |
| 1568 | end)) | |
| 1569 | wait(0.5) | |
| 1570 | text.Text = "wanTH092" | |
| 1571 | ATTACK = false | |
| 1572 | Rooted = false | |
| 1573 | end | |
| 1574 | end | |
| 1575 | end | |
| 1576 | ||
| 1577 | function ChainPunch() | |
| 1578 | ATTACK = true | |
| 1579 | Rooted = false | |
| 1580 | text.Text = "Lightning Dragon..." | |
| 1581 | local GYRO = IT("BodyGyro",RootPart)
| |
| 1582 | GYRO.D = 25 | |
| 1583 | GYRO.P = 2000 | |
| 1584 | GYRO.MaxTorque = VT(0,40000,0) | |
| 1585 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
| 1586 | repeat | |
| 1587 | Swait() | |
| 1588 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
| 1589 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
| 1590 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed) | |
| 1591 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1592 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1593 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1594 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1595 | until HOLD == true | |
| 1596 | local POS = Mouse.Hit.p | |
| 1597 | local CHAINS = false | |
| 1598 | local CHAINLINKS = {}
| |
| 1599 | local A = IT("Attachment",RightArm)
| |
| 1600 | A.Position = VT(1,-1,0)*SIZE | |
| 1601 | A.Orientation = VT(-90, -89.982, 0) | |
| 1602 | local B = IT("Attachment",RightArm)
| |
| 1603 | B.Position = VT(-1,-1,0)*SIZE | |
| 1604 | B.Orientation = VT(-90, 89.988, 0) | |
| 1605 | local C = IT("Attachment",RightArm)
| |
| 1606 | C.Position = VT(0.5,-1.3,0)*SIZE | |
| 1607 | C.Orientation = VT(-90, -89.982, 0) | |
| 1608 | local D = IT("Attachment",RightArm)
| |
| 1609 | D.Position = VT(-0.5,-1.3,0)*SIZE | |
| 1610 | D.Orientation = VT(-90, 89.988, 0) | |
| 1611 | local LIGHT = IT("Attachment",RightArm)
| |
| 1612 | LIGHT.Position = VT(0,-1,0)*SIZE | |
| 1613 | local LIGHT2 = IT("PointLight",LIGHT)
| |
| 1614 | LIGHT2.Range = 7 | |
| 1615 | LIGHT2.Brightness = 5 | |
| 1616 | LIGHT2.Color = SKILLTEXTCOLOR | |
| 1617 | for i = 1, 2 do | |
| 1618 | local TWIST = -2 | |
| 1619 | local START = A | |
| 1620 | local END = B | |
| 1621 | if i == 1 then | |
| 1622 | START = B | |
| 1623 | END = A | |
| 1624 | end | |
| 1625 | local ChainLink = IT("Beam",Torso)
| |
| 1626 | ChainLink.Texture = "rbxassetid://73042633" | |
| 1627 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
| 1628 | ChainLink.TextureSpeed = 1 | |
| 1629 | ChainLink.Width0 = 1 | |
| 1630 | ChainLink.Width1 = 1 | |
| 1631 | ChainLink.TextureLength = 2.5 | |
| 1632 | ChainLink.Attachment0 = START | |
| 1633 | ChainLink.Attachment1 = END | |
| 1634 | ChainLink.CurveSize0 = TWIST | |
| 1635 | ChainLink.CurveSize1 = TWIST | |
| 1636 | --ChainLink.FaceCamera = true | |
| 1637 | ChainLink.Segments = 45 | |
| 1638 | ChainLink.Transparency = NumberSequence.new(1) | |
| 1639 | table.insert(CHAINLINKS,ChainLink) | |
| 1640 | end | |
| 1641 | for i = 1, 2 do | |
| 1642 | local TWIST = -1 | |
| 1643 | local START = C | |
| 1644 | local END = D | |
| 1645 | if i == 1 then | |
| 1646 | START = D | |
| 1647 | END = C | |
| 1648 | end | |
| 1649 | local ChainLink = IT("Beam",Torso)
| |
| 1650 | ChainLink.Texture = "rbxassetid://73042633" | |
| 1651 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
| 1652 | ChainLink.TextureSpeed = 1 | |
| 1653 | ChainLink.Width0 = 1 | |
| 1654 | ChainLink.Width1 = 1 | |
| 1655 | ChainLink.TextureLength = 5 | |
| 1656 | ChainLink.Attachment0 = START | |
| 1657 | ChainLink.Attachment1 = END | |
| 1658 | ChainLink.CurveSize0 = TWIST | |
| 1659 | ChainLink.CurveSize1 = TWIST | |
| 1660 | --ChainLink.FaceCamera = true | |
| 1661 | ChainLink.Segments = 25 | |
| 1662 | ChainLink.LightEmission = 0.5 | |
| 1663 | ChainLink.Transparency = NumberSequence.new(1) | |
| 1664 | table.insert(CHAINLINKS,ChainLink) | |
| 1665 | end | |
| 1666 | coroutine.resume(coroutine.create(function() | |
| 1667 | repeat | |
| 1668 | Swait() | |
| 1669 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
| 1670 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed) | |
| 1671 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0.2*SIZE) * ANGLES(RAD(60), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1672 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1673 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1674 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1675 | until CHAINS == true | |
| 1676 | repeat | |
| 1677 | Swait() | |
| 1678 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
| 1679 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
| 1680 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, -0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1681 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1682 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1683 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1684 | until ATTACK == false | |
| 1685 | for e = 1, 15 do | |
| 1686 | Swait() | |
| 1687 | for i = 1, #CHAINLINKS do | |
| 1688 | CHAINLINKS[i].Transparency = NumberSequence.new((e/15)) | |
| 1689 | end | |
| 1690 | end | |
| 1691 | A:remove() | |
| 1692 | B:remove() | |
| 1693 | C:remove() | |
| 1694 | D:remove() | |
| 1695 | end)) | |
| 1696 | text.Text = "Smash!!!" | |
| 1697 | CreateSound(233856115, RightArm, 5, 1.2, false) | |
| 1698 | for e = 1, 15 do | |
| 1699 | Swait() | |
| 1700 | for i = 1, #CHAINLINKS do | |
| 1701 | CHAINLINKS[i].Transparency = NumberSequence.new(1-(e/15)) | |
| 1702 | end | |
| 1703 | end | |
| 1704 | CHAINS = true | |
| 1705 | Rooted = true | |
| 1706 | wait(0.25) | |
| 1707 | local FIST = CreatePart(3, Effects, "Neon", 0, 0.5, "Alder", "Part", VT(2,2,2)) | |
| 1708 | FIST.Color = C3(255/255, 176/255, 0/255) | |
| 1709 | FIST.CFrame = CF(RightArm.CFrame*CF(0,-1.3*SIZE,0).p,POS) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
| 1710 | local LIGHT3 = IT("PointLight",FIST)
| |
| 1711 | LIGHT3.Range = 7 | |
| 1712 | LIGHT3.Brightness = 5 | |
| 1713 | LIGHT3.Color = SKILLTEXTCOLOR | |
| 1714 | CreateMesh("SpecialMesh", FIST, "FileMesh", "90718752", "", VT(10,10,10), VT(0,0,0))
| |
| 1715 | local FISTA = IT("Attachment",FIST)
| |
| 1716 | FISTA.Position = VT(0.062, 0.977, 0) | |
| 1717 | local ChainLink = IT("Beam",Torso)
| |
| 1718 | ChainLink.Texture = "rbxassetid://73042633" | |
| 1719 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
| 1720 | ChainLink.TextureSpeed = 0 | |
| 1721 | ChainLink.Width0 = 3 | |
| 1722 | ChainLink.Width1 = 3 | |
| 1723 | ChainLink.TextureLength = 12 | |
| 1724 | ChainLink.Attachment0 = LIGHT | |
| 1725 | ChainLink.Attachment1 = FISTA | |
| 1726 | ChainLink.FaceCamera = true | |
| 1727 | ChainLink.Segments = 45 | |
| 1728 | ChainLink.LightEmission = 0.5 | |
| 1729 | ChainLink.Transparency = NumberSequence.new(0.25) | |
| 1730 | local FISTSOUND = CreateSound(288641686, FIST, 5, 1.2, false) | |
| 1731 | for i = 1, 85 do | |
| 1732 | Swait() | |
| 1733 | FIST.CFrame = FIST.CFrame*CF(0,-2,0) | |
| 1734 | ChainLink.TextureLength = 12+(i*2) | |
| 1735 | ApplyAoE(FIST.Position,10,15,25,100,false) | |
| 1736 | WACKYEFFECT({Time = 5, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.CFrame*CF(0,-1,0) * ANGLES(RAD(0), RAD(i*15), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(255/255, 176/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 1737 | local HITFLOOR = Raycast(FIST.Position, (CF(FIST.Position, FIST.CFrame*CF(0,-1,0).p)).lookVector, 2.1, Character) | |
| 1738 | if HITFLOOR ~= nil then | |
| 1739 | HITFLOOR:BreakJoints() | |
| 1740 | coroutine.resume(coroutine.create(function() | |
| 1741 | for i = 1, 15 do | |
| 1742 | Swait() | |
| 1743 | FISTSOUND.Volume = FISTSOUND.Volume - 0.15 | |
| 1744 | ApplyAoE(FIST.Position,10+(i*2),5,15,5,false) | |
| 1745 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(255/255, 176/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 1746 | end | |
| 1747 | end)) | |
| 1748 | break | |
| 1749 | end | |
| 1750 | end | |
| 1751 | coroutine.resume(coroutine.create(function() | |
| 1752 | for i = 1, 50 do | |
| 1753 | Swait() | |
| 1754 | FIST.Transparency = FIST.Transparency + 0.5/50 | |
| 1755 | LIGHT3.Range = LIGHT3.Range - 7/50 | |
| 1756 | end | |
| 1757 | FIST:remove() | |
| 1758 | end)) | |
| 1759 | LIGHT:remove() | |
| 1760 | GYRO:remove() | |
| 1761 | text.Text = "wanTH092" | |
| 1762 | ATTACK = false | |
| 1763 | Rooted = false | |
| 1764 | end | |
| 1765 | ||
| 1766 | function Taunt1() | |
| 1767 | ATTACK = true | |
| 1768 | Rooted = true | |
| 1769 | text.Text = "Just don't bore me" | |
| 1770 | local TAUNT = CreateSound(159882635, Torso,50, 1.08, false) | |
| 1771 | repeat | |
| 1772 | Swait() | |
| 1773 | TAUNT.Parent = Torso | |
| 1774 | TAUNT.Playing = true | |
| 1775 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
| 1776 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(-0.02, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed) | |
| 1777 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1778 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1779 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1780 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1781 | until TAUNT.TimePosition >= 1.25 | |
| 1782 | for i=0, 1.6, 0.1 / Animation_Speed do | |
| 1783 | text.Text = "Yeah.." | |
| 1784 | Swait() | |
| 1785 | TAUNT.Parent = Torso | |
| 1786 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
| 1787 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
| 1788 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1789 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1790 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1791 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1792 | end | |
| 1793 | text.Text = "wanTH092" | |
| 1794 | ATTACK = false | |
| 1795 | Rooted = false | |
| 1796 | end | |
| 1797 | ||
| 1798 | function Charge(TIME,GYRO) | |
| 1799 | local SND = CreateSound(ENERGYSOUND,Torso,6,TIME,false) | |
| 1800 | local G = nil | |
| 1801 | if GYRO == true then | |
| 1802 | G = IT("BodyGyro",RootPart)
| |
| 1803 | G.D = 250 | |
| 1804 | G.P = 200000 | |
| 1805 | G.MaxTorque = VT(math.huge,math.huge,math.huge) | |
| 1806 | end | |
| 1807 | for i=0, 4.5, 0.1 / Animation_Speed do | |
| 1808 | Swait() | |
| 1809 | if G then | |
| 1810 | G.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
| 1811 | end | |
| 1812 | WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(1.2,1.2,1.2), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BasePart.CFrame, MoveToPos = BasePart.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-4).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1813 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
| 1814 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1815 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(-90), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 1816 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 1817 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1818 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1819 | end | |
| 1820 | SND:remove() | |
| 1821 | if G then | |
| 1822 | return G | |
| 1823 | end | |
| 1824 | end | |
| 1825 | ||
| 1826 | function Reminder_Circle() | |
| 1827 | text.Text = "Reminder.." | |
| 1828 | ATTACK = true | |
| 1829 | Rooted = true | |
| 1830 | Charge(2,false) | |
| 1831 | local SND = CreateSound(EXPLOSIONSOUND,RootPart,10,1,false) | |
| 1832 | local SND2 = CreateSound(ENERGYSOUND,RootPart,10,1,false) | |
| 1833 | for i = 1, 60 do | |
| 1834 | Swait() | |
| 1835 | ApplyAoE(RootPart.Position,i*2.6,2,2,-400,true) | |
| 1836 | SND.Pitch = SND.Pitch - 1/60 | |
| 1837 | SND2.Pitch = SND.Pitch | |
| 1838 | WACKYEFFECT({TIME = 4, EffectType = "Wave", Size = VT(i*4,20,i*4), Size2 = VT(i*4,20,i*4), Transparency = 0.9, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1839 | WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,20,0), Size2 = VT(i*4,12,i*4), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1840 | WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,12,0), Size2 = VT(i*3.2,20,i*3.2), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(MRANDOM(-5,5)), RAD(i*5), RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1841 | text.Text = "Circle!!" | |
| 1842 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
| 1843 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1844 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(-45), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1845 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(45), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1846 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1847 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1848 | end | |
| 1849 | SND:remove() | |
| 1850 | SND2:remove() | |
| 1851 | text.Text = "wanTH092" | |
| 1852 | ATTACK = false | |
| 1853 | Rooted = false | |
| 1854 | end | |
| 1855 | ||
| 1856 | function Mornin_Star() | |
| 1857 | ATTACK = true | |
| 1858 | Rooted = true | |
| 1859 | text.Text = "Gud-" | |
| 1860 | for i=0, 2, 0.1 / Animation_Speed do | |
| 1861 | Swait() | |
| 1862 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
| 1863 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1864 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1865 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1866 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1867 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1868 | end | |
| 1869 | coroutine.resume(coroutine.create(function() | |
| 1870 | text.Text = "Mornin.." | |
| 1871 | local POS = Mouse.Hit.p | |
| 1872 | local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Deep orange", "Strike", VT(0,2000,0)) | |
| 1873 | MakeForm(RAY,"Cyl") | |
| 1874 | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "CGA orange", "Strike", VT(0,0,0)) | |
| 1875 | MakeForm(SPHERE,"Ball") | |
| 1876 | local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Deep orange", "Strike", VT(0,0,0)) | |
| 1877 | MakeForm(SHIELD,"Ball") | |
| 1878 | SHIELD.CFrame = CF(POS) | |
| 1879 | RAY.CFrame = CF(POS) | |
| 1880 | SPHERE.CFrame = CF(POS) | |
| 1881 | CreateSound(440145570, SPHERE, 10, 0.8, false) | |
| 1882 | CreateSound(415700134, SPHERE, 10, 0.8, false) | |
| 1883 | for i = 1, 200 do | |
| 1884 | Swait() | |
| 1885 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1886 | RAY.Size = RAY.Size + VT(0.05,0,0.05) | |
| 1887 | SPHERE.Size = SPHERE.Size + VT(2,2,2) | |
| 1888 | SHIELD.Size = SPHERE.Size + VT(3,3,3) | |
| 1889 | ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true) | |
| 1890 | end | |
| 1891 | for i = 1, 45 do | |
| 1892 | Swait() | |
| 1893 | RAY.Transparency = RAY.Transparency + 1/45 | |
| 1894 | SPHERE.Transparency = RAY.Transparency | |
| 1895 | SHIELD.Transparency = SPHERE.Transparency + 1/45 | |
| 1896 | end | |
| 1897 | RAY:remove() | |
| 1898 | SHIELD:remove() | |
| 1899 | SPHERE:remove() | |
| 1900 | end)) | |
| 1901 | for i=0, 1, 0.1 / Animation_Speed do | |
| 1902 | Swait() | |
| 1903 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
| 1904 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
| 1905 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-270), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1906 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1907 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1908 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1909 | end | |
| 1910 | text.Text = "wanTH092" | |
| 1911 | ATTACK = false | |
| 1912 | Rooted = false | |
| 1913 | end | |
| 1914 | ||
| 1915 | function Taunt2() | |
| 1916 | ATTACK = true | |
| 1917 | Rooted = true | |
| 1918 | text.Text = "I don't have all day.." | |
| 1919 | local TAUNT = CreateSound(159882303,Torso,10,1.07,false) | |
| 1920 | coroutine.resume(coroutine.create(function() | |
| 1921 | repeat | |
| 1922 | Swait() | |
| 1923 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
| 1924 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1925 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.75, -0.5) * ANGLES(RAD(100), RAD(-90), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1926 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.25, -0.5) * ANGLES(RAD(90), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1927 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1928 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1929 | until ATTACK == false | |
| 1930 | end)) | |
| 1931 | repeat wait() until TAUNT.Playing == false | |
| 1932 | text.Text = "wanTH092" | |
| 1933 | ATTACK = false | |
| 1934 | Rooted = false | |
| 1935 | end | |
| 1936 | ||
| 1937 | function Forget_Circle() | |
| 1938 | ATTACK = true | |
| 1939 | Rooted = true | |
| 1940 | text.Text = "Forget.." | |
| 1941 | for i=0, 1, 0.1 / Animation_Speed do | |
| 1942 | Swait() | |
| 1943 | MagicSphere(VT(65,2,65),15,RootPart.CFrame*CF(0,-3,0),"Deep orange",VT(0,0,0)) | |
| 1944 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1945 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1946 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(185), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1947 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1948 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1949 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
| 1950 | end | |
| 1951 | text.Text = "Crown!!" | |
| 1952 | CreateSound("588736245", RightArm, 8, 1)
| |
| 1953 | for i=0, 1, 0.1 / Animation_Speed do | |
| 1954 | Swait() | |
| 1955 | MagicSphere(VT(65,2,65),15,RootPart.CFrame*CF(0,-3,0),"Deep orange",VT(0,0,0)) | |
| 1956 | AoEDamage(RootPart.CFrame*CF(0,-3,0).p,35,5,8,5,2,2) | |
| 1957 | CreateCrown(VT(62,0,62),15,RootPart.CFrame*CF(0,-3,0),true,4,"Deep orange",VT(0,12,0)) | |
| 1958 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8 / Animation_Speed) | |
| 1959 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.8 / Animation_Speed) | |
| 1960 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, 0.8 / Animation_Speed) | |
| 1961 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1962 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.8 / Animation_Speed) | |
| 1963 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(90)), 0.8 / Animation_Speed) | |
| 1964 | end | |
| 1965 | text.Text = "wanTH092" | |
| 1966 | ATTACK = false | |
| 1967 | Rooted = false | |
| 1968 | end | |
| 1969 | ||
| 1970 | function AfterLife_Rain() | |
| 1971 | ATTACK = true | |
| 1972 | Rooted = true | |
| 1973 | text.Text = "AfterLife.." | |
| 1974 | for i=0, 0.6, 0.1 / Animation_Speed do | |
| 1975 | Swait() | |
| 1976 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1977 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1978 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
| 1979 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1980 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
| 1981 | end | |
| 1982 | local DONE = false | |
| 1983 | local GATE = nil | |
| 1984 | local GATESPIN = true | |
| 1985 | coroutine.resume(coroutine.create(function() | |
| 1986 | repeat | |
| 1987 | Swait() | |
| 1988 | if GATE ~= nil then | |
| 1989 | GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0)) | |
| 1990 | end | |
| 1991 | until GATESPIN == false | |
| 1992 | end)) | |
| 1993 | coroutine.resume(coroutine.create(function() | |
| 1994 | repeat | |
| 1995 | Swait() | |
| 1996 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1997 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1998 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
| 1999 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2000 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.3, 0.75, -0.5) * ANGLES(RAD(0), RAD(-180), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
| 2001 | until DONE == true | |
| 2002 | Swait(10) | |
| 2003 | for i = 1, 75 do | |
| 2004 | Swait(1.5) | |
| 2005 | local FIRED = false | |
| 2006 | local CHILDREN = workspace:GetDescendants() | |
| 2007 | for index, CHILD in pairs(CHILDREN) do | |
| 2008 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 2009 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 2010 | if HUM then | |
| 2011 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 2012 | if TORSO then | |
| 2013 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
| 2014 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
| 2015 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
| 2016 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 213603013, SoundPitch = 1.5, SoundVolume = 3})
| |
| 2017 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 2018 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
| 2019 | Kill(CHILD) | |
| 2020 | FIRED = true | |
| 2021 | break | |
| 2022 | end | |
| 2023 | end | |
| 2024 | end | |
| 2025 | end | |
| 2026 | end | |
| 2027 | if FIRED == false then | |
| 2028 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
| 2029 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 213603013, SoundPitch = 1.5, SoundVolume = 6})
| |
| 2030 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 2031 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
| 2032 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
| 2033 | if HITBOD ~= nil then | |
| 2034 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 2035 | Kill(HITBOD.Parent) | |
| 2036 | end | |
| 2037 | end | |
| 2038 | end | |
| 2039 | end | |
| 2040 | for i = 1, 45 do | |
| 2041 | Swait() | |
| 2042 | GATE.Size = GATE.Size - VT(3,0,3) | |
| 2043 | end | |
| 2044 | GATESPIN = false | |
| 2045 | GATE:remove() | |
| 2046 | end)) | |
| 2047 | text.Text = "Rain!!" | |
| 2048 | Swait(5) | |
| 2049 | local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p, (CF(Mouse.Hit.p, Mouse.Hit.p + VT(0, -1, 0))).lookVector, 15, Character) | |
| 2050 | GATE = CreatePart(3, Effects, "Neon", 0, 1, "Teal", "Gate", VT(0,0,0)) | |
| 2051 | local DECAL = IT("Decal",GATE)
| |
| 2052 | DECAL.Texture = "http://www.roblox.com/asset/?id=0" | |
| 2053 | DECAL.Face = "Top" | |
| 2054 | GATE.CFrame = CF(HITPOS) | |
| 2055 | CreateSound(160772554, GATE, 4, 1.3, false) | |
| 2056 | for i = 1, 45 do | |
| 2057 | Swait() | |
| 2058 | GATE.Size = GATE.Size + VT(3,0,3) | |
| 2059 | end | |
| 2060 | CreateSound(213603013, RightBarrel, 6, 1, false) | |
| 2061 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = RightBarrel.CFrame*CF(0,2.5,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 2062 | text.Text = "wanTH092" | |
| 2063 | ATTACK = false | |
| 2064 | Rooted = false | |
| 2065 | DONE = true | |
| 2066 | end | |
| 2067 | ||
| 2068 | function Spirital_Wall() | |
| 2069 | text.Text = "Cya" | |
| 2070 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 8, Character) | |
| 2071 | if HITFLOOR ~= nil then | |
| 2072 | if HITFLOOR.Anchored == true then | |
| 2073 | local WALL = HITFLOOR:Clone() | |
| 2074 | WALL.Size = VT(45,45,5) | |
| 2075 | WALL.Parent = Effects | |
| 2076 | WALL.Name = "Wall" | |
| 2077 | WALL.CFrame = RootPart.CFrame*CF(0,-65/2.1,-5)*ANGLES(RAD(-15),RAD(0),RAD(0)) | |
| 2078 | CreateSound(130972023,WALL,5,0.8,false) | |
| 2079 | ATTACK = true | |
| 2080 | Rooted = true | |
| 2081 | local HIT = WALL.Touched:Connect(function(hit) | |
| 2082 | if hit.Parent ~= Character then | |
| 2083 | hit:BreakJoints() | |
| 2084 | end | |
| 2085 | end) | |
| 2086 | coroutine.resume(coroutine.create(function() | |
| 2087 | WACKYEFFECT({Time = 35, EffectType = "Box", Size = WALL.Size, Size2 = WALL.Size*2, Transparency = 0, Transparency2 = 1, CFrame = WALL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 2088 | for i = 1, 90 do | |
| 2089 | Swait() | |
| 2090 | WALL.CFrame = WALL.CFrame*CF(0,0.5,0) | |
| 2091 | end | |
| 2092 | HIT:disconnect() | |
| 2093 | wait(5) | |
| 2094 | for i = 1, 46 do | |
| 2095 | Swait() | |
| 2096 | WALL.CFrame = WALL.CFrame*CF(0,-1,0) | |
| 2097 | end | |
| 2098 | WALL:remove() | |
| 2099 | end)) | |
| 2100 | Pose("RightArmUp",1.5,1.2,true)
| |
| 2101 | text.Text = "wanTH092" | |
| 2102 | ATTACK = false | |
| 2103 | Rooted = false | |
| 2104 | end | |
| 2105 | end | |
| 2106 | end | |
| 2107 | ||
| 2108 | function FoxRampage() | |
| 2109 | ATTACK = true | |
| 2110 | Rooted = false | |
| 2111 | text.Text = "FoxRampage!!!" | |
| 2112 | for i = 0, 2, 0.1 / Animation_Speed do | |
| 2113 | Swait() | |
| 2114 | turnto(Mouse.Hit.p) | |
| 2115 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
| 2116 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2117 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 2118 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 2119 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2120 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2121 | end | |
| 2122 | local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character) | |
| 2123 | repeat | |
| 2124 | Swait() | |
| 2125 | HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character) | |
| 2126 | until HITFLOOR ~= nil | |
| 2127 | CreateSound("238353911", RightBarrel, 10, MRANDOM(9, 11) / 10)
| |
| 2128 | local SOUND = CreateSound("415700134", Effects, 10, 1.6)
| |
| 2129 | CreateSound("138677306", Effects, 7, 1.2)
| |
| 2130 | coroutine.resume(coroutine.create(function() | |
| 2131 | local CFRAME = RootPart.CFrame * CF(0, -1.2, -3) | |
| 2132 | local SIZE = 1 | |
| 2133 | while true do | |
| 2134 | text.Text = "wanTH092" | |
| 2135 | Swait() | |
| 2136 | for i = 1, 2 do | |
| 2137 | MagicSphere(VT(SIZE / 5, SIZE / 5, SIZE * 2), 65, CF(CFRAME * CF(MRANDOM(-5, 5), MRANDOM(-5, 5), MRANDOM(-5, 5)).p, CFRAME.p), "Deep orange", VT(0.001, 0.001, 0), 0.5) | |
| 2138 | end | |
| 2139 | do | |
| 2140 | local Part = CreatePart(3, Effects, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(SIZE / 5, SIZE / 5, SIZE / 5)) | |
| 2141 | Part.CFrame = CFRAME * CF(SIZE / 1.5, -0.7, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))) | |
| 2142 | coroutine.resume(coroutine.create(function() | |
| 2143 | Swait(200) | |
| 2144 | Part.Anchored = false | |
| 2145 | end)) | |
| 2146 | local Part = CreatePart(3, Effects, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(SIZE / 5, SIZE / 5, SIZE / 5)) | |
| 2147 | Part.CFrame = CFRAME * CF(-SIZE / 1.5, -0.7, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))) | |
| 2148 | coroutine.resume(coroutine.create(function() | |
| 2149 | Swait(200) | |
| 2150 | Part.Anchored = false | |
| 2151 | end)) | |
| 2152 | MagicSphere(VT(SIZE, SIZE, SIZE), 75, CFRAME, "Deep orange", VT(-SIZE / 75, -SIZE / 75, -SIZE / 75)) | |
| 2153 | killnearest(CFRAME.p, SIZE, 0) | |
| 2154 | SIZE = SIZE + 2 | |
| 2155 | CFRAME = CFRAME * CF(0, 0, -2) | |
| 2156 | if SOUND.Playing == false then | |
| 2157 | break | |
| 2158 | end | |
| 2159 | end | |
| 2160 | end | |
| 2161 | end)) | |
| 2162 | MagicSphere(VT(0.1, 0.1, 0.1), 45, RightBarrel.CFrame, "Deep orange", VT(0.1, 5, 0.1)) | |
| 2163 | MagicSphere(VT(0.1, 0.1, 0.1), 45, RightBarrel.CFrame, "Deep orange", VT(0.05, 5, 0.05)) | |
| 2164 | for i = 0, 3, 0.1 / Animation_Speed do | |
| 2165 | Swait() | |
| 2166 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
| 2167 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2168 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(85), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 2169 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 2170 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2171 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2172 | end | |
| 2173 | ATTACK = false | |
| 2174 | Rooted = false | |
| 2175 | end | |
| 2176 | ||
| 2177 | --//=================================\\ | |
| 2178 | --|| ASSIGN THINGS TO KEYS | |
| 2179 | --\\=================================// | |
| 2180 | ||
| 2181 | function MouseDown(Mouse) | |
| 2182 | HOLD = true | |
| 2183 | if ATTACK == false then | |
| 2184 | end | |
| 2185 | end | |
| 2186 | ||
| 2187 | function MouseUp(Mouse) | |
| 2188 | HOLD = false | |
| 2189 | end | |
| 2190 | ||
| 2191 | function KeyDown(Key) | |
| 2192 | KEYHOLD = true | |
| 2193 | if Key == "z" and ATTACK == false then | |
| 2194 | MagicMissiles() | |
| 2195 | end | |
| 2196 | ||
| 2197 | if Key == "b" and ATTACK == false then | |
| 2198 | TimesUp() | |
| 2199 | end | |
| 2200 | ||
| 2201 | if Key == "c" and ATTACK == false then | |
| 2202 | ChainPunch() | |
| 2203 | end | |
| 2204 | ||
| 2205 | if Key == "q" and ATTACK == false then | |
| 2206 | TimeSweep() | |
| 2207 | end | |
| 2208 | ||
| 2209 | if Key == "e" and ATTACK == false then | |
| 2210 | Reminder_Circle() | |
| 2211 | end | |
| 2212 | ||
| 2213 | if Key == "v" and ATTACK == false then | |
| 2214 | Spirital_Wall() | |
| 2215 | end | |
| 2216 | ||
| 2217 | if Key == "r" and ATTACK == false then | |
| 2218 | Forget_Circle() | |
| 2219 | end | |
| 2220 | ||
| 2221 | if Key == "x" and ATTACK == false then | |
| 2222 | Mornin_Star() | |
| 2223 | end | |
| 2224 | ||
| 2225 | if Key == "g" and ATTACK == false then | |
| 2226 | FoxRampage() | |
| 2227 | end | |
| 2228 | ||
| 2229 | if Key == "f" and ATTACK == false then | |
| 2230 | AfterLife_Rain() | |
| 2231 | end | |
| 2232 | ||
| 2233 | if Key == "1" and ATTACK == false then | |
| 2234 | Taunt1() | |
| 2235 | end | |
| 2236 | if Key == "2" and ATTACK == false then | |
| 2237 | Taunt2() | |
| 2238 | end | |
| 2239 | end | |
| 2240 | ||
| 2241 | function KeyUp(Key) | |
| 2242 | KEYHOLD = false | |
| 2243 | end | |
| 2244 | ||
| 2245 | Mouse.Button1Down:connect(function(NEWKEY) | |
| 2246 | MouseDown(NEWKEY) | |
| 2247 | end) | |
| 2248 | Mouse.Button1Up:connect(function(NEWKEY) | |
| 2249 | MouseUp(NEWKEY) | |
| 2250 | end) | |
| 2251 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 2252 | KeyDown(NEWKEY) | |
| 2253 | end) | |
| 2254 | Mouse.KeyUp:connect(function(NEWKEY) | |
| 2255 | KeyUp(NEWKEY) | |
| 2256 | end) | |
| 2257 | ||
| 2258 | --//=================================\\ | |
| 2259 | --\\=================================// | |
| 2260 | ||
| 2261 | ||
| 2262 | function unanchor() | |
| 2263 | if UNANCHOR == true then | |
| 2264 | RootPart.Anchored = false | |
| 2265 | end | |
| 2266 | g = Character:GetChildren() | |
| 2267 | for i = 1, #g do | |
| 2268 | if g[i].ClassName == "Part" and g[i] ~= RootPart then | |
| 2269 | g[i].Anchored = false | |
| 2270 | end | |
| 2271 | end | |
| 2272 | g = Weapon:GetChildren() | |
| 2273 | for i = 1, #g do | |
| 2274 | if g[i].ClassName == "Part" then | |
| 2275 | g[i].Anchored = false | |
| 2276 | end | |
| 2277 | end | |
| 2278 | end | |
| 2279 | ||
| 2280 | ||
| 2281 | --//=================================\\ | |
| 2282 | --|| WRAP THE WHOLE SCRIPT UP | |
| 2283 | --\\=================================// | |
| 2284 | ||
| 2285 | Humanoid.Changed:connect(function(Jump) | |
| 2286 | if Jump == "Jump" and (Disable_Jump == true) then | |
| 2287 | Humanoid.Jump = false | |
| 2288 | end | |
| 2289 | end) | |
| 2290 | ||
| 2291 | while true do | |
| 2292 | Swait() | |
| 2293 | script.Parent = WEAPONGUI | |
| 2294 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
| 2295 | v:Stop(); | |
| 2296 | end | |
| 2297 | ANIMATE.Parent = nil | |
| 2298 | SINE = SINE + CHANGE*1.5 | |
| 2299 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
| 2300 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 2301 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
| 2302 | local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16) | |
| 2303 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
| 2304 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 2305 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 2306 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 0.875*SIZE - 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 2307 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 0.875*SIZE + 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(-25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 2308 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
| 2309 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2310 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2311 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2312 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2313 | end | |
| 2314 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
| 2315 | ANIM = "Jump" | |
| 2316 | if ATTACK == false then | |
| 2317 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2318 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2319 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2320 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2321 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed) | |
| 2322 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 1 / Animation_Speed) | |
| 2323 | end | |
| 2324 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
| 2325 | ANIM = "Fall" | |
| 2326 | if ATTACK == false then | |
| 2327 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2328 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2329 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2330 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2331 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed) | |
| 2332 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed) | |
| 2333 | end | |
| 2334 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
| 2335 | ANIM = "Idle" | |
| 2336 | if ATTACK == false then | |
| 2337 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
| 2338 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2339 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-5), RAD(25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2340 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2341 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2342 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2343 | end | |
| 2344 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
| 2345 | ANIM = "Walk" | |
| 2346 | if ATTACK == false then | |
| 2347 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2348 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(15 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 1/ Animation_Speed) | |
| 2349 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-5), RAD(25 + 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(-55 + 2.5 * SIN(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2350 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(55 - 2.5 * SIN(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2351 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 2352 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 2353 | end | |
| 2354 | end | |
| 2355 | unanchor() | |
| 2356 | Humanoid.MaxHealth = "inf" | |
| 2357 | Humanoid.Health = "inf" | |
| 2358 | if Rooted == false then | |
| 2359 | Disable_Jump = false | |
| 2360 | Humanoid.WalkSpeed = Speed | |
| 2361 | elseif Rooted == true then | |
| 2362 | Disable_Jump = true | |
| 2363 | Humanoid.WalkSpeed = 0 | |
| 2364 | end | |
| 2365 | for _, c in pairs(Character:GetChildren()) do | |
| 2366 | if c.ClassName == "Part" and c.Name ~= "Detail" then | |
| 2367 | c.Material = "Fabric" | |
| 2368 | if c:FindFirstChildOfClass("ParticleEmitter") then
| |
| 2369 | c:FindFirstChildOfClass("ParticleEmitter"):remove()
| |
| 2370 | end | |
| 2371 | if c ~= Head then | |
| 2372 | c.Color = C3(255/255,204/255,153/255) | |
| 2373 | else | |
| 2374 | c.Color = C3(255/255, 204/255, 153/255) | |
| 2375 | end | |
| 2376 | if c == Head then | |
| 2377 | if c:FindFirstChild("face") then
| |
| 2378 | c.face.Texture = "rbxassetid://31117192" | |
| 2379 | end | |
| 2380 | end | |
| 2381 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
| 2382 | c:remove() | |
| 2383 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
| 2384 | c:remove() | |
| 2385 | end | |
| 2386 | end | |
| 2387 | sick.SoundId = "rbxassetid://"..SONG | |
| 2388 | sick.Looped = true | |
| 2389 | sick.Pitch = 1 | |
| 2390 | sick.Volume = 1.5 | |
| 2391 | sick.Parent = Torso | |
| 2392 | sick:Resume() | |
| 2393 | --sick.Playing = false | |
| 2394 | Humanoid.Name = "wanTH092 = "..Player.Name | |
| 2395 | end | |
| 2396 | ||
| 2397 | --//=================================\\ | |
| 2398 | --\\=================================// | |
| 2399 | ||
| 2400 | ||
| 2401 | ||
| 2402 | ||
| 2403 | ||
| 2404 | --//====================================================\\-- | |
| 2405 | --|| END OF SCRIPT | |
| 2406 | --\\====================================================//-- |