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