SHOW:
|
|
- or go back to the newest paste.
| 1 | - | -- [[[ |
| 1 | + | local Player = game:GetService("Players").LocalPlayer
|
| 2 | - | --000000[[====================================================================================\\ |
| 2 | + | |
| 3 | - | --000000[[ DEIVIS97 EDIT |
| 3 | + | |
| 4 | - | --000000[[====================================================================================// |
| 4 | + | |
| 5 | - | -- [[[ |
| 5 | + | Mouse = Player:GetMouse() |
| 6 | - | -- This script has been converted to FE by iPxter |
| 6 | + | |
| 7 | TrailSettings = {
| |
| 8 | Lifetime = 1, | |
| 9 | - | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
|
| 9 | + | |
| 10 | - | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
| 10 | + | |
| 11 | - | do |
| 11 | + | |
| 12 | - | print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
|
| 12 | + | |
| 13 | - | script.Parent = Player.Character |
| 13 | + | |
| 14 | LowerBodyOnly = false, | |
| 15 | - | --RemoteEvent for communicating |
| 15 | + | |
| 16 | - | local Event = Instance.new("RemoteEvent")
|
| 16 | + | |
| 17 | - | Event.Name = "UserInput_Event" |
| 17 | + | |
| 18 | R15Parts = {"UpperTorso", "LowerTorso"}
| |
| 19 | - | --Fake event to make stuff like Mouse.KeyDown work |
| 19 | + | |
| 20 | - | local function fakeEvent() |
| 20 | + | |
| 21 | - | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
|
| 21 | + | |
| 22 | - | t.connect = t.Connect |
| 22 | + | |
| 23 | - | return t |
| 23 | + | |
| 24 | A1 = Instance.new("Attachment", Character.Head)
| |
| 25 | A2 = Instance.new("Attachment", Character["Right Arm"])
| |
| 26 | - | --Creating fake input objects with fake variables |
| 26 | + | |
| 27 | - | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
|
| 27 | + | |
| 28 | - | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
|
| 28 | + | |
| 29 | - | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
|
| 29 | + | |
| 30 | - | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
|
| 30 | + | |
| 31 | - | end} |
| 31 | + | |
| 32 | - | --Merged 2 functions into one by checking amount of arguments |
| 32 | + | |
| 33 | - | CAS.UnbindAction = CAS.BindAction |
| 33 | + | |
| 34 | Trail2.Parent = Character | |
| 35 | - | --This function will trigger the events that have been :Connect()'ed |
| 35 | + | |
| 36 | - | local function te(self,ev,...) |
| 36 | + | |
| 37 | - | local t = m[ev] |
| 37 | + | |
| 38 | - | if t and t._fakeEvent and t.Function then |
| 38 | + | |
| 39 | - | t.Function(...) |
| 39 | + | |
| 40 | Trail6.Parent = Character | |
| 41 | Trail6.Attachment0 = A1 | |
| 42 | - | m.TrigEvent = te |
| 42 | + | |
| 43 | - | UIS.TrigEvent = te |
| 43 | + | |
| 44 | Trail7.Parent = Character | |
| 45 | - | Event.OnServerEvent:Connect(function(plr,io) |
| 45 | + | |
| 46 | - | if plr~=Player then return end |
| 46 | + | |
| 47 | - | if io.isMouse then |
| 47 | + | |
| 48 | - | m.Target = io.Target |
| 48 | + | |
| 49 | - | m.Hit = io.Hit |
| 49 | + | |
| 50 | A1 = Instance.new("Attachment", Character.Head)
| |
| 51 | - | local b = io.UserInputState == Enum.UserInputState.Begin |
| 51 | + | |
| 52 | - | if io.UserInputType == Enum.UserInputType.MouseButton1 then |
| 52 | + | |
| 53 | - | return m:TrigEvent(b and "Button1Down" or "Button1Up") |
| 53 | + | |
| 54 | A3R = Instance.new("Attachment", Character.LeftLowerArm)
| |
| 55 | - | for _,t in pairs(CAS.Actions) do |
| 55 | + | |
| 56 | - | for _,k in pairs(t.Keys) do |
| 56 | + | |
| 57 | - | if k==io.KeyCode then |
| 57 | + | |
| 58 | - | t.Function(t.Name,io.UserInputState,io) |
| 58 | + | |
| 59 | Trail.Color = TrailSettings.Color1 | |
| 60 | Trail.Lifetime = TrailSettings.Lifetime | |
| 61 | local Trail2 = Trail:Clone() | |
| 62 | - | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) |
| 62 | + | |
| 63 | - | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) |
| 63 | + | |
| 64 | local Trail3 = Trail:Clone() | |
| 65 | Trail3.Parent = Character | |
| 66 | - | Event.Parent = NLS([==[ |
| 66 | + | |
| 67 | - | local Player = game:GetService("Players").LocalPlayer
|
| 67 | + | |
| 68 | - | local Event = script:WaitForChild("UserInput_Event")
|
| 68 | + | |
| 69 | Trail6.Attachment0 = A1 | |
| 70 | - | local UIS = game:GetService("UserInputService")
|
| 70 | + | |
| 71 | - | local input = function(io,a) |
| 71 | + | |
| 72 | - | if a then return end |
| 72 | + | |
| 73 | - | --Since InputObject is a client-side instance, we create and pass table instead |
| 73 | + | |
| 74 | - | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
|
| 74 | + | |
| 75 | local Trail1R = Trail:Clone() | |
| 76 | - | UIS.InputBegan:Connect(input) |
| 76 | + | |
| 77 | - | UIS.InputEnded:Connect(input) |
| 77 | + | |
| 78 | local Trail2R = Trail:Clone() | |
| 79 | - | local Mouse = Player:GetMouse() |
| 79 | + | |
| 80 | - | local h,t |
| 80 | + | |
| 81 | - | --Give the server mouse data 30 times every second, but only if the values changed |
| 81 | + | |
| 82 | - | --If player is not moving their mouse, client won't fire events |
| 82 | + | |
| 83 | - | while wait(1/30) do |
| 83 | + | |
| 84 | - | if h~=Mouse.Hit or t~=Mouse.Target then |
| 84 | + | |
| 85 | - | h,t=Mouse.Hit,Mouse.Target |
| 85 | + | |
| 86 | - | Event:FireServer({isMouse=true,Target=t,Hit=h})
|
| 86 | + | |
| 87 | Trail7.Attachment0 = A1 | |
| 88 | - | end]==],Player.Character) |
| 88 | + | |
| 89 | - | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS |
| 89 | + | |
| 90 | end | |
| 91 | function LowerBody() | |
| 92 | if TrailSettings.R15 == false then | |
| 93 | A4 = Instance.new("Attachment", Character["Right Leg"])
| |
| 94 | A5 = Instance.new("Attachment", Character["Left Leg"])
| |
| 95 | local Trail4 = Trail:Clone() | |
| 96 | Trail4.Parent = Character | |
| 97 | Trail4.Attachment1 = A4 | |
| 98 | local Trail5 = Trail:Clone() | |
| 99 | Trail5.Parent = Character | |
| 100 | Trail5.Attachment1 = A5 | |
| 101 | local Trail8 = Trail:Clone() | |
| 102 | Trail8.Parent = Character | |
| 103 | Trail8.Attachment0 = A2 | |
| 104 | Trail8.Attachment1 = A4 | |
| 105 | Trail8.Color = TrailSettings.Color2 | |
| 106 | local Trail9 = Trail:Clone() | |
| 107 | Trail9.Parent = Character | |
| 108 | Trail9.Attachment0 = A3 | |
| 109 | Trail9.Attachment1 = A5 | |
| 110 | Trail9.Color = TrailSettings.Color2 | |
| 111 | local FT = Trail:Clone() | |
| 112 | FT.Parent = Character | |
| 113 | FT.Attachment0 = A4 | |
| 114 | FT.Attachment1 = A5 | |
| 115 | FT.Color = TrailSettings.Color2 | |
| 116 | else | |
| 117 | A4 = Instance.new("Attachment", Character.RightLowerLeg)
| |
| 118 | A4R = Instance.new("Attachment", Character.RightUpperLeg)
| |
| 119 | A5 = Instance.new("Attachment", Character.LeftLowerLeg)
| |
| 120 | A5R = Instance.new("Attachment", Character.LeftUpperLeg)
| |
| 121 | local Trail4 = Trail:Clone() | |
| 122 | Trail4.Parent = Character | |
| 123 | Trail4.Attachment1 = A4 | |
| 124 | local Trail5 = Trail:Clone() | |
| 125 | Trail5.Parent = Character | |
| 126 | Trail5.Attachment1 = A5 | |
| 127 | local Trail8 = Trail:Clone() | |
| 128 | Trail8.Parent = Character | |
| 129 | Trail8.Attachment0 = A2 | |
| 130 | Trail8.Attachment1 = A4 | |
| 131 | Trail8.Color = TrailSettings.Color2 | |
| 132 | local Trail9 = Trail:Clone() | |
| 133 | Trail9.Parent = Character | |
| 134 | Trail9.Attachment0 = A3 | |
| 135 | Trail9.Attachment1 = A5 | |
| 136 | Trail9.Color = TrailSettings.Color2 | |
| 137 | local FT = Trail:Clone() | |
| 138 | FT.Parent = Character | |
| 139 | FT.Attachment0 = A4 | |
| 140 | FT.Attachment1 = A5 | |
| 141 | FT.Color = TrailSettings.Color2 | |
| 142 | local Trail3R = Trail:Clone() | |
| 143 | Trail3R.Parent = Character | |
| 144 | Trail3R.Attachment1 = A4R | |
| 145 | local Trail4R = Trail:Clone() | |
| 146 | Trail4R.Parent = Character | |
| 147 | Trail4R.Attachment1 = A5R | |
| 148 | local Trail8 = Trail:Clone() | |
| 149 | Trail8.Parent = Character | |
| 150 | Trail8.Attachment0 = A2R | |
| 151 | Trail8.Attachment1 = A4R | |
| 152 | Trail8.Color = TrailSettings.Color2 | |
| 153 | local Trail9 = Trail:Clone() | |
| 154 | Trail9.Parent = Character | |
| 155 | Trail9.Attachment0 = A3R | |
| 156 | Trail9.Attachment1 = A5R | |
| 157 | Trail9.Color = TrailSettings.Color2 | |
| 158 | local FT2R = Trail:Clone() | |
| 159 | FT2R.Parent = Character | |
| 160 | FT2R.Attachment0 = A4R | |
| 161 | FT2R.Attachment1 = A5R | |
| 162 | FT2R.Color = TrailSettings.Color2 | |
| 163 | end | |
| 164 | end | |
| 165 | function AllBody() | |
| 166 | UpperBody() | |
| 167 | LowerBody() | |
| 168 | end | |
| 169 | if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then | |
| 170 | TrailSettings.UpperBodyOnly = false | |
| 171 | TrailSettings.LowerBodyOnly = false | |
| 172 | elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then | |
| 173 | TrailSettings.UpperBodyOnly = false | |
| 174 | TrailSettings.LowerBodyOnly = false | |
| 175 | elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then | |
| 176 | TrailSettings.UpperBodyOnly = false | |
| 177 | TrailSettings.LowerBodyOnly = false | |
| 178 | elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then | |
| 179 | TrailSettings.AllBody = true | |
| 180 | TrailSettings.UpperBodyOnly = false | |
| 181 | TrailSettings.LowerBodyOnly = false | |
| 182 | end | |
| 183 | if TrailSettings.UpperBodyOnly == true then | |
| 184 | UpperBody() | |
| 185 | print("Called Upper Body Trail")
| |
| 186 | elseif TrailSettings.LowerBodyOnly == true then | |
| 187 | LowerBody() | |
| 188 | print("Called Lower Body Trail")
| |
| 189 | elseif TrailSettings.AllBody == true then | |
| 190 | AllBody() | |
| 191 | print("Called Full Body Trail")
| |
| 192 | end | |
| 193 | if TrailSettings.Accessories == true then | |
| 194 | for Index, Item in pairs(Character:GetChildren()) do | |
| 195 | if Item:IsA("Accessory") then
| |
| 196 | local AA = Instance.new("Attachment", Item.Handle)
| |
| 197 | local ATrail = Trail:Clone() | |
| 198 | ATrail.Parent = Character | |
| 199 | ATrail.Attachment1 = AA | |
| 200 | end | |
| 201 | end | |
| 202 | end | |
| 203 | if TrailSettings.Extras == true then | |
| 204 | spawn(function() | |
| 205 | repeat | |
| 206 | wait() | |
| 207 | until Trail | |
| 208 | local AB = Instance.new("Attachment", a)
| |
| 209 | local ABT = Trail:Clone() | |
| 210 | ABT.Parent = Character | |
| 211 | ABT.Attachment0 = A4 | |
| 212 | ABT.Attachment1 = AB | |
| 213 | ABT.Color = TrailSettings.Color2 | |
| 214 | local ABT2 = Trail:Clone() | |
| 215 | ABT2.Parent = Character | |
| 216 | ABT2.Attachment0 = A5 | |
| 217 | ABT2.Attachment1 = AB | |
| 218 | ABT2.Color = TrailSettings.Color2 | |
| 219 | end) | |
| 220 | end | |
| 221 | wait(0.1) | |
| 222 | --//====================================================\\-- | |
| 223 | --|| CREATED BY SHACKLUSTER | |
| 224 | --\\====================================================//-- | |
| 225 | ||
| 226 | local Player = owner | |
| 227 | local Character = Player.Character | |
| 228 | local Humanoid = Character.Humanoid | |
| 229 | local LeftArm = Character["Left Arm"] | |
| 230 | local RightArm = Character["Right Arm"] | |
| 231 | local LeftLeg = Character["Left Leg"] | |
| 232 | local RightLeg = Character["Right Leg"] | |
| 233 | local Head = Character.Head | |
| 234 | local Torso = Character.Torso | |
| 235 | local Camera = game.Workspace.CurrentCamera | |
| 236 | local RootPart = Character.HumanoidRootPart | |
| 237 | local RootJoint = RootPart.RootJoint | |
| 238 | local attack = false | |
| 239 | local Anim = 'Idle' | |
| 240 | local Lighty = game:GetService"Lighting" | |
| 241 | local attacktype = 1 | |
| 242 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 243 | local velocity = RootPart.Velocity.y | |
| 244 | local sine = 0 | |
| 245 | local change = 1 | |
| 246 | local bored = {492070484,1232162751,1534958855,303535614,1117396305,0}
| |
| 247 | local Create = LoadLibrary("RbxUtility").Create
| |
| 248 | function swait(num) | |
| 249 | if num == 0 or num == nil then | |
| 250 | ArtificialHB.Event:wait() | |
| 251 | else | |
| 252 | for i = 0, num do | |
| 253 | ArtificialHB.Event:wait() | |
| 254 | end | |
| 255 | end | |
| 256 | end | |
| 257 | ||
| 258 | local chara = Character | |
| 259 | local m = Create("Model"){
| |
| 260 | Parent = Character, | |
| 261 | Name = "WeaponModel", | |
| 262 | } | |
| 263 | function chatfunc(text) | |
| 264 | local chat = coroutine.wrap(function() | |
| 265 | if Character:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 266 | Character:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 267 | end | |
| 268 | local Bill = Instance.new("BillboardGui",Character)
| |
| 269 | Bill.Size = UDim2.new(0,100,0,40) | |
| 270 | Bill.StudsOffset = Vector3.new(0,3,0) | |
| 271 | Bill.Adornee = Character.Head | |
| 272 | Bill.Name = "TalkingBillBoard" | |
| 273 | local Hehe = Instance.new("TextLabel",Bill)
| |
| 274 | Hehe.BackgroundTransparency = 1 | |
| 275 | Hehe.BorderSizePixel = 0 | |
| 276 | Hehe.Text = "" | |
| 277 | Hehe.Font = "Garamond" | |
| 278 | Hehe.TextSize = 40 | |
| 279 | Hehe.TextStrokeTransparency = 0 | |
| 280 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
| 281 | coroutine.resume(coroutine.create(function() | |
| 282 | while Hehe ~= nil do | |
| 283 | swait() | |
| 284 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
| 285 | Hehe.Rotation = math.random(-5,5) | |
| 286 | Hehe.TextColor3 = Color3.new(255,255,0) | |
| 287 | Hehe.TextStrokeColor3 = Color3.new(0,0,0) | |
| 288 | end | |
| 289 | end)) | |
| 290 | for i = 1,string.len(text),1 do | |
| 291 | swait() | |
| 292 | Hehe.Text = string.sub(text,1,i) | |
| 293 | end | |
| 294 | swait(90)--Re[math.random(1, 93)] | |
| 295 | for i = 0, 1, .025 do | |
| 296 | swait() | |
| 297 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
| 298 | Hehe.TextStrokeTransparency = i | |
| 299 | Hehe.TextTransparency = i | |
| 300 | end | |
| 301 | Bill:Destroy() | |
| 302 | end) | |
| 303 | chat() | |
| 304 | end | |
| 305 | ||
| 306 | function onChatted(msg) | |
| 307 | chatfunc(msg) | |
| 308 | end | |
| 309 | ||
| 310 | Player.Chatted:connect(onChatted) | |
| 311 | wait(0.2) | |
| 312 | ||
| 313 | Player = owner | |
| 314 | PlayerGui = Player.PlayerGui | |
| 315 | Cam = workspace.CurrentCamera | |
| 316 | Backpack = Player.Backpack | |
| 317 | Character = Player.Character | |
| 318 | Humanoid = Character.Humanoid | |
| 319 | RootPart = Character["HumanoidRootPart"] | |
| 320 | Torso = Character["Torso"] | |
| 321 | Head = Character["Head"] | |
| 322 | RightArm = Character["Right Arm"] | |
| 323 | LeftArm = Character["Left Arm"] | |
| 324 | RightLeg = Character["Right Leg"] | |
| 325 | LeftLeg = Character["Left Leg"] | |
| 326 | RootJoint = RootPart["RootJoint"] | |
| 327 | Neck = Torso["Neck"] | |
| 328 | RightShoulder = Torso["Right Shoulder"] | |
| 329 | LeftShoulder = Torso["Left Shoulder"] | |
| 330 | RightHip = Torso["Right Hip"] | |
| 331 | LeftHip = Torso["Left Hip"] | |
| 332 | Character.Archivable = true | |
| 333 | Player:ClearCharacterAppearance() | |
| 334 | ||
| 335 | IT = Instance.new | |
| 336 | CF = CFrame.new | |
| 337 | VT = Vector3.new | |
| 338 | RAD = math.rad | |
| 339 | C3 = Color3.new | |
| 340 | UD2 = UDim2.new | |
| 341 | BRICKC = BrickColor.new | |
| 342 | ANGLES = CFrame.Angles | |
| 343 | EULER = CFrame.fromEulerAnglesXYZ | |
| 344 | COS = math.cos | |
| 345 | ACOS = math.acos | |
| 346 | SIN = math.sin | |
| 347 | ASIN = math.asin | |
| 348 | ABS = math.abs | |
| 349 | MRANDOM = math.random | |
| 350 | FLOOR = math.floor | |
| 351 | local CHOICE = MRANDOM(1,5) | |
| 352 | --//=================================\\ | |
| 353 | --|| USEFUL VALUES | |
| 354 | --\\=================================// | |
| 355 | ||
| 356 | Animation_Speed = 3 | |
| 357 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 358 | local Speed = 20 | |
| 359 | local SIZE = 1.4 | |
| 360 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 361 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 362 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
| 363 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
| 364 | local DAMAGEMULTIPLIER = "inf" | |
| 365 | local ANIM = "Idle" | |
| 366 | local ATTACK = false | |
| 367 | local EQUIPPED = false | |
| 368 | local HOLD = false | |
| 369 | local COMBO = 1 | |
| 370 | local Rooted = false | |
| 371 | local SINE = 0 | |
| 372 | local KEYHOLD = false | |
| 373 | local CHANGE = 2 / Animation_Speed | |
| 374 | local WALKINGANIM = false | |
| 375 | local VALUE1 = false | |
| 376 | local VALUE2 = false | |
| 377 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 378 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 379 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 380 | local ATANIM = IT("Animation")
| |
| 381 | ATANIM.Name = "Attack Animation" | |
| 382 | ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663" | |
| 383 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
| 384 | local WEAPONGUI = IT("ScreenGui", PlayerGui)
| |
| 385 | WEAPONGUI.Name = "Weapon GUI" | |
| 386 | local Weapon = IT("Model")
| |
| 387 | Weapon.Name = "Adds" | |
| 388 | local Effects = IT("Folder", Weapon)
| |
| 389 | Effects.Name = "Effects" | |
| 390 | local ANIMATOR = Humanoid.Animator | |
| 391 | local ANIMATE = Character.Animate | |
| 392 | local UNANCHOR = true | |
| 393 | local CLOCKLOOP = 0 | |
| 394 | local SONG = 492070484 | |
| 395 | local CLOCKTARGET = nil | |
| 396 | local CLOCKSPEED = 4 | |
| 397 | script.Parent = WEAPONGUI | |
| 398 | local CLONE = Character:Clone() | |
| 399 | CLONE.Parent = nil | |
| 400 | Character.Archivable = false | |
| 401 | local sick = Instance.new("Sound",Torso)
| |
| 402 | sick.Volume = 50999 | |
| 403 | ||
| 404 | --//=================================\\ | |
| 405 | --\\=================================// | |
| 406 | ||
| 407 | ||
| 408 | --//=================================\\ | |
| 409 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
| 410 | --\\=================================// | |
| 411 | ||
| 412 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 413 | ArtificialHB.Name = "ArtificialHB" | |
| 414 | ||
| 415 | script:WaitForChild("ArtificialHB")
| |
| 416 | ||
| 417 | frame = Frame_Speed | |
| 418 | tf = 0 | |
| 419 | allowframeloss = false | |
| 420 | tossremainder = false | |
| 421 | lastframe = tick() | |
| 422 | script.ArtificialHB:Fire() | |
| 423 | ||
| 424 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 425 | tf = tf + s | |
| 426 | if tf >= frame then | |
| 427 | if allowframeloss then | |
| 428 | script.ArtificialHB:Fire() | |
| 429 | lastframe = tick() | |
| 430 | else | |
| 431 | for i = 1, math.floor(tf / frame) do | |
| 432 | script.ArtificialHB:Fire() | |
| 433 | end | |
| 434 | lastframe = tick() | |
| 435 | end | |
| 436 | if tossremainder then | |
| 437 | tf = 0 | |
| 438 | else | |
| 439 | tf = tf - frame * math.floor(tf / frame) | |
| 440 | end | |
| 441 | end | |
| 442 | end) | |
| 443 | ||
| 444 | --//=================================\\ | |
| 445 | --\\=================================// | |
| 446 | ||
| 447 | --//=================================\\ | |
| 448 | --|| SOME FUNCTIONS | |
| 449 | --\\=================================// | |
| 450 | ||
| 451 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 452 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 453 | end | |
| 454 | ||
| 455 | function PositiveAngle(NUMBER) | |
| 456 | if NUMBER >= 0 then | |
| 457 | NUMBER = 0 | |
| 458 | end | |
| 459 | return NUMBER | |
| 460 | end | |
| 461 | ||
| 462 | function NegativeAngle(NUMBER) | |
| 463 | if NUMBER <= 0 then | |
| 464 | NUMBER = 0 | |
| 465 | end | |
| 466 | return NUMBER | |
| 467 | end | |
| 468 | ||
| 469 | function Swait(NUMBER) | |
| 470 | if NUMBER == 0 or NUMBER == nil then | |
| 471 | ArtificialHB.Event:wait() | |
| 472 | else | |
| 473 | for i = 1, NUMBER do | |
| 474 | ArtificialHB.Event:wait() | |
| 475 | end | |
| 476 | end | |
| 477 | end | |
| 478 | ||
| 479 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 480 | local NEWMESH = IT(MESH) | |
| 481 | if MESH == "SpecialMesh" then | |
| 482 | NEWMESH.MeshType = MESHTYPE | |
| 483 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 484 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 485 | end | |
| 486 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 487 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 488 | end | |
| 489 | end | |
| 490 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 491 | NEWMESH.Scale = SCALE | |
| 492 | NEWMESH.Parent = PARENT | |
| 493 | return NEWMESH | |
| 494 | end | |
| 495 | ||
| 496 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 497 | local NEWPART = IT("Part")
| |
| 498 | NEWPART.formFactor = FORMFACTOR | |
| 499 | NEWPART.Reflectance = REFLECTANCE | |
| 500 | NEWPART.Transparency = TRANSPARENCY | |
| 501 | NEWPART.CanCollide = false | |
| 502 | NEWPART.Locked = true | |
| 503 | NEWPART.Anchored = true | |
| 504 | if ANCHOR == false then | |
| 505 | NEWPART.Anchored = false | |
| 506 | end | |
| 507 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 508 | NEWPART.Name = NAME | |
| 509 | NEWPART.Size = SIZE | |
| 510 | NEWPART.Position = Torso.Position | |
| 511 | NEWPART.Material = MATERIAL | |
| 512 | NEWPART:BreakJoints() | |
| 513 | NEWPART.Parent = PARENT | |
| 514 | return NEWPART | |
| 515 | end | |
| 516 | ||
| 517 | local function weldBetween(a, b) | |
| 518 | local weldd = Instance.new("ManualWeld")
| |
| 519 | weldd.Part0 = a | |
| 520 | weldd.Part1 = b | |
| 521 | weldd.C0 = CFrame.new() | |
| 522 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 523 | weldd.Parent = a | |
| 524 | return weldd | |
| 525 | end | |
| 526 | ||
| 527 | ||
| 528 | function QuaternionFromCFrame(cf) | |
| 529 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 530 | local trace = m00 + m11 + m22 | |
| 531 | if trace > 0 then | |
| 532 | local s = math.sqrt(1 + trace) | |
| 533 | local recip = 0.5 / s | |
| 534 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 535 | else | |
| 536 | local i = 0 | |
| 537 | if m11 > m00 then | |
| 538 | i = 1 | |
| 539 | end | |
| 540 | if m22 > (i == 0 and m00 or m11) then | |
| 541 | i = 2 | |
| 542 | end | |
| 543 | if i == 0 then | |
| 544 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 545 | local recip = 0.5 / s | |
| 546 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 547 | elseif i == 1 then | |
| 548 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 549 | local recip = 0.5 / s | |
| 550 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 551 | elseif i == 2 then | |
| 552 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 553 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 554 | end | |
| 555 | end | |
| 556 | end | |
| 557 | ||
| 558 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 559 | local xs, ys, zs = x + x, y + y, z + z | |
| 560 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 561 | local xx = x * xs | |
| 562 | local xy = x * ys | |
| 563 | local xz = x * zs | |
| 564 | local yy = y * ys | |
| 565 | local yz = y * zs | |
| 566 | local zz = z * zs | |
| 567 | 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)) | |
| 568 | end | |
| 569 | ||
| 570 | function QuaternionSlerp(a, b, t) | |
| 571 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 572 | local startInterp, finishInterp; | |
| 573 | if cosTheta >= 0.0001 then | |
| 574 | if (1 - cosTheta) > 0.0001 then | |
| 575 | local theta = ACOS(cosTheta) | |
| 576 | local invSinTheta = 1 / SIN(theta) | |
| 577 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 578 | finishInterp = SIN(t * theta) * invSinTheta | |
| 579 | else | |
| 580 | startInterp = 1 - t | |
| 581 | finishInterp = t | |
| 582 | end | |
| 583 | else | |
| 584 | if (1 + cosTheta) > 0.0001 then | |
| 585 | local theta = ACOS(-cosTheta) | |
| 586 | local invSinTheta = 1 / SIN(theta) | |
| 587 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 588 | finishInterp = SIN(t * theta) * invSinTheta | |
| 589 | else | |
| 590 | startInterp = t - 1 | |
| 591 | finishInterp = t | |
| 592 | end | |
| 593 | end | |
| 594 | 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 | |
| 595 | end | |
| 596 | ||
| 597 | function Clerp(a, b, t) | |
| 598 | local qa = {QuaternionFromCFrame(a)}
| |
| 599 | local qb = {QuaternionFromCFrame(b)}
| |
| 600 | local ax, ay, az = a.x, a.y, a.z | |
| 601 | local bx, by, bz = b.x, b.y, b.z | |
| 602 | local _t = 1 - t | |
| 603 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 604 | end | |
| 605 | ||
| 606 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 607 | local frame = IT("Frame")
| |
| 608 | frame.BackgroundTransparency = TRANSPARENCY | |
| 609 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 610 | frame.Position = POSITION | |
| 611 | frame.Size = SIZE | |
| 612 | frame.BackgroundColor3 = COLOR | |
| 613 | frame.BorderColor3 = BORDERCOLOR | |
| 614 | frame.Name = NAME | |
| 615 | frame.Parent = PARENT | |
| 616 | return frame | |
| 617 | end | |
| 618 | ||
| 619 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 620 | local label = IT("TextLabel")
| |
| 621 | label.BackgroundTransparency = 1 | |
| 622 | label.Size = UD2(1, 0, 1, 0) | |
| 623 | label.Position = UD2(0, 0, 0, 0) | |
| 624 | label.TextColor3 = TEXTCOLOR | |
| 625 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 626 | label.TextTransparency = TRANSPARENCY | |
| 627 | label.FontSize = TEXTFONTSIZE | |
| 628 | label.Font = TEXTFONT | |
| 629 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 630 | label.TextStrokeColor3 = C3(1,1,1) | |
| 631 | label.TextScaled = false | |
| 632 | label.Text = TEXT | |
| 633 | label.Name = NAME | |
| 634 | label.Parent = PARENT | |
| 635 | return label | |
| 636 | end | |
| 637 | ||
| 638 | function NoOutlines(PART) | |
| 639 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 640 | end | |
| 641 | ||
| 642 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 643 | local NEWWELD = IT(TYPE) | |
| 644 | NEWWELD.Part0 = PART0 | |
| 645 | NEWWELD.Part1 = PART1 | |
| 646 | NEWWELD.C0 = C0 | |
| 647 | NEWWELD.C1 = C1 | |
| 648 | NEWWELD.Parent = PARENT | |
| 649 | return NEWWELD | |
| 650 | end | |
| 651 | ||
| 652 | local S = IT("Sound")
| |
| 653 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
| 654 | local NEWSOUND = nil | |
| 655 | coroutine.resume(coroutine.create(function() | |
| 656 | NEWSOUND = S:Clone() | |
| 657 | NEWSOUND.Parent = PARENT | |
| 658 | NEWSOUND.Volume = VOLUME | |
| 659 | NEWSOUND.Pitch = PITCH | |
| 660 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 661 | NEWSOUND:play() | |
| 662 | if DOESLOOP == true then | |
| 663 | NEWSOUND.Looped = true | |
| 664 | else | |
| 665 | repeat wait(1) until NEWSOUND.Playing == false | |
| 666 | NEWSOUND:remove() | |
| 667 | end | |
| 668 | end)) | |
| 669 | return NEWSOUND | |
| 670 | end | |
| 671 | ||
| 672 | function CFrameFromTopBack(at, top, back) | |
| 673 | local right = top:Cross(back) | |
| 674 | 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) | |
| 675 | end | |
| 676 | ||
| 677 | --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})
| |
| 678 | function WACKYEFFECT(Table) | |
| 679 | local TYPE = (Table.EffectType or "Sphere") | |
| 680 | local SIZE = (Table.Size or VT(1,1,1)) | |
| 681 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
| 682 | local TRANSPARENCY = (Table.Transparency or 0) | |
| 683 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
| 684 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
| 685 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
| 686 | local ROTATION1 = (Table.RotationX or 0) | |
| 687 | local ROTATION2 = (Table.RotationY or 0) | |
| 688 | local ROTATION3 = (Table.RotationZ or 0) | |
| 689 | local MATERIAL = (Table.Material or "Neon") | |
| 690 | local COLOR = (Table.Color or C3(66/255, 0/255, 127/2551)) | |
| 691 | local TIME = (Table.Time or 45) | |
| 692 | local SOUNDID = (Table.SoundID or nil) | |
| 693 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
| 694 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
| 695 | coroutine.resume(coroutine.create(function() | |
| 696 | local PLAYSSOUND = false | |
| 697 | local SOUND = nil | |
| 698 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Dark indigo"), "Effect", VT(1,1,1), true)
| |
| 699 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
| 700 | PLAYSSOUND = true | |
| 701 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
| 702 | end | |
| 703 | EFFECT.Color = COLOR | |
| 704 | local MSH = nil | |
| 705 | if TYPE == "Sphere" then | |
| 706 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 707 | elseif TYPE == "Block" then | |
| 708 | MSH = IT("BlockMesh",EFFECT)
| |
| 709 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
| 710 | elseif TYPE == "Wave" then | |
| 711 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 712 | elseif TYPE == "Ring" then | |
| 713 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
| |
| 714 | elseif TYPE == "Slash" then | |
| 715 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 716 | elseif TYPE == "Round Slash" then | |
| 717 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 718 | elseif TYPE == "Swirl" then | |
| 719 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
| |
| 720 | elseif TYPE == "Skull" then | |
| 721 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
| |
| 722 | elseif TYPE == "Crystal" then | |
| 723 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
| |
| 724 | end | |
| 725 | if MSH ~= nil then | |
| 726 | local MOVESPEED = nil | |
| 727 | if MOVEDIRECTION ~= nil then | |
| 728 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
| 729 | end | |
| 730 | local GROWTH = SIZE - ENDSIZE | |
| 731 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
| 732 | if TYPE == "Block" then | |
| 733 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 734 | else | |
| 735 | EFFECT.CFrame = CFRAME | |
| 736 | end | |
| 737 | for LOOP = 1, TIME+1 do | |
| 738 | Swait() | |
| 739 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
| 740 | if TYPE == "Wave" then | |
| 741 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
| 742 | end | |
| 743 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
| 744 | if TYPE == "Block" then | |
| 745 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 746 | else | |
| 747 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
| 748 | end | |
| 749 | if MOVEDIRECTION ~= nil then | |
| 750 | local ORI = EFFECT.Orientation | |
| 751 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
| 752 | EFFECT.Orientation = ORI | |
| 753 | end | |
| 754 | end | |
| 755 | if PLAYSSOUND == false then | |
| 756 | EFFECT:remove() | |
| 757 | else | |
| 758 | repeat Swait() until SOUND.Playing == false | |
| 759 | EFFECT:remove() | |
| 760 | end | |
| 761 | else | |
| 762 | if PLAYSSOUND == false then | |
| 763 | EFFECT:remove() | |
| 764 | else | |
| 765 | repeat Swait() until SOUND.Playing == false | |
| 766 | EFFECT:remove() | |
| 767 | end | |
| 768 | end | |
| 769 | end)) | |
| 770 | end | |
| 771 | ||
| 772 | function MakeForm(PART,TYPE) | |
| 773 | if TYPE == "Cyl" then | |
| 774 | local MSH = IT("CylinderMesh",PART)
| |
| 775 | elseif TYPE == "Ball" then | |
| 776 | local MSH = IT("SpecialMesh",PART)
| |
| 777 | MSH.MeshType = "Sphere" | |
| 778 | elseif TYPE == "Wedge" then | |
| 779 | local MSH = IT("SpecialMesh",PART)
| |
| 780 | MSH.MeshType = "Wedge" | |
| 781 | end | |
| 782 | end | |
| 783 | ||
| 784 | Debris = game:GetService("Debris")
| |
| 785 | ||
| 786 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
| 787 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
| 788 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
| 789 | end | |
| 790 | ||
| 791 | function turnto(position) | |
| 792 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
| 793 | end | |
| 794 | ||
| 795 | --//=================================\\ | |
| 796 | --|| WEAPON CREATION | |
| 797 | --\\=================================// | |
| 798 | ||
| 799 | Humanoid.Parent = nil | |
| 800 | RootPart.Size = RootPart.Size*SIZE | |
| 801 | Torso.Size = Torso.Size*SIZE | |
| 802 | RightArm.Size = RightArm.Size*SIZE | |
| 803 | RightLeg.Size = RightLeg.Size*SIZE | |
| 804 | LeftArm.Size = LeftArm.Size*SIZE | |
| 805 | LeftLeg.Size = LeftLeg.Size*SIZE | |
| 806 | RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 807 | RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 808 | Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 809 | Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 810 | RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
| 811 | LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
| 812 | RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 813 | LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 814 | RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 815 | LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 816 | Head.Size = Head.Size*SIZE | |
| 817 | RootJoint.Parent = RootPart | |
| 818 | Neck.Parent = Torso | |
| 819 | RightShoulder.Parent = Torso | |
| 820 | LeftShoulder.Parent = Torso | |
| 821 | RightHip.Parent = Torso | |
| 822 | LeftHip.Parent = Torso | |
| 823 | ||
| 824 | Humanoid.DisplayDistanceType = "None" | |
| 825 | local naeeym2 = IT("BillboardGui",Character)
| |
| 826 | naeeym2.AlwaysOnTop = true | |
| 827 | naeeym2.Size = UDim2.new(5,35,2,15) | |
| 828 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
| 829 | naeeym2.MaxDistance = 75 | |
| 830 | naeeym2.Adornee = Character.Head | |
| 831 | naeeym2.Name = "Name" | |
| 832 | local tecks2 = IT("TextLabel",naeeym2)
| |
| 833 | tecks2.BackgroundTransparency = 1 | |
| 834 | tecks2.TextScaled = true | |
| 835 | tecks2.BorderSizePixel = 0 | |
| 836 | tecks2.Text = "Master of Time" | |
| 837 | tecks2.Font = "Fantasy" | |
| 838 | tecks2.TextSize = 30 | |
| 839 | tecks2.TextStrokeTransparency = 0 | |
| 840 | tecks2.TextColor3 = C3(0,0,0) | |
| 841 | tecks2.TextStrokeColor3 = C3(255/255, 255/255, 0/255) | |
| 842 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 843 | tecks2.Parent = naeeym2 | |
| 844 | local top = Instance.new("Shirt")
| |
| 845 | top.ShirtTemplate = "rbxassetid://45695443" | |
| 846 | top.Parent = Character | |
| 847 | top.Name = "Cloth" | |
| 848 | local bottom = Instance.new("Pants")
| |
| 849 | bottom.PantsTemplate = "rbxassetid://45696190" | |
| 850 | bottom.Parent = Character | |
| 851 | bottom.Name = "Cloth" | |
| 852 | local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false) | |
| 853 | PRT.Color = C3(0,0,0) | |
| 854 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.72*SIZE,0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 855 | CreateMesh("SpecialMesh", PRT, "FileMesh", "26768040", "82907376", VT(1,1,1)*SIZE, VT(0,0,0))
| |
| 856 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false) | |
| 857 | PRT.Color = C3(0,0,0) | |
| 858 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
| |
| 859 | CreateMesh("SpecialMesh", PRT, "FileMesh", "13520257", "", VT(1,1,1)*SIZE, VT(0,0,0))
| |
| 860 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(1,1.2,0.2),false) | |
| 861 | PRT.Color = C3(255/255, 0/255, 0/255) | |
| 862 | MakeForm(PRT,"Ball") | |
| 863 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
| |
| 864 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.4,0.5),false) | |
| 865 | PRT.Color = C3(255/255, 255/255, 0/255) | |
| 866 | MakeForm(PRT,"Ball") | |
| 867 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.3,-.5*SIZE), CF(0, 0, 0))
| |
| 868 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false) | |
| 869 | PRT.Color = C3(255/255, 255/255, 0/255) | |
| 870 | MakeForm(PRT,"Ball") | |
| 871 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.25,0.25,-.5*SIZE), CF(0, 0, 0))
| |
| 872 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false) | |
| 873 | PRT.Color = C3(255/255, 255/255, 0/255) | |
| 874 | MakeForm(PRT,"Ball") | |
| 875 | local Aura = Instance.new('ParticleEmitter')
| |
| 876 | Aura.Name = "Aura" | |
| 877 | Aura.Texture = "rbxassetid://131765579" | |
| 878 | Aura.Parent = PRT | |
| 879 | Aura.LightEmission = 0.3 | |
| 880 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
| 881 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(255/255, 0/255, 0/255)) | |
| 882 | Aura.Size = NumberSequence.new(0.3,0.2,0.1) | |
| 883 | Aura.LockedToPart = false | |
| 884 | Aura.Lifetime = NumberRange.new(2) | |
| 885 | Aura.Rate = 30 | |
| 886 | Aura.Speed = NumberRange.new(1) | |
| 887 | Aura.EmissionDirection = "Top" | |
| 888 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.25,0.25,-.5*SIZE), CF(0, 0, 0))
| |
| 889 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false) | |
| 890 | PRT.Color = C3(255/255, 255/255, 0/255) | |
| 891 | MakeForm(PRT,"Ball") | |
| 892 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(15), RAD(0)), CF(0, 0, 0))
| |
| 893 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false) | |
| 894 | PRT.Color = C3(255/255, 255/255, 0/255) | |
| 895 | MakeForm(PRT,"Ball") | |
| 896 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(-15), RAD(0)), CF(0, 0, 0))
| |
| 897 | ||
| 898 | local LASTPART = Head | |
| 899 | for i = 1, 24 do | |
| 900 | local MATH = (1-(i/30)) | |
| 901 | if LASTPART == Head then | |
| 902 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
| 903 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(220), RAD(90)), CF(0, 0, 0))
| |
| 904 | LASTPART = Horn | |
| 905 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) | |
| 906 | local Aura = Instance.new('ParticleEmitter')
| |
| 907 | Aura.Name = "Aura" | |
| 908 | Aura.Texture = "rbxassetid://242997264" | |
| 909 | Aura.Parent = Horn | |
| 910 | Aura.LightEmission = 0.8 | |
| 911 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
| 912 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) | |
| 913 | Aura.Size = NumberSequence.new(0.3,0.2,0.1) | |
| 914 | Aura.LockedToPart = true | |
| 915 | Aura.Lifetime = NumberRange.new(2) | |
| 916 | Aura.Rate = 25 | |
| 917 | Aura.Speed = NumberRange.new(0.1) | |
| 918 | Aura.EmissionDirection = "Top" | |
| 919 | else | |
| 920 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
| 921 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0))
| |
| 922 | LASTPART = Horn | |
| 923 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) | |
| 924 | local Aura = Instance.new('ParticleEmitter')
| |
| 925 | Aura.Name = "Aura" | |
| 926 | Aura.Texture = "rbxassetid://242997264" | |
| 927 | Aura.Parent = Horn | |
| 928 | Aura.LightEmission = 0.8 | |
| 929 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
| 930 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) | |
| 931 | Aura.Size = NumberSequence.new(0.3,0.2,0.1) | |
| 932 | Aura.LockedToPart = true | |
| 933 | Aura.Lifetime = NumberRange.new(2) | |
| 934 | Aura.Rate = 25 | |
| 935 | Aura.Speed = NumberRange.new(0.1) | |
| 936 | Aura.EmissionDirection = "Top" | |
| 937 | end | |
| 938 | end | |
| 939 | local LASTPART = Head | |
| 940 | for i = 1, 24 do | |
| 941 | local MATH = (1-(i/30)) | |
| 942 | if LASTPART == Head then | |
| 943 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
| 944 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(-220), RAD(-90)), CF(0, 0, 0))
| |
| 945 | LASTPART = Horn | |
| 946 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) | |
| 947 | local Aura = Instance.new('ParticleEmitter')
| |
| 948 | Aura.Name = "Aura" | |
| 949 | Aura.Texture = "rbxassetid://242997264" | |
| 950 | Aura.Parent = Horn | |
| 951 | Aura.LightEmission = 0.8 | |
| 952 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
| 953 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) | |
| 954 | Aura.Size = NumberSequence.new(0.3,0.2,0.1) | |
| 955 | Aura.LockedToPart = true | |
| 956 | Aura.Lifetime = NumberRange.new(2) | |
| 957 | Aura.Rate = 25 | |
| 958 | Aura.Speed = NumberRange.new(0.1) | |
| 959 | Aura.EmissionDirection = "Top" | |
| 960 | else | |
| 961 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
| 962 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(-3), RAD(0)), CF(0, -Horn.Size.Y/2, 0))
| |
| 963 | LASTPART = Horn | |
| 964 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) | |
| 965 | local Aura = Instance.new('ParticleEmitter')
| |
| 966 | Aura.Name = "Aura" | |
| 967 | Aura.Texture = "rbxassetid://242997264" | |
| 968 | Aura.Parent = Horn | |
| 969 | Aura.LightEmission = 0.8 | |
| 970 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
| 971 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) | |
| 972 | Aura.Size = NumberSequence.new(0.3,0.2,0.1) | |
| 973 | Aura.LockedToPart = true | |
| 974 | Aura.Lifetime = NumberRange.new(2) | |
| 975 | Aura.Rate = 25 | |
| 976 | Aura.Speed = NumberRange.new(0.1) | |
| 977 | Aura.EmissionDirection = "Top" | |
| 978 | end | |
| 979 | end | |
| 980 | local LASTPART = Head | |
| 981 | for i = 1, 8 do | |
| 982 | local MATH = (1-(i/14)) | |
| 983 | if LASTPART == Head then | |
| 984 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
| 985 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(250), RAD(90)), CF(0, 0, 0))
| |
| 986 | LASTPART = Horn | |
| 987 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) | |
| 988 | local Aura = Instance.new('ParticleEmitter')
| |
| 989 | Aura.Name = "Aura" | |
| 990 | Aura.Texture = "rbxassetid://242997264" | |
| 991 | Aura.Parent = Horn | |
| 992 | Aura.LightEmission = 0.8 | |
| 993 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
| 994 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) | |
| 995 | Aura.Size = NumberSequence.new(0.3,0.2,0.1) | |
| 996 | Aura.LockedToPart = true | |
| 997 | Aura.Lifetime = NumberRange.new(2) | |
| 998 | Aura.Rate = 25 | |
| 999 | Aura.Speed = NumberRange.new(0.1) | |
| 1000 | Aura.EmissionDirection = "Top" | |
| 1001 | else | |
| 1002 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
| 1003 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(10), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0))
| |
| 1004 | LASTPART = Horn | |
| 1005 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) | |
| 1006 | local Aura = Instance.new('ParticleEmitter')
| |
| 1007 | Aura.Name = "Aura" | |
| 1008 | Aura.Texture = "rbxassetid://242997264" | |
| 1009 | Aura.Parent = Horn | |
| 1010 | Aura.LightEmission = 0.8 | |
| 1011 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
| 1012 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) | |
| 1013 | Aura.Size = NumberSequence.new(0.3,0.2,0.1) | |
| 1014 | Aura.LockedToPart = true | |
| 1015 | Aura.Lifetime = NumberRange.new(2) | |
| 1016 | Aura.Rate = 25 | |
| 1017 | Aura.Speed = NumberRange.new(0.1) | |
| 1018 | Aura.EmissionDirection = "Top" | |
| 1019 | end | |
| 1020 | end | |
| 1021 | local LASTPART = Head | |
| 1022 | for i = 1, 8 do | |
| 1023 | local MATH = (1-(i/14)) | |
| 1024 | if LASTPART == Head then | |
| 1025 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
| 1026 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(-250), RAD(-90)), CF(0, 0, 0))
| |
| 1027 | LASTPART = Horn | |
| 1028 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) | |
| 1029 | local Aura = Instance.new('ParticleEmitter')
| |
| 1030 | Aura.Name = "Aura" | |
| 1031 | Aura.Texture = "rbxassetid://242997264" | |
| 1032 | Aura.Parent = Horn | |
| 1033 | Aura.LightEmission = 0.8 | |
| 1034 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
| 1035 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) | |
| 1036 | Aura.Size = NumberSequence.new(0.3,0.2,0.1) | |
| 1037 | Aura.LockedToPart = true | |
| 1038 | Aura.Lifetime = NumberRange.new(2) | |
| 1039 | Aura.Rate = 25 | |
| 1040 | Aura.Speed = NumberRange.new(0.1) | |
| 1041 | Aura.EmissionDirection = "Top" | |
| 1042 | else | |
| 1043 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
| 1044 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(10), RAD(-3), RAD(0)), CF(0, -Horn.Size.Y/2, 0))
| |
| 1045 | LASTPART = Horn | |
| 1046 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) | |
| 1047 | local Aura = Instance.new('ParticleEmitter')
| |
| 1048 | Aura.Name = "Aura" | |
| 1049 | Aura.Texture = "rbxassetid://242997264" | |
| 1050 | Aura.Parent = Horn | |
| 1051 | Aura.LightEmission = 0.8 | |
| 1052 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
| 1053 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) | |
| 1054 | Aura.Size = NumberSequence.new(0.3,0.2,0.1) | |
| 1055 | Aura.LockedToPart = true | |
| 1056 | Aura.Lifetime = NumberRange.new(2) | |
| 1057 | Aura.Rate = 25 | |
| 1058 | Aura.Speed = NumberRange.new(0.1) | |
| 1059 | Aura.EmissionDirection = "Top" | |
| 1060 | end | |
| 1061 | end | |
| 1062 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(1.05,0.06,1.05)*SIZE,false) | |
| 1063 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1064 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.5,0.1,0.5)*SIZE,false) | |
| 1065 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
| |
| 1066 | MakeForm(PRT,"Cyl") | |
| 1067 | local PRT = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false) | |
| 1068 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
| |
| 1069 | MakeForm(PRT,"Cyl") | |
| 1070 | PRT.Color = C3(255/255, 255/255, 0/255) | |
| 1071 | local RING = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.055,0.15,0.055)*SIZE,false) | |
| 1072 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
| |
| 1073 | MakeForm(RING,"Cyl") | |
| 1074 | RING.Color = C3(0,0,0) | |
| 1075 | for i = 1, 12 do | |
| 1076 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false) | |
| 1077 | PRT.Color = C3(0,0,0) | |
| 1078 | local MSH = IT("BlockMesh",PRT)
| |
| 1079 | MSH.Scale = VT(0.6,1,1) | |
| 1080 | 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))
| |
| 1081 | end | |
| 1082 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15)*SIZE,false) | |
| 1083 | PRT.Color = C3(0,0,0) | |
| 1084 | local MSH = IT("BlockMesh",PRT)
| |
| 1085 | MSH.Scale = VT(0.4,1,1) | |
| 1086 | 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))
| |
| 1087 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false) | |
| 1088 | PRT.Color = C3(0,0,0) | |
| 1089 | local MSH = IT("BlockMesh",PRT)
| |
| 1090 | MSH.Scale = VT(0.4,1,1) | |
| 1091 | 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))
| |
| 1092 | coroutine.resume(coroutine.create(function() | |
| 1093 | while true do | |
| 1094 | Swait() | |
| 1095 | CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED | |
| 1096 | WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed) | |
| 1097 | WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed) | |
| 1098 | if CLOCKLOOP <= -150 then | |
| 1099 | if VALUE1 == false then | |
| 1100 | CLOCKLOOP = 0 | |
| 1101 | 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, 0), SoundID = 743521450, SoundPitch = 1.2, SoundVolume = 2})
| |
| 1102 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
| 1103 | ApplyAoE(HITPOS,10,15,45,75,true) | |
| 1104 | 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, 0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 4})
| |
| 1105 | 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, 0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 4})
| |
| 1106 | if CLOCKTARGET ~= nil then | |
| 1107 | CLOCKTARGET.Health = CLOCKTARGET.Health - 20 | |
| 1108 | if CLOCKTARGET.Torso ~= nil then | |
| 1109 | CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))) | |
| 1110 | end | |
| 1111 | if CLOCKTARGET.Health == 0 then | |
| 1112 | CLOCKTARGET = nil | |
| 1113 | end | |
| 1114 | end | |
| 1115 | end | |
| 1116 | end | |
| 1117 | end | |
| 1118 | end)) | |
| 1119 | ||
| 1120 | for _, c in pairs(Weapon:GetChildren()) do | |
| 1121 | if c.ClassName == "Part" then | |
| 1122 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 1123 | end | |
| 1124 | end | |
| 1125 | ||
| 1126 | Neck.Name = "Weld" | |
| 1127 | RootJoint.Name = "Weld" | |
| 1128 | RightShoulder.Name = "Weld" | |
| 1129 | LeftShoulder.Name = "Weld" | |
| 1130 | RightHip.Name = "Weld" | |
| 1131 | LeftHip.Name = "Weld" | |
| 1132 | ||
| 1133 | local BODY = {}
| |
| 1134 | for _, c in pairs(Character:GetDescendants()) do | |
| 1135 | if c:IsA("BasePart") and c.Name ~= "Handle" then
| |
| 1136 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
| 1137 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 1138 | end | |
| 1139 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
| |
| 1140 | elseif c:IsA("JointInstance") then
| |
| 1141 | table.insert(BODY,{c,c.Parent,nil,nil,nil})
| |
| 1142 | end | |
| 1143 | end | |
| 1144 | for e = 1, #BODY do | |
| 1145 | if BODY[e] ~= nil then | |
| 1146 | local STUFF = BODY[e] | |
| 1147 | local PART = STUFF[1] | |
| 1148 | local PARENT = STUFF[2] | |
| 1149 | local MATERIAL = STUFF[3] | |
| 1150 | local COLOR = STUFF[4] | |
| 1151 | local TRANSPARENCY = STUFF[5] | |
| 1152 | if PART.ClassName == "Part" and PART ~= RootPart then | |
| 1153 | PART.Material = MATERIAL | |
| 1154 | PART.Color = COLOR | |
| 1155 | PART.Transparency = TRANSPARENCY | |
| 1156 | end | |
| 1157 | PART.AncestryChanged:Connect(function() | |
| 1158 | PART.Parent = PARENT | |
| 1159 | end) | |
| 1160 | end | |
| 1161 | end | |
| 1162 | ||
| 1163 | function refit() | |
| 1164 | Character.Parent = workspace | |
| 1165 | for e = 1, #BODY do | |
| 1166 | if BODY[e] ~= nil then | |
| 1167 | local STUFF = BODY[e] | |
| 1168 | local PART = STUFF[1] | |
| 1169 | local PARENT = STUFF[2] | |
| 1170 | local MATERIAL = STUFF[3] | |
| 1171 | local COLOR = STUFF[4] | |
| 1172 | local TRANSPARENCY = STUFF[5] | |
| 1173 | if PART.ClassName == "Part" and PART ~= RootPart then | |
| 1174 | PART.Material = MATERIAL | |
| 1175 | PART.Color = COLOR | |
| 1176 | PART.Transparency = TRANSPARENCY | |
| 1177 | end | |
| 1178 | if PART.Parent ~= PARENT then | |
| 1179 | Humanoid:remove() | |
| 1180 | PART.Parent = PARENT | |
| 1181 | Humanoid = IT("Humanoid",Character)
| |
| 1182 | chatfunc ("I dont have time to die...")
| |
| 1183 | end | |
| 1184 | end | |
| 1185 | end | |
| 1186 | end | |
| 1187 | local SKILLTEXTCOLOR = C3(255/255, 255/255, 0/255) | |
| 1188 | local SKILLFONT = "Fantasy" | |
| 1189 | local SKILLTEXTSIZE = 7 | |
| 1190 | ||
| 1191 | Weapon.Parent = Character | |
| 1192 | Humanoid.Parent = Character | |
| 1193 | ||
| 1194 | Humanoid.Died:connect(function() | |
| 1195 | refit() | |
| 1196 | end) | |
| 1197 | chatfunc("Gentlemen, you just annoyed me")
| |
| 1198 | warn("deivis97 edit")
| |
| 1199 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23-.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
| 1200 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50+.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
| 1201 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
| 1202 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
| 1203 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
| 1204 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.76, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
| 1205 | local SKILL7FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.10, 0, 0.76, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame") | |
| 1206 | ||
| 1207 | ||
| 1208 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Nuke Missiles", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1") | |
| 1209 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Times up", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2") | |
| 1210 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Chained Punch", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3") | |
| 1211 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warp Meteor", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4") | |
| 1212 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Pandora's Box", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5") | |
| 1213 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[G] Time Stop", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 6") | |
| 1214 | local SKILL6TEXT = CreateLabel(SKILL7FRAME, "[{1-5}] Musics [{6}] off", Color3.new(0/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7")
| |
| 1215 | ||
| 1216 | --//=================================\\ | |
| 1217 | --|| DAMAGING | |
| 1218 | --\\=================================// | |
| 1219 | ||
| 1220 | function ApplyDamage(Humanoid,Damage,TorsoPart) | |
| 1221 | local defence = Instance.new("BoolValue",Humanoid.Parent)
| |
| 1222 | defence.Name = ("HitBy"..Player.Name)
| |
| 1223 | game:GetService("Debris"):AddItem(defence, 0.001)
| |
| 1224 | Damage = Damage * DAMAGEMULTIPLIER | |
| 1225 | if Humanoid.Health ~= 0 then | |
| 1226 | local CritChance = MRANDOM(1,100) | |
| 1227 | if Damage > Humanoid.Health then | |
| 1228 | Damage = math.ceil(Humanoid.Health) | |
| 1229 | if Damage == 0 then | |
| 1230 | Damage = 0.1 | |
| 1231 | end | |
| 1232 | end | |
| 1233 | Humanoid.Health = Humanoid.Health - Damage | |
| 1234 | end | |
| 1235 | end | |
| 1236 | ||
| 1237 | function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL) | |
| 1238 | local CHILDREN = workspace:GetDescendants() | |
| 1239 | for index, CHILD in pairs(CHILDREN) do | |
| 1240 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
| 1241 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 1242 | if HUM then | |
| 1243 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 1244 | if TORSO then | |
| 1245 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
| 1246 | if INSTAKILL == false then | |
| 1247 | CHILD:BreakJoints() | |
| 1248 | else | |
| 1249 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
| 1250 | ApplyDamage(HUM,DMG,TORSO) | |
| 1251 | end | |
| 1252 | if FLING > 0 then | |
| 1253 | for _, c in pairs(CHILD:GetChildren()) do | |
| 1254 | if c:IsA("BasePart") then
| |
| 1255 | local bv = Instance.new("BodyVelocity")
| |
| 1256 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 1257 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
| 1258 | bv.Parent = c | |
| 1259 | Debris:AddItem(bv,0.05) | |
| 1260 | end | |
| 1261 | end | |
| 1262 | end | |
| 1263 | end | |
| 1264 | end | |
| 1265 | end | |
| 1266 | end | |
| 1267 | end | |
| 1268 | end | |
| 1269 | ||
| 1270 | --//=================================\\ | |
| 1271 | --|| ATTACK FUNCTIONS AND STUFF | |
| 1272 | --\\=================================// | |
| 1273 | ||
| 1274 | Circle = nil | |
| 1275 | CircleParts = {}
| |
| 1276 | Equipped = false | |
| 1277 | ||
| 1278 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
| 1279 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
| |
| 1280 | end | |
| 1281 | Equipped = true | |
| 1282 | Circle = Instance.new("Model")
| |
| 1283 | Circle.Name = "Circle" | |
| 1284 | Angle = 0 | |
| 1285 | for i = 1, 1 do | |
| 1286 | local CirclePart = Instance.new("Part")
| |
| 1287 | CirclePart.Name = "CirclePart" | |
| 1288 | CirclePart.Transparency = 1 | |
| 1289 | CirclePart.BrickColor = BrickColor.new("Really black")
| |
| 1290 | CirclePart.Material = Enum.Material.Plastic | |
| 1291 | CirclePart.Shape = Enum.PartType.Block | |
| 1292 | CirclePart.FormFactor = Enum.FormFactor.Custom | |
| 1293 | CirclePart.TopSurface = Enum.SurfaceType.Smooth | |
| 1294 | CirclePart.BottomSurface = Enum.SurfaceType.Smooth | |
| 1295 | CirclePart.Anchored = true | |
| 1296 | CirclePart.CanCollide = false | |
| 1297 | CirclePart.Locked = true | |
| 1298 | CirclePart.Size = Vector3.new(10, 0.2, 10) | |
| 1299 | local Aura = Instance.new('ParticleEmitter')
| |
| 1300 | Aura.Name = "Aura" | |
| 1301 | Aura.Texture = "rbxassetid://641078192" | |
| 1302 | Aura.Parent = CirclePart | |
| 1303 | Aura.LightEmission = 0 | |
| 1304 | Aura.Transparency = NumberSequence.new(0.2,0.4,1) | |
| 1305 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 0/255),Color3.new(255/200, 200/200, 200/200)) | |
| 1306 | Aura.Size = NumberSequence.new(0.9,0.5,0.3) | |
| 1307 | Aura.LockedToPart = false | |
| 1308 | Aura.Lifetime = NumberRange.new(1) | |
| 1309 | Aura.Rate = 50 | |
| 1310 | Aura.Speed = NumberRange.new(2.5) | |
| 1311 | Aura.SpreadAngle = Vector2.new(80,80) | |
| 1312 | local BlockMesh = Instance.new("BlockMesh")
| |
| 1313 | BlockMesh.Scale = Vector3.new(1, (1 + (0.005 * i)), 1) | |
| 1314 | BlockMesh.Parent = CirclePart | |
| 1315 | CirclePart.Parent = Circle | |
| 1316 | local Star = Instance.new("Decal", CirclePart)
| |
| 1317 | Star.Texture = "http://www.roblox.com/asset/?id=253215684" | |
| 1318 | Star.Face = "Top" | |
| 1319 | local Light = Instance.new("PointLight", CirclePart)
| |
| 1320 | Light.Color = Color3.new(.20,0,0) | |
| 1321 | Light.Brightness = 100 | |
| 1322 | Light.Range = 15 | |
| 1323 | table.insert(CircleParts, CirclePart) | |
| 1324 | end | |
| 1325 | Spawn(function() | |
| 1326 | while Equipped and Humanoid.Parent and Torso.Parent do | |
| 1327 | if Angle == 360 then | |
| 1328 | Angle = 0 | |
| 1329 | end | |
| 1330 | Angle = Angle + 0.05 | |
| 1331 | local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Character})
| |
| 1332 | if Hit then | |
| 1333 | if not Circle.Parent then | |
| 1334 | Circle.Parent = Character | |
| 1335 | end | |
| 1336 | for i, v in pairs(CircleParts) do | |
| 1337 | v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0) | |
| 1338 | end | |
| 1339 | else | |
| 1340 | Circle.Parent = nil | |
| 1341 | end | |
| 1342 | wait() | |
| 1343 | end | |
| 1344 | end) | |
| 1345 | ||
| 1346 | ||
| 1347 | ||
| 1348 | function MagicMissiles() | |
| 1349 | ATTACK = true | |
| 1350 | Rooted = false | |
| 1351 | local SELECTING = true | |
| 1352 | local SPOTS = {}
| |
| 1353 | coroutine.resume(coroutine.create(function() | |
| 1354 | local LOOP = 0 | |
| 1355 | repeat | |
| 1356 | LOOP = LOOP + 1 | |
| 1357 | Swait() | |
| 1358 | if LOOP >= 15 then | |
| 1359 | LOOP = 0 | |
| 1360 | for i = 1, #SPOTS do | |
| 1361 | if SPOTS[i] ~= nil then | |
| 1362 | 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, 0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 1363 | 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, 0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 1364 | end | |
| 1365 | end | |
| 1366 | end | |
| 1367 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1368 | 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) | |
| 1369 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1370 | 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) | |
| 1371 | 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) | |
| 1372 | 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) | |
| 1373 | until SELECTING == false | |
| 1374 | Rooted = false | |
| 1375 | repeat | |
| 1376 | LOOP = LOOP + 1 | |
| 1377 | Swait() | |
| 1378 | if LOOP >= 15 then | |
| 1379 | LOOP = 0 | |
| 1380 | for i = 1, #SPOTS do | |
| 1381 | if SPOTS[i] ~= nil then | |
| 1382 | 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, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 1383 | 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, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 1384 | end | |
| 1385 | end | |
| 1386 | end | |
| 1387 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1388 | 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) | |
| 1389 | 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) | |
| 1390 | 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) | |
| 1391 | 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) | |
| 1392 | 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) | |
| 1393 | until ATTACK == false | |
| 1394 | end)) | |
| 1395 | repeat | |
| 1396 | repeat Swait() until HOLD == true | |
| 1397 | local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude | |
| 1398 | if DIST > 9999 then | |
| 1399 | DIST = 9999 | |
| 1400 | end | |
| 1401 | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace) | |
| 1402 | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
| 1403 | if HITFLOOR ~= nil then | |
| 1404 | table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))) | |
| 1405 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,2,6), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = 90655239, SoundPitch = 1, SoundVolume = 6})
| |
| 1406 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(4,3,4), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 1407 | end | |
| 1408 | repeat Swait() until HOLD == false | |
| 1409 | until #SPOTS == 5 | |
| 1410 | SELECTING = false | |
| 1411 | for i = 1, #SPOTS do | |
| 1412 | if SPOTS[i] ~= nil then | |
| 1413 | local POS = SPOTS[i] | |
| 1414 | coroutine.resume(coroutine.create(function() | |
| 1415 | local MISSILE = IT("Model",Effects)
| |
| 1416 | MISSILE.Name = "Missile" | |
| 1417 | local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Lime green", "Part", VT(2,2,2)) | |
| 1418 | MakeForm(BASEPART,"Cyl") | |
| 1419 | MISSILE.PrimaryPart = BASEPART | |
| 1420 | BASEPART.CFrame = POS*CF(0,-30*3,0) | |
| 1421 | local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Lime green", "Part", VT(2,4,2)) | |
| 1422 | MakeForm(HEAD,"Ball") | |
| 1423 | HEAD.CFrame = BASEPART.CFrame*CF(0,1,0) | |
| 1424 | local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Lime green", "Part", VT(2.5,0.1,2.5)) | |
| 1425 | MakeForm(TAIL,"Cyl") | |
| 1426 | TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0) | |
| 1427 | chatfunc("you like nukes?")
| |
| 1428 | for i = 1, 15 do | |
| 1429 | Swait() | |
| 1430 | for _, c in pairs(MISSILE:GetChildren()) do | |
| 1431 | if c.ClassName == "Part" then | |
| 1432 | c.Transparency = c.Transparency - 1/10 | |
| 1433 | end | |
| 1434 | end | |
| 1435 | end | |
| 1436 | for i = 1, 15*1.5 do | |
| 1437 | Swait() | |
| 1438 | MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0)) | |
| 1439 | end | |
| 1440 | ApplyAoE(BASEPART.CFrame.p,200,350,450,750,true) | |
| 1441 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(750,350,750), Transparency = 0.5, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0/255, 255/255, 0/255), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
| |
| 1442 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(350,350,350), Transparency = 0, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0/255, 255/255, 0/255), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 4})
| |
| 1443 | WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(220,2,220), 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(0/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 1444 | WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(200,3,200), 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(0/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 1445 | MISSILE:remove() | |
| 1446 | end)) | |
| 1447 | end | |
| 1448 | end | |
| 1449 | wait(0.6) | |
| 1450 | ATTACK = false | |
| 1451 | Rooted = false | |
| 1452 | end | |
| 1453 | ||
| 1454 | function TimesUp() | |
| 1455 | CLOCKTARGET = nil | |
| 1456 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 1457 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1458 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
| |
| 1459 | if TORSO then | |
| 1460 | ATTACK = true | |
| 1461 | Rooted = false | |
| 1462 | coroutine.resume(coroutine.create(function() | |
| 1463 | repeat | |
| 1464 | Swait() | |
| 1465 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1466 | 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) | |
| 1467 | 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) | |
| 1468 | 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) | |
| 1469 | 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) | |
| 1470 | 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) | |
| 1471 | until ATTACK == false | |
| 1472 | end)) | |
| 1473 | if Effects:FindFirstChild("NeonDoll") then
| |
| 1474 | repeat Swait() until Effects:FindFirstChild("NeonDoll") == nil
| |
| 1475 | end | |
| 1476 | wait(0.5) | |
| 1477 | local FAKECHARACTER = IT("Model",Effects)
| |
| 1478 | FAKECHARACTER.Name = "NeonDoll" | |
| 1479 | local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cool yellow", "Part", VT(0.3,0.3,0.15),false) | |
| 1480 | CreateWeldOrSnapOrMotor("Weld", RING, RING, TORS, CF(0,0.6,0), CF(0,0,0))
| |
| 1481 | local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cool yellow", "Part", VT(0.15,0.3,0.15),false) | |
| 1482 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0,0.15,0))
| |
| 1483 | local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cool yellow", "Part", VT(0.15,0.3,0.15),false) | |
| 1484 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0,0.15,0))
| |
| 1485 | local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cool yellow", "Part", VT(0.15,0.3,0.15),false) | |
| 1486 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0,0.15,0))
| |
| 1487 | local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cool yellow", "Part", VT(0.15,0.3,0.15),false) | |
| 1488 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0,0.15,0))
| |
| 1489 | local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cool yellow", "Part", VT(0.15,0.15,0.15),false) | |
| 1490 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0))
| |
| 1491 | CreateSound(201858045, TORS, 5, 0.4, false) | |
| 1492 | for i = 1, 50 do | |
| 1493 | Swait() | |
| 1494 | CLOCKSPEED = 2.5 | |
| 1495 | for _, c in pairs(FAKECHARACTER:GetChildren()) do | |
| 1496 | if c.ClassName == "Part" then | |
| 1497 | c.Transparency = c.Transparency - 0.5/150 | |
| 1498 | end | |
| 1499 | end | |
| 1500 | end | |
| 1501 | CLOCKTARGET = HUM | |
| 1502 | coroutine.resume(coroutine.create(function() | |
| 1503 | repeat Swait() CLOCKSPEED = 2 until CLOCKTARGET == nil | |
| 1504 | for i = 1, 25 do | |
| 1505 | Swait() | |
| 1506 | for _, c in pairs(FAKECHARACTER:GetChildren()) do | |
| 1507 | if c.ClassName == "Part" then | |
| 1508 | c.Transparency = c.Transparency + 0.5/25 | |
| 1509 | end | |
| 1510 | end | |
| 1511 | end | |
| 1512 | CLOCKSPEED = 4 | |
| 1513 | FAKECHARACTER:remove() | |
| 1514 | end)) | |
| 1515 | wait(0.5) | |
| 1516 | ATTACK = false | |
| 1517 | Rooted = false | |
| 1518 | end | |
| 1519 | end | |
| 1520 | end | |
| 1521 | ||
| 1522 | function ChainPunch() | |
| 1523 | ATTACK = true | |
| 1524 | Rooted = false | |
| 1525 | local GYRO = IT("BodyGyro",RootPart)
| |
| 1526 | GYRO.D = 25 | |
| 1527 | GYRO.P = 2000 | |
| 1528 | GYRO.MaxTorque = VT(0,40000,0) | |
| 1529 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
| 1530 | repeat | |
| 1531 | Swait() | |
| 1532 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
| 1533 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1534 | 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) | |
| 1535 | 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) | |
| 1536 | 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) | |
| 1537 | 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) | |
| 1538 | 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) | |
| 1539 | until HOLD == true | |
| 1540 | local POS = Mouse.Hit.p | |
| 1541 | local CHAINS = false | |
| 1542 | local CHAINLINKS = {}
| |
| 1543 | local A = IT("Attachment",RightArm)
| |
| 1544 | A.Position = VT(1,-1,0)*SIZE | |
| 1545 | A.Orientation = VT(-90, -89.982, 0) | |
| 1546 | local B = IT("Attachment",RightArm)
| |
| 1547 | B.Position = VT(-1,-1,0)*SIZE | |
| 1548 | B.Orientation = VT(-90, 89.988, 0) | |
| 1549 | local C = IT("Attachment",RightArm)
| |
| 1550 | C.Position = VT(0.5,-1.3,0)*SIZE | |
| 1551 | C.Orientation = VT(-90, -89.982, 0) | |
| 1552 | local D = IT("Attachment",RightArm)
| |
| 1553 | D.Position = VT(-0.5,-1.3,0)*SIZE | |
| 1554 | D.Orientation = VT(-90, 89.988, 0) | |
| 1555 | local LIGHT = IT("Attachment",RightArm)
| |
| 1556 | LIGHT.Position = VT(0,-1,0)*SIZE | |
| 1557 | local LIGHT2 = IT("PointLight",LIGHT)
| |
| 1558 | LIGHT2.Range = 7 | |
| 1559 | LIGHT2.Brightness = 5 | |
| 1560 | LIGHT2.Color = SKILLTEXTCOLOR | |
| 1561 | chatfunc("Falcon...")
| |
| 1562 | for i = 1, 2 do | |
| 1563 | local TWIST = -2 | |
| 1564 | local START = A | |
| 1565 | local END = B | |
| 1566 | if i == 1 then | |
| 1567 | START = B | |
| 1568 | END = A | |
| 1569 | end | |
| 1570 | local ChainLink = IT("Beam",Torso)
| |
| 1571 | ChainLink.Texture = "rbxassetid://73042633" | |
| 1572 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
| 1573 | ChainLink.TextureSpeed = 1 | |
| 1574 | ChainLink.Width0 = 1 | |
| 1575 | ChainLink.Width1 = 1 | |
| 1576 | ChainLink.TextureLength = 2.5 | |
| 1577 | ChainLink.Attachment0 = START | |
| 1578 | ChainLink.Attachment1 = END | |
| 1579 | ChainLink.CurveSize0 = TWIST | |
| 1580 | ChainLink.CurveSize1 = TWIST | |
| 1581 | --ChainLink.FaceCamera = true | |
| 1582 | ChainLink.Segments = 45 | |
| 1583 | ChainLink.Transparency = NumberSequence.new(1) | |
| 1584 | table.insert(CHAINLINKS,ChainLink) | |
| 1585 | end | |
| 1586 | for i = 1, 2 do | |
| 1587 | local TWIST = -1 | |
| 1588 | local START = C | |
| 1589 | local END = D | |
| 1590 | if i == 1 then | |
| 1591 | START = D | |
| 1592 | END = C | |
| 1593 | end | |
| 1594 | local ChainLink = IT("Beam",Torso)
| |
| 1595 | ChainLink.Texture = "rbxassetid://73042633" | |
| 1596 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
| 1597 | ChainLink.TextureSpeed = 1 | |
| 1598 | ChainLink.Width0 = 1 | |
| 1599 | ChainLink.Width1 = 1 | |
| 1600 | ChainLink.TextureLength = 5 | |
| 1601 | ChainLink.Attachment0 = START | |
| 1602 | ChainLink.Attachment1 = END | |
| 1603 | ChainLink.CurveSize0 = TWIST | |
| 1604 | ChainLink.CurveSize1 = TWIST | |
| 1605 | --ChainLink.FaceCamera = true | |
| 1606 | ChainLink.Segments = 25 | |
| 1607 | ChainLink.LightEmission = 0.5 | |
| 1608 | ChainLink.Transparency = NumberSequence.new(1) | |
| 1609 | table.insert(CHAINLINKS,ChainLink) | |
| 1610 | end | |
| 1611 | coroutine.resume(coroutine.create(function() | |
| 1612 | repeat | |
| 1613 | Swait() | |
| 1614 | 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) | |
| 1615 | 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) | |
| 1616 | 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) | |
| 1617 | 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) | |
| 1618 | 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) | |
| 1619 | 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) | |
| 1620 | until CHAINS == true | |
| 1621 | repeat | |
| 1622 | Swait() | |
| 1623 | 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) | |
| 1624 | 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) | |
| 1625 | 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) | |
| 1626 | 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) | |
| 1627 | 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) | |
| 1628 | 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) | |
| 1629 | until ATTACK == false | |
| 1630 | for e = 1, 15 do | |
| 1631 | Swait() | |
| 1632 | chatfunc("PUNCH!!!")
| |
| 1633 | for i = 1, #CHAINLINKS do | |
| 1634 | CHAINLINKS[i].Transparency = NumberSequence.new((e/15)) | |
| 1635 | end | |
| 1636 | end | |
| 1637 | A:remove() | |
| 1638 | B:remove() | |
| 1639 | C:remove() | |
| 1640 | D:remove() | |
| 1641 | end)) | |
| 1642 | CreateSound(233856115, RightArm, 5, 1.2, false) | |
| 1643 | for e = 1, 15 do | |
| 1644 | Swait() | |
| 1645 | for i = 1, #CHAINLINKS do | |
| 1646 | CHAINLINKS[i].Transparency = NumberSequence.new(1-(e/15)) | |
| 1647 | end | |
| 1648 | end | |
| 1649 | CHAINS = true | |
| 1650 | Rooted = true | |
| 1651 | wait(0.25) | |
| 1652 | local FIST = CreatePart(3, Effects, "Neon", 0, 0.5, "New Yeller", "Part", VT(2,2,2)) | |
| 1653 | FIST.Color = C3(1, 215/255, 1) | |
| 1654 | FIST.CFrame = CF(RightArm.CFrame*CF(0,-1.3*SIZE,0).p,POS) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
| 1655 | local LIGHT3 = IT("PointLight",FIST)
| |
| 1656 | LIGHT3.Range = 7 | |
| 1657 | LIGHT3.Brightness = 5 | |
| 1658 | LIGHT3.Color = SKILLTEXTCOLOR | |
| 1659 | CreateMesh("SpecialMesh", FIST, "FileMesh", "90718752", "", VT(10,10,10), VT(0,0,0))
| |
| 1660 | local FISTA = IT("Attachment",FIST)
| |
| 1661 | FISTA.Position = VT(0.062, 0.977, 0) | |
| 1662 | local ChainLink = IT("Beam",Torso)
| |
| 1663 | ChainLink.Texture = "rbxassetid://73042633" | |
| 1664 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
| 1665 | ChainLink.TextureSpeed = 2 | |
| 1666 | ChainLink.Width0 = 3 | |
| 1667 | ChainLink.Width1 = 3 | |
| 1668 | ChainLink.TextureLength = 12 | |
| 1669 | ChainLink.Attachment0 = LIGHT | |
| 1670 | ChainLink.Attachment1 = FISTA | |
| 1671 | ChainLink.FaceCamera = true | |
| 1672 | ChainLink.Segments = 45 | |
| 1673 | ChainLink.LightEmission = 0.5 | |
| 1674 | ChainLink.Transparency = NumberSequence.new(0.25) | |
| 1675 | local FISTSOUND = CreateSound(288641686, FIST, 5, 1.2, false) | |
| 1676 | for i = 1, 85 do | |
| 1677 | Swait() | |
| 1678 | FIST.CFrame = FIST.CFrame*CF(0,-2,0) | |
| 1679 | ChainLink.TextureLength = 12+(i*2) | |
| 1680 | ApplyAoE(FIST.Position,10,15,25,100,true) | |
| 1681 | 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, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 1682 | local HITFLOOR = Raycast(FIST.Position, (CF(FIST.Position, FIST.CFrame*CF(0,-1,0).p)).lookVector, 2.1, Character) | |
| 1683 | if HITFLOOR ~= nil then | |
| 1684 | HITFLOOR:BreakJoints() | |
| 1685 | coroutine.resume(coroutine.create(function() | |
| 1686 | for i = 1, 15 do | |
| 1687 | Swait() | |
| 1688 | FISTSOUND.Volume = FISTSOUND.Volume - 0.15 | |
| 1689 | ApplyAoE(FIST.Position,10+(i*2),5,15,5,true) | |
| 1690 | 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, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 1691 | end | |
| 1692 | end)) | |
| 1693 | break | |
| 1694 | end | |
| 1695 | end | |
| 1696 | coroutine.resume(coroutine.create(function() | |
| 1697 | for i = 1, 50 do | |
| 1698 | Swait() | |
| 1699 | FIST.Transparency = FIST.Transparency + 0.5/50 | |
| 1700 | LIGHT3.Range = LIGHT3.Range - 7/50 | |
| 1701 | end | |
| 1702 | FIST:remove() | |
| 1703 | end)) | |
| 1704 | LIGHT:remove() | |
| 1705 | GYRO:remove() | |
| 1706 | ATTACK = false | |
| 1707 | Rooted = false | |
| 1708 | end | |
| 1709 | ||
| 1710 | function WarpMeteor() | |
| 1711 | local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude | |
| 1712 | if DIST > 9999 then | |
| 1713 | DIST = 9999 | |
| 1714 | end | |
| 1715 | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace) | |
| 1716 | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,45,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 75*SIZE, Character) | |
| 1717 | if HITFLOOR then | |
| 1718 | local POS = HITPOS | |
| 1719 | ATTACK = true | |
| 1720 | Rooted = false | |
| 1721 | local WARPED = false | |
| 1722 | local SMASHED = false | |
| 1723 | local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
| 1724 | coroutine.resume(coroutine.create(function() | |
| 1725 | repeat | |
| 1726 | Swait() | |
| 1727 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1728 | 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) | |
| 1729 | RightShoulder.C0 = Clerp(RightShoulder.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))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1730 | 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) | |
| 1731 | 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) | |
| 1732 | 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) | |
| 1733 | until WARPED == true | |
| 1734 | repeat | |
| 1735 | Swait() | |
| 1736 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1737 | 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) | |
| 1738 | RightShoulder.C0 = Clerp(RightShoulder.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))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1739 | 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) | |
| 1740 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE + 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.5*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) | |
| 1741 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.1*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) | |
| 1742 | until SMASHED == true | |
| 1743 | repeat | |
| 1744 | Swait() | |
| 1745 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1746 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-40), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1747 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(-15), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1748 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(15), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1749 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed) | |
| 1750 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1751 | until ATTACK == false | |
| 1752 | end)) | |
| 1753 | VALUE1 = true | |
| 1754 | CreateSound(233856115, Torso, 5, 1.6, false) | |
| 1755 | chatfunc("This hurt more than you think")
| |
| 1756 | for i = 1, 25 do | |
| 1757 | Swait() | |
| 1758 | for _, c in pairs(Character:GetChildren()) do | |
| 1759 | if c.ClassName == "Part" then | |
| 1760 | c.Transparency = c.Transparency + 1/25 | |
| 1761 | end | |
| 1762 | end | |
| 1763 | for _, c in pairs(Weapon:GetChildren()) do | |
| 1764 | if c.ClassName == "Part" then | |
| 1765 | c.Transparency = c.Transparency + 1/25 | |
| 1766 | end | |
| 1767 | end | |
| 1768 | end | |
| 1769 | UNANCHOR = false | |
| 1770 | RootPart.Anchored = true | |
| 1771 | RootPart.Velocity = VT(0,0,0) | |
| 1772 | local ROOTPOS = RootPart.Position | |
| 1773 | RootPart.CFrame = CF(POS+VT(0,300,0),VT(ROOTPOS.X,POS.Y+300,ROOTPOS.Z)) | |
| 1774 | WARPED = true | |
| 1775 | for i = 1, 25 do | |
| 1776 | Swait() | |
| 1777 | for _, c in pairs(Character:GetChildren()) do | |
| 1778 | if c.ClassName == "Part" then | |
| 1779 | c.Transparency = c.Transparency - 1/25 | |
| 1780 | end | |
| 1781 | end | |
| 1782 | for _, c in pairs(Weapon:GetChildren()) do | |
| 1783 | if c.ClassName == "Part" then | |
| 1784 | c.Transparency = c.Transparency - 1/25 | |
| 1785 | end | |
| 1786 | end | |
| 1787 | end | |
| 1788 | local SHELL = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Part", VT(0,0,0)) | |
| 1789 | SHELL.CFrame = RootPart.CFrame | |
| 1790 | MakeForm(SHELL,"Ball") | |
| 1791 | CreateSound(402981977, SHELL, 5, 1.6, false) | |
| 1792 | for i = 1, 10 do | |
| 1793 | Swait() | |
| 1794 | SHELL.Transparency = SHELL.Transparency - 1/10 | |
| 1795 | SHELL.Size = SHELL.Size + VT(0.6,0.6,0.6)*1.8 | |
| 1796 | end | |
| 1797 | for i = 1, math.ceil(75/2) do | |
| 1798 | Swait() | |
| 1799 | RootPart.CFrame = RootPart.CFrame*CF(0,-3.5*2,0) | |
| 1800 | SHELL.CFrame = CF(RootPart.Position) | |
| 1801 | WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(5,3,5), Transparency = 0.5, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = SHELL.Position+VT(0,15,0), RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
| |
| 1802 | end | |
| 1803 | RootPart.CFrame = CF(POS+VT(0,1,0),VT(ROOTPOS.X,HITPOS.Y+1,ROOTPOS.Z)) | |
| 1804 | SHELL.CFrame = CF(RootPart.Position) | |
| 1805 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(35,35,35)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6})
| |
| 1806 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(45,3,45)*3.8, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
| |
| 1807 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(45,3,45)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
| |
| 1808 | for i = 1, 5 do | |
| 1809 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*4, Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.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, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 1810 | end | |
| 1811 | SHELL:remove() | |
| 1812 | ApplyAoE(RootPart.Position,75,35,75,175,true) | |
| 1813 | SMASHED = true | |
| 1814 | wait(1) | |
| 1815 | VALUE1 = false | |
| 1816 | UNANCHOR = true | |
| 1817 | ATTACK = false | |
| 1818 | Rooted = false | |
| 1819 | end | |
| 1820 | end | |
| 1821 | ||
| 1822 | function PandorasBox() | |
| 1823 | local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
| 1824 | if HITFLOOR ~= nil then | |
| 1825 | ATTACK = false | |
| 1826 | Rooted = false | |
| 1827 | local RINGSPIN = true | |
| 1828 | local CONSTRUCTING = true | |
| 1829 | local RING = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Ring", VT(0,0,0)) | |
| 1830 | RING.Color = C3(0,0,0) | |
| 1831 | MakeForm(RING,"Cyl") | |
| 1832 | RING.CFrame = CF(HITPOS) | |
| 1833 | CreateSound(402981977, RING, 5, 1.2, false) | |
| 1834 | coroutine.resume(coroutine.create(function() | |
| 1835 | repeat | |
| 1836 | Swait() | |
| 1837 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
| 1838 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1839 | 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) | |
| 1840 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1841 | 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) | |
| 1842 | 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) | |
| 1843 | 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) | |
| 1844 | until CONSTRUCTING == false | |
| 1845 | repeat | |
| 1846 | Swait() | |
| 1847 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
| 1848 | until RINGSPIN == false | |
| 1849 | for i = 1, 25 do | |
| 1850 | Swait() | |
| 1851 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
| 1852 | RING.Size = RING.Size - VT(0.15,0,0.15) | |
| 1853 | --DECAL.Transparency = DECAL.Transparency + 1/25 | |
| 1854 | RING.Transparency = RING.Transparency + 1/25 | |
| 1855 | end | |
| 1856 | RING:remove() | |
| 1857 | end)) | |
| 1858 | for i = 1, 15 do | |
| 1859 | Swait() | |
| 1860 | RING.Size = RING.Size + VT(0.75,0,0.75) | |
| 1861 | RING.Transparency = RING.Transparency - 1/15 | |
| 1862 | end | |
| 1863 | chatfunc("let's see your prize...")
| |
| 1864 | local BOXSPIN = true | |
| 1865 | local PANDORASBOX = IT("Model",Effects)
| |
| 1866 | PANDORASBOX.Name = "Pandora's Box" | |
| 1867 | local BOX = IT("Model",PANDORASBOX)
| |
| 1868 | BOX.Name = "Body" | |
| 1869 | local LID = IT("Model",PANDORASBOX)
| |
| 1870 | LID.Name = "Lid" | |
| 1871 | --BUILDING THE BOX-- | |
| 1872 | local BASE = CreatePart(3, BOX, "Neon", 0, 0, "New Yeller", "Black", VT(2,1.8,2)) | |
| 1873 | BASE.Color = C3(0,0,0) | |
| 1874 | PANDORASBOX.PrimaryPart = BASE | |
| 1875 | BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z)) | |
| 1876 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
| 1877 | WOOD.CFrame = BASE.CFrame*CF(1,0,1) | |
| 1878 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
| 1879 | WOOD.CFrame = BASE.CFrame*CF(1,0,-1) | |
| 1880 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
| 1881 | WOOD.CFrame = BASE.CFrame*CF(-1,0,1) | |
| 1882 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
| 1883 | WOOD.CFrame = BASE.CFrame*CF(-1,0,-1) | |
| 1884 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
| 1885 | WOOD.CFrame = BASE.CFrame*CF(0,0.9,1) | |
| 1886 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
| 1887 | WOOD.CFrame = BASE.CFrame*CF(0,0.9,-1) | |
| 1888 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
| 1889 | WOOD.CFrame = BASE.CFrame*CF(1,0.9,0) | |
| 1890 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
| 1891 | WOOD.CFrame = BASE.CFrame*CF(-1,0.9,0) | |
| 1892 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
| 1893 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,1) | |
| 1894 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
| 1895 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,-1) | |
| 1896 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
| 1897 | WOOD.CFrame = BASE.CFrame*CF(1,-0.9,0) | |
| 1898 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
| 1899 | WOOD.CFrame = BASE.CFrame*CF(-1,-0.9,0) | |
| 1900 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,1.9,0.1)) | |
| 1901 | WOOD.CFrame = BASE.CFrame*CF(0,0,1) | |
| 1902 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,1.9,0.1)) | |
| 1903 | WOOD.CFrame = BASE.CFrame*CF(0,0,-1) | |
| 1904 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(0.1,1.9,2.1)) | |
| 1905 | WOOD.CFrame = BASE.CFrame*CF(1,0,0) | |
| 1906 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(0.1,1.9,2.1)) | |
| 1907 | WOOD.CFrame = BASE.CFrame*CF(-1,0,0) | |
| 1908 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,0.1,2.1)) | |
| 1909 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,0) | |
| 1910 | ------------- | |
| 1911 | local LIDPART = CreatePart(3, LID, "Marble", 0, 0, "Really black", "Marble", VT(2.1,0.1,2.1)) | |
| 1912 | LIDPART.CFrame = BASE.CFrame*CF(0,1,0) | |
| 1913 | LID.PrimaryPart = LIDPART | |
| 1914 | local WOOD = CreatePart(3, LID, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
| 1915 | WOOD.CFrame = LIDPART.CFrame*CF(0,0,-1) | |
| 1916 | local WOOD = CreatePart(3, LID, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
| 1917 | WOOD.CFrame = LIDPART.CFrame*CF(0,0,1) | |
| 1918 | local WOOD = CreatePart(3, LID, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
| 1919 | WOOD.CFrame = LIDPART.CFrame*CF(1,0,0) | |
| 1920 | local WOOD = CreatePart(3, LID, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
| 1921 | WOOD.CFrame = LIDPART.CFrame*CF(-1,0,0) | |
| 1922 | local DECAL = IT("Decal",LIDPART)
| |
| 1923 | DECAL.Face = "Top" | |
| 1924 | DECAL.Texture = "http://www.roblox.com/asset/?id=1501226061" | |
| 1925 | DECAL.Color3 = C3(0,0,0) | |
| 1926 | --BUILDING THE BOX-- | |
| 1927 | coroutine.resume(coroutine.create(function() | |
| 1928 | repeat | |
| 1929 | Swait() | |
| 1930 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * ANGLES(RAD(0), RAD(2.45), RAD(0))) | |
| 1931 | until BOXSPIN == false | |
| 1932 | end)) | |
| 1933 | for i = 1, 25 do | |
| 1934 | Swait() | |
| 1935 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,1.5-(i/12.5),0)) | |
| 1936 | end | |
| 1937 | wait(0.5) | |
| 1938 | BOXSPIN = false | |
| 1939 | CONSTRUCTING = false | |
| 1940 | coroutine.resume(coroutine.create(function() | |
| 1941 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = LIDPART.Size, Size2 = VT(3,0,3)*4, Transparency = 0, Transparency2 = 1, CFrame = LIDPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 168586586, SoundPitch = 1.3, SoundVolume = 6})
| |
| 1942 | --[[for i = 1, 45 do | |
| 1943 | Swait() | |
| 1944 | LID:SetPrimaryPartCFrame(LIDPART.CFrame * CF(0,1.5-(i/12.5),0.5) * ANGLES(RAD(0.7), RAD(0), RAD(0))) | |
| 1945 | end- | |
| 1946 | LID:remove()]]-- | |
| 1947 | for _, c in pairs(LID:GetChildren()) do | |
| 1948 | if c.ClassName == "Part" then | |
| 1949 | c.Anchored = false | |
| 1950 | c.CanCollide = true | |
| 1951 | if c ~= LIDPART then | |
| 1952 | weldBetween(LIDPART,c) | |
| 1953 | end | |
| 1954 | end | |
| 1955 | end | |
| 1956 | LIDPART.Velocity = CF(LIDPART.Position,LIDPART.CFrame*CF(15,25,0).p).lookVector*65 | |
| 1957 | Debris:AddItem(LID,15) | |
| 1958 | wait(0.5) | |
| 1959 | local RANDOMEFFECT = MRANDOM(1,4) | |
| 1960 | if RANDOMEFFECT == 1 then | |
| 1961 | for i = 1, 45 do | |
| 1962 | wait((2-(i/15))/15) | |
| 1963 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,MRANDOM(12,15),0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,MRANDOM(1,5)), MoveToPos = BASE.Position, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.8, SoundVolume = 6})
| |
| 1964 | end | |
| 1965 | wait(1) | |
| 1966 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35)*12, Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6})
| |
| 1967 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*10, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 469345336, SoundPitch = 0.75, SoundVolume = 6})
| |
| 1968 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*9, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
| |
| 1969 | for i = 1, 5 do | |
| 1970 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*12, Transparency = 0.5, Transparency2 = 1, CFrame = BASE.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(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 1971 | end | |
| 1972 | ApplyAoE(BASE.Position,50,1,200,375,true) | |
| 1973 | ApplyAoE(BASE.Position,250,35,75,175,true) | |
| 1974 | elseif RANDOMEFFECT == 2 then | |
| 1975 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Field", VT(0.3,0.3,0.3)) | |
| 1976 | FIELD.CFrame = BASE.CFrame | |
| 1977 | MakeForm(FIELD,"Ball") | |
| 1978 | for i = 1, 50 do | |
| 1979 | Swait() | |
| 1980 | FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01) | |
| 1981 | FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0) | |
| 1982 | end | |
| 1983 | wait(0.2) | |
| 1984 | local LOOP = CreateSound(1393698948, FIELD, 0, 1.2, true) | |
| 1985 | coroutine.resume(coroutine.create(function() | |
| 1986 | for i = 1, 75 do | |
| 1987 | Swait() | |
| 1988 | LOOP.Volume = LOOP.Volume + 10/75 | |
| 1989 | LOOP.Parent = FIELD | |
| 1990 | local CHILDREN = workspace:GetDescendants() | |
| 1991 | for index, CHILD in pairs(CHILDREN) do | |
| 1992 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
| 1993 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 1994 | if HUM then | |
| 1995 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 1996 | if TORSO then | |
| 1997 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
| 1998 | HUM.Health = HUM.Health - 1.5 | |
| 1999 | TORSO.Velocity = VT(0,5,0) | |
| 2000 | HUM.PlatformStand = true | |
| 2001 | if TORSO.RotVelocity.Magnitude < 15 then | |
| 2002 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
| 2003 | end | |
| 2004 | end | |
| 2005 | end | |
| 2006 | end | |
| 2007 | end | |
| 2008 | end | |
| 2009 | FIELD.Size = FIELD.Size + VT(9,9,9) | |
| 2010 | FIELD.Transparency = FIELD.Transparency + 0.8/75 | |
| 2011 | end | |
| 2012 | for i = 1, 500 do | |
| 2013 | Swait() | |
| 2014 | LOOP.Parent = FIELD | |
| 2015 | local CHILDREN = workspace:GetDescendants() | |
| 2016 | for index, CHILD in pairs(CHILDREN) do | |
| 2017 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
| 2018 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 2019 | if HUM then | |
| 2020 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 2021 | if TORSO then | |
| 2022 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
| 2023 | TORSO.Velocity = VT(0,5,0) | |
| 2024 | HUM.Health = HUM.Health - 1.5 | |
| 2025 | HUM.PlatformStand = true | |
| 2026 | if TORSO.RotVelocity.Magnitude < 15 then | |
| 2027 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
| 2028 | end | |
| 2029 | end | |
| 2030 | end | |
| 2031 | end | |
| 2032 | end | |
| 2033 | end | |
| 2034 | end | |
| 2035 | for i = 1, 25 do | |
| 2036 | Swait() | |
| 2037 | LOOP.Volume = LOOP.Volume + 10/25 | |
| 2038 | LOOP.Parent = FIELD | |
| 2039 | local CHILDREN = workspace:GetDescendants() | |
| 2040 | for index, CHILD in pairs(CHILDREN) do | |
| 2041 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
| 2042 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 2043 | if HUM then | |
| 2044 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 2045 | if TORSO then | |
| 2046 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then | |
| 2047 | TORSO.Velocity = VT(0,5,0) | |
| 2048 | HUM.Health = HUM.Health - 1.5 | |
| 2049 | HUM.PlatformStand = false | |
| 2050 | if TORSO.RotVelocity.Magnitude < 15 then | |
| 2051 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
| 2052 | end | |
| 2053 | end | |
| 2054 | end | |
| 2055 | end | |
| 2056 | end | |
| 2057 | end | |
| 2058 | FIELD.Size = FIELD.Size - VT(3,3,3) | |
| 2059 | FIELD.Transparency = FIELD.Transparency + 0.2/25 | |
| 2060 | end | |
| 2061 | FIELD:remove() | |
| 2062 | end)) | |
| 2063 | elseif RANDOMEFFECT == 3 then | |
| 2064 | for i = 1, 10 do | |
| 2065 | wait(0.15) | |
| 2066 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(3,8,3), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,0.3,0), MoveToPos = BASE.Position+VT(0,6,0), RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 90655239, SoundPitch = 0.8, SoundVolume = 6})
| |
| 2067 | coroutine.resume(coroutine.create(function() | |
| 2068 | local MINION = CLONE:Clone() | |
| 2069 | MINION.Parent = Effects | |
| 2070 | MINION.Name = "Shadow" | |
| 2071 | MINION.HumanoidRootPart.CFrame = BASE.CFrame*CF(0,5,0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) | |
| 2072 | MINION.HumanoidRootPart.Velocity = CF(MINION.HumanoidRootPart.Position,MINION.HumanoidRootPart.CFrame*CF(0,8,-15).p).lookVector*MRANDOM(55,100) | |
| 2073 | for _, c in pairs(MINION:GetChildren()) do | |
| 2074 | if c.ClassName == "Part" then | |
| 2075 | c.Material = "Neon" | |
| 2076 | c.Color = C3(0,0,0) | |
| 2077 | c.Transparency = 0.25 | |
| 2078 | if c.Name == "Head" then | |
| 2079 | c:ClearAllChildren() | |
| 2080 | local MSH = IT("BlockMesh",c)
| |
| 2081 | MSH.Scale = VT(0.5,1,1) | |
| 2082 | end | |
| 2083 | end | |
| 2084 | end | |
| 2085 | local TORSO = MINION.Torso | |
| 2086 | local HUMAN = MINION.Humanoid | |
| 2087 | HUMAN.WalkSpeed = 20 | |
| 2088 | HUMAN.MaxHealth = math.huge | |
| 2089 | HUMAN.Health = math.huge | |
| 2090 | HUMAN.DisplayDistanceType = "None" | |
| 2091 | HUMAN.Died:connect(function() | |
| 2092 | MINION:remove() | |
| 2093 | --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false) | |
| 2094 | end) | |
| 2095 | wait(1) | |
| 2096 | local findNearestTorso = function(POS) | |
| 2097 | local list = game.Workspace:GetDescendants() | |
| 2098 | local torso = nil | |
| 2099 | local dist = 500 | |
| 2100 | local temp = nil | |
| 2101 | local human = nil | |
| 2102 | local temp2 = nil | |
| 2103 | for x = 1, #list do | |
| 2104 | temp2 = list[x] | |
| 2105 | if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then | |
| 2106 | temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
| |
| 2107 | human = temp2:findFirstChildOfClass("Humanoid")
| |
| 2108 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
| 2109 | if (temp.Position - POS).magnitude < dist then | |
| 2110 | torso = temp | |
| 2111 | dist = (temp.Position - POS).magnitude | |
| 2112 | end | |
| 2113 | end | |
| 2114 | end | |
| 2115 | end | |
| 2116 | return torso, dist | |
| 2117 | end | |
| 2118 | for i = 1, 40 do | |
| 2119 | if HUMAN.Health == 0 then | |
| 2120 | break | |
| 2121 | end | |
| 2122 | wait(0.3) | |
| 2123 | local target,dist= findNearestTorso(TORSO.Position) | |
| 2124 | if target then | |
| 2125 | HUMAN:MoveTo(target.Position) | |
| 2126 | if dist < 25 then | |
| 2127 | CreateSound(348663022, TORSO, 10, 1, true) | |
| 2128 | wait(2) | |
| 2129 | --local ANIM = HUMAN:LoadAnimation(ATANIM) | |
| 2130 | --ANIM:Play() | |
| 2131 | --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false) | |
| 2132 | ApplyAoE(TORSO.Position,10,0,0,85,true) | |
| 2133 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 201858087, SoundPitch = 0.8, SoundVolume = 10})
| |
| 2134 | for i = 1, 5 do | |
| 2135 | WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), Transparency = 0.5, Transparency2 = 1, CFrame = TORSO.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-15,15)/7.5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 2136 | end | |
| 2137 | break | |
| 2138 | end | |
| 2139 | end | |
| 2140 | end | |
| 2141 | MINION:remove() | |
| 2142 | end)) | |
| 2143 | end | |
| 2144 | elseif RANDOMEFFECT == 4 then | |
| 2145 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Field", VT(0.3,0.3,0.3)) | |
| 2146 | FIELD.Color = C3(0,0,0) | |
| 2147 | FIELD.CFrame = BASE.CFrame | |
| 2148 | MakeForm(FIELD,"Ball") | |
| 2149 | FIELD.CanCollide = true | |
| 2150 | for i = 1, 50 do | |
| 2151 | Swait() | |
| 2152 | FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01) | |
| 2153 | FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0) | |
| 2154 | end | |
| 2155 | wait(0.2) | |
| 2156 | local LOOP = CreateSound(487214658, FIELD, 0, 1, true) | |
| 2157 | coroutine.resume(coroutine.create(function() | |
| 2158 | local E = 0 | |
| 2159 | for i = 1, 75 do | |
| 2160 | E = E + 1 | |
| 2161 | Swait() | |
| 2162 | if E >= 35 then | |
| 2163 | E = 0 | |
| 2164 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6})
| |
| 2165 | end | |
| 2166 | LOOP.Volume = LOOP.Volume + 10/75 | |
| 2167 | LOOP.Parent = FIELD | |
| 2168 | local CHILDREN = workspace:GetDescendants() | |
| 2169 | for index, CHILD in pairs(CHILDREN) do | |
| 2170 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
| 2171 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 2172 | if HUM then | |
| 2173 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 2174 | if TORSO then | |
| 2175 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then | |
| 2176 | for _, c in pairs(CHILD:GetChildren()) do | |
| 2177 | if c:IsA("BasePart") then
| |
| 2178 | local bv = Instance.new("BodyVelocity")
| |
| 2179 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 2180 | bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50 | |
| 2181 | bv.Parent = c | |
| 2182 | Debris:AddItem(bv,0.05) | |
| 2183 | end | |
| 2184 | end | |
| 2185 | HUM.Health = HUM.Health - 0.3 | |
| 2186 | end | |
| 2187 | end | |
| 2188 | end | |
| 2189 | end | |
| 2190 | end | |
| 2191 | FIELD.Size = FIELD.Size + VT(0.3,0.3,0.3)/5 | |
| 2192 | end | |
| 2193 | for i = 1, 180 do | |
| 2194 | E = E + 1 | |
| 2195 | Swait() | |
| 2196 | if E >= 35 then | |
| 2197 | E = 0 | |
| 2198 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6})
| |
| 2199 | end | |
| 2200 | LOOP.Parent = FIELD | |
| 2201 | local CHILDREN = workspace:GetDescendants() | |
| 2202 | for index, CHILD in pairs(CHILDREN) do | |
| 2203 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
| 2204 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 2205 | if HUM then | |
| 2206 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 2207 | if TORSO then | |
| 2208 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then | |
| 2209 | for _, c in pairs(CHILD:GetChildren()) do | |
| 2210 | if c:IsA("BasePart") then
| |
| 2211 | local bv = Instance.new("BodyVelocity")
| |
| 2212 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 2213 | bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50 | |
| 2214 | bv.Parent = c | |
| 2215 | Debris:AddItem(bv,0.05) | |
| 2216 | end | |
| 2217 | end | |
| 2218 | HUM.Health = HUM.Health - 0.3 | |
| 2219 | end | |
| 2220 | end | |
| 2221 | end | |
| 2222 | end | |
| 2223 | end | |
| 2224 | end | |
| 2225 | ApplyAoE(FIELD.Position,40,15,20,375,true) | |
| 2226 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = FIELD.Size, Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 231917744, SoundPitch = 1, SoundVolume = 6})
| |
| 2227 | for i = 1, 5 do | |
| 2228 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), Transparency = 0.5, Transparency2 = 1, CFrame = FIELD.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(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 2229 | end | |
| 2230 | FIELD:remove() | |
| 2231 | end)) | |
| 2232 | elseif RANDOMEFFECT == 5 then | |
| 2233 | end | |
| 2234 | wait(0.5) | |
| 2235 | for i = 1, 25 do | |
| 2236 | Swait() | |
| 2237 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,-0.3,0)) | |
| 2238 | end | |
| 2239 | PANDORASBOX:remove() | |
| 2240 | RINGSPIN = false | |
| 2241 | end)) | |
| 2242 | ATTACK = false | |
| 2243 | Rooted = false | |
| 2244 | end | |
| 2245 | end | |
| 2246 | ||
| 2247 | function TimeStop () | |
| 2248 | local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
| 2249 | CHOICE = 6 | |
| 2250 | CreateSound(1193182658, Character, 5, 1, false) | |
| 2251 | chatfunc ("Za warudo...")
| |
| 2252 | back = CreateSound(1841228386, Character, 9999, 1, false) | |
| 2253 | local killsky = Instance.new('Sky', game:GetService'Lighting')
| |
| 2254 | killsky.SkyboxBk = "rbxassetid://1013852" | |
| 2255 | killsky.SkyboxDn = "rbxassetid://1013853" | |
| 2256 | killsky.SkyboxFt = "rbxassetid://1013850" | |
| 2257 | killsky.SkyboxLf = "rbxassetid://1013851" | |
| 2258 | killsky.SkyboxRt = "rbxassetid://1013849" | |
| 2259 | killsky.SkyboxUp = "rbxassetid://1013854" | |
| 2260 | killsky.StarCount = 0 | |
| 2261 | killsky.SunAngularSize = 0 | |
| 2262 | killsky.MoonAngularSize = 0 | |
| 2263 | killsky.MoonTextureId = "" | |
| 2264 | killsky.CelestialBodiesShown = false | |
| 2265 | game.Lighting.FogColor = Color3.new(1,1,0) | |
| 2266 | game.Lighting.FogEnd = 1400 | |
| 2267 | if HITFLOOR ~= nil then | |
| 2268 | ATTACK = false | |
| 2269 | Rooted = false | |
| 2270 | local RINGSPIN = true | |
| 2271 | local CONSTRUCTING = true | |
| 2272 | local RING = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Ring", VT(0,0,0)) | |
| 2273 | RING.Color = C3(0,0,0) | |
| 2274 | MakeForm(RING,"Cyl") | |
| 2275 | RING.CFrame = CF(HITPOS) | |
| 2276 | coroutine.resume(coroutine.create(function() | |
| 2277 | repeat | |
| 2278 | Swait() | |
| 2279 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
| 2280 | until CONSTRUCTING == false | |
| 2281 | repeat | |
| 2282 | Swait() | |
| 2283 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
| 2284 | until RINGSPIN == false | |
| 2285 | for i = 1, 25 do | |
| 2286 | Swait() | |
| 2287 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
| 2288 | RING.Size = RING.Size - VT(0.15,0,0.15) | |
| 2289 | --DECAL.Transparency = DECAL.Transparency + 1/25 | |
| 2290 | RING.Transparency = RING.Transparency + 1/25 | |
| 2291 | end | |
| 2292 | RING:remove() | |
| 2293 | end)) | |
| 2294 | for i = 1, 15 do | |
| 2295 | Swait() | |
| 2296 | RING.Size = RING.Size + VT(0,0,0) | |
| 2297 | RING.Transparency = RING.Transparency - 1/15 | |
| 2298 | end | |
| 2299 | end | |
| 2300 | local RANDOMEFFECT = MRANDOM(1) | |
| 2301 | local BASE = CreatePart(3, Character, "Neon", 0, 0, "New Yeller", "Black", VT(2,1.8,2)) | |
| 2302 | BASE.Color = C3(0,0,0) | |
| 2303 | BASE.Transparency = 1 | |
| 2304 | BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z)) | |
| 2305 | if RANDOMEFFECT == 1 then | |
| 2306 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Field", VT(0.3,0.3,0.3)) | |
| 2307 | FIELD.CFrame = BASE.CFrame | |
| 2308 | MakeForm(FIELD,"Ball") | |
| 2309 | for i = 1, 50 do | |
| 2310 | Swait() | |
| 2311 | FIELD.Size = VT(0,0,0) | |
| 2312 | FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0) | |
| 2313 | end | |
| 2314 | end | |
| 2315 | wait(0.2) | |
| 2316 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Field", VT(0.3,0.3,0.3)) | |
| 2317 | FIELD.CFrame = BASE.CFrame | |
| 2318 | local LOOP = CreateSound(1393698948, Character, 0, 1, true) | |
| 2319 | coroutine.resume(coroutine.create(function() | |
| 2320 | for i = 1, 75 do | |
| 2321 | Swait() | |
| 2322 | LOOP.Volume = LOOP.Volume + 10/75 | |
| 2323 | LOOP.Parent = FIELD | |
| 2324 | local CHILDREN = workspace:GetDescendants() | |
| 2325 | for index, CHILD in pairs(CHILDREN) do | |
| 2326 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
| 2327 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 2328 | if HUM then | |
| 2329 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 2330 | if TORSO then | |
| 2331 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
| 2332 | HUM.Health = HUM.Health - 0 | |
| 2333 | TORSO.Velocity = VT(0,5,0) | |
| 2334 | HUM.PlatformStand = true | |
| 2335 | if TORSO.RotVelocity.Magnitude < 15 then | |
| 2336 | TORSO.Anchored = true | |
| 2337 | end | |
| 2338 | end | |
| 2339 | end | |
| 2340 | end | |
| 2341 | end | |
| 2342 | end | |
| 2343 | FIELD.Size = FIELD.Size + VT(90,90,90) | |
| 2344 | FIELD.Transparency = FIELD.Transparency + 0.8/75 | |
| 2345 | end | |
| 2346 | for i = 1, 500 do | |
| 2347 | Swait() | |
| 2348 | LOOP.Parent = FIELD | |
| 2349 | local CHILDREN = workspace:GetDescendants() | |
| 2350 | for index, CHILD in pairs(CHILDREN) do | |
| 2351 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
| 2352 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 2353 | if HUM then | |
| 2354 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 2355 | if TORSO then | |
| 2356 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
| 2357 | TORSO.Velocity = VT(0,5,0) | |
| 2358 | HUM.Health = HUM.Health - 0 | |
| 2359 | HUM.PlatformStand = true | |
| 2360 | if TORSO.RotVelocity.Magnitude < 15 then | |
| 2361 | TORSO.Anchored = true | |
| 2362 | end | |
| 2363 | end | |
| 2364 | end | |
| 2365 | end | |
| 2366 | end | |
| 2367 | end | |
| 2368 | end | |
| 2369 | wait (20) | |
| 2370 | back:Remove() | |
| 2371 | CreateSound(1538466750, Character, 99999, 1, false) | |
| 2372 | chatfunc ("the time rusume")
| |
| 2373 | killsky:Remove() | |
| 2374 | game.Lighting.FogEnd = 90000000 | |
| 2375 | wait (5) | |
| 2376 | CHOICE = MRANDOM (1,5) | |
| 2377 | for i = 1, 25 do | |
| 2378 | Swait() | |
| 2379 | LOOP.Volume = LOOP.Volume + 10/25 | |
| 2380 | LOOP.Parent = FIELD | |
| 2381 | local CHILDREN = workspace:GetDescendants() | |
| 2382 | for index, CHILD in pairs(CHILDREN) do | |
| 2383 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
| 2384 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 2385 | if HUM then | |
| 2386 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 2387 | if TORSO then | |
| 2388 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then | |
| 2389 | TORSO.Velocity = VT(0,5,0) | |
| 2390 | HUM.Health = HUM.Health - 0 | |
| 2391 | HUM.PlatformStand = false | |
| 2392 | if TORSO.RotVelocity.Magnitude < 15 then | |
| 2393 | TORSO.Anchored = false | |
| 2394 | end | |
| 2395 | end | |
| 2396 | end | |
| 2397 | end | |
| 2398 | end | |
| 2399 | FIELD.Size = FIELD.Size - VT(3,3,3) | |
| 2400 | FIELD.Transparency = FIELD.Transparency + 0.2/25 | |
| 2401 | end | |
| 2402 | end | |
| 2403 | end)) | |
| 2404 | FIELD:Remove() | |
| 2405 | ATTACK = false | |
| 2406 | Rooted = false | |
| 2407 | end | |
| 2408 | ||
| 2409 | ||
| 2410 | function Taunt() | |
| 2411 | ATTACK = true | |
| 2412 | local LAUGH = nil | |
| 2413 | coroutine.resume(coroutine.create(function() | |
| 2414 | repeat | |
| 2415 | Swait() | |
| 2416 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2417 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2418 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE, -0.5*SIZE) * ANGLES(RAD(75), RAD(50), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2419 | 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) | |
| 2420 | 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) | |
| 2421 | 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) | |
| 2422 | until LAUGH ~= nil | |
| 2423 | repeat | |
| 2424 | Swait() | |
| 2425 | LAUGH.Parent = Head | |
| 2426 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0+(0.1*LAUGH.PlaybackLoudness/75) + 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) | |
| 2427 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE+(0.1*LAUGH.PlaybackLoudness/75)) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2428 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE+(0.1*LAUGH.PlaybackLoudness/75), -0.5*SIZE) * ANGLES(RAD(75), RAD(50), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2429 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE+(0.1*LAUGH.PlaybackLoudness/75), 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2430 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) + 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) | |
| 2431 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) - 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) | |
| 2432 | until LAUGH.Playing == false | |
| 2433 | ATTACK = false | |
| 2434 | end)) | |
| 2435 | wait(0.1) | |
| 2436 | CHOICE = 6 | |
| 2437 | chatfunc("I HATE YOU...")
| |
| 2438 | LAUGH = CreateSound(212000587, Character, 8099999, 1, false) | |
| 2439 | wait(1.5) | |
| 2440 | CHOICE = MRANDOM (1,5) | |
| 2441 | end | |
| 2442 | ||
| 2443 | --//=================================\\ | |
| 2444 | --|| ASSIGN THINGS TO KEYS | |
| 2445 | --\\=================================// | |
| 2446 | ||
| 2447 | function MouseDown(Mouse) | |
| 2448 | HOLD = true | |
| 2449 | if ATTACK == false then | |
| 2450 | end | |
| 2451 | end | |
| 2452 | ||
| 2453 | function MouseUp(Mouse) | |
| 2454 | HOLD = false | |
| 2455 | end | |
| 2456 | ||
| 2457 | function KeyDown(Key) | |
| 2458 | KEYHOLD = true | |
| 2459 | if Key == "z" and ATTACK == false then | |
| 2460 | MagicMissiles() | |
| 2461 | end | |
| 2462 | ||
| 2463 | if Key == "b" and ATTACK == false then | |
| 2464 | TimesUp() | |
| 2465 | end | |
| 2466 | ||
| 2467 | if Key == "c" and ATTACK == false then | |
| 2468 | ChainPunch() | |
| 2469 | end | |
| 2470 | ||
| 2471 | if Key == "v" and ATTACK == false then | |
| 2472 | WarpMeteor() | |
| 2473 | end | |
| 2474 | ||
| 2475 | if Key == "x" and ATTACK == false then | |
| 2476 | PandorasBox() | |
| 2477 | end | |
| 2478 | ||
| 2479 | if Key == "g" and ATTACK == false then | |
| 2480 | TimeStop() | |
| 2481 | end | |
| 2482 | ||
| 2483 | if Key == "t" and ATTACK == false then | |
| 2484 | Taunt() | |
| 2485 | elseif Key == "1" and ATTACK == false then | |
| 2486 | if CHOICE ~= 1 then | |
| 2487 | CHOICE = 1 | |
| 2488 | sick:Play() | |
| 2489 | chatfunc("original song")
| |
| 2490 | end | |
| 2491 | elseif Key == "2" and ATTACK == false then | |
| 2492 | if CHOICE ~= 2 then | |
| 2493 | CHOICE = 2 | |
| 2494 | sick:Play() | |
| 2495 | chatfunc("no comments...")
| |
| 2496 | end | |
| 2497 | elseif Key == "3" and ATTACK == false then | |
| 2498 | if CHOICE ~= 3 then | |
| 2499 | CHOICE = 3 | |
| 2500 | sick:Play() | |
| 2501 | chatfunc("Now the fight really begins...")
| |
| 2502 | tecks2.Color = Color3.new (255,0,0) | |
| 2503 | end | |
| 2504 | elseif Key == "4" and ATTACK == false then | |
| 2505 | if CHOICE ~= 4 then | |
| 2506 | CHOICE = 4 | |
| 2507 | sick:Play() | |
| 2508 | chatfunc("Just let me relax a little")
| |
| 2509 | end | |
| 2510 | elseif Key == "5" and ATTACK == false then | |
| 2511 | if CHOICE ~= 5 then | |
| 2512 | CHOICE = 5 | |
| 2513 | sick:Play() | |
| 2514 | chatfunc("Why not this sound, i like it")
| |
| 2515 | end | |
| 2516 | elseif Key == "6" and ATTACK == false then | |
| 2517 | if CHOICE ~= 6 then | |
| 2518 | CHOICE = 6 | |
| 2519 | sick:Play() | |
| 2520 | chatfunc("music off")
| |
| 2521 | end | |
| 2522 | end | |
| 2523 | end | |
| 2524 | ||
| 2525 | function KeyUp(Key) | |
| 2526 | KEYHOLD = false | |
| 2527 | end | |
| 2528 | ||
| 2529 | Mouse.Button1Down:connect(function(NEWKEY) | |
| 2530 | MouseDown(NEWKEY) | |
| 2531 | end) | |
| 2532 | Mouse.Button1Up:connect(function(NEWKEY) | |
| 2533 | MouseUp(NEWKEY) | |
| 2534 | end) | |
| 2535 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 2536 | KeyDown(NEWKEY) | |
| 2537 | end) | |
| 2538 | Mouse.KeyUp:connect(function(NEWKEY) | |
| 2539 | KeyUp(NEWKEY) | |
| 2540 | end) | |
| 2541 | ||
| 2542 | --//=================================\\ | |
| 2543 | --\\=================================// | |
| 2544 | ||
| 2545 | ||
| 2546 | function unanchor() | |
| 2547 | if UNANCHOR == true then | |
| 2548 | RootPart.Anchored = false | |
| 2549 | end | |
| 2550 | g = Character:GetChildren() | |
| 2551 | for i = 1, #g do | |
| 2552 | if g[i].ClassName == "Part" and g[i] ~= RootPart then | |
| 2553 | g[i].Anchored = false | |
| 2554 | end | |
| 2555 | end | |
| 2556 | g = Weapon:GetChildren() | |
| 2557 | for i = 1, #g do | |
| 2558 | if g[i].ClassName == "Part" then | |
| 2559 | g[i].Anchored = false | |
| 2560 | end | |
| 2561 | end | |
| 2562 | end | |
| 2563 | ||
| 2564 | ||
| 2565 | --//=================================\\ | |
| 2566 | --|| WRAP THE WHOLE SCRIPT UP | |
| 2567 | --\\=================================// | |
| 2568 | ||
| 2569 | Humanoid.Changed:connect(function(Jump) | |
| 2570 | if Jump == "Jump" and (Disable_Jump == true) then | |
| 2571 | Humanoid.Jump = false | |
| 2572 | end | |
| 2573 | end) | |
| 2574 | ||
| 2575 | while true do | |
| 2576 | Swait() | |
| 2577 | refit() | |
| 2578 | script.Parent = WEAPONGUI | |
| 2579 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
| 2580 | v:Stop(); | |
| 2581 | end | |
| 2582 | ANIMATE.Parent = nil | |
| 2583 | SINE = SINE + CHANGE*1.5 | |
| 2584 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
| 2585 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 2586 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
| 2587 | local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16) | |
| 2588 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
| 2589 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0 * COS(SINE / (WALKSPEEDVALUE / 2)) * SIZE) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 2590 | Neck.C1 = Clerp(Neck.C1, CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * 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) | |
| 2591 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
| 2592 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2593 | Neck.C1 = Clerp(Neck.C1, CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2594 | end | |
| 2595 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
| 2596 | ANIM = "Jump" | |
| 2597 | if ATTACK == false then | |
| 2598 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2599 | 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) | |
| 2600 | 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) | |
| 2601 | 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) | |
| 2602 | 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) | |
| 2603 | 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) | |
| 2604 | end | |
| 2605 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
| 2606 | ANIM = "Fall" | |
| 2607 | if ATTACK == false then | |
| 2608 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2609 | 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) | |
| 2610 | 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) | |
| 2611 | 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) | |
| 2612 | 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) | |
| 2613 | 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) | |
| 2614 | end | |
| 2615 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
| 2616 | ANIM = "Idle" | |
| 2617 | if ATTACK == false then | |
| 2618 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2619 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2620 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75*SIZE, 0.5*SIZE, -1*SIZE) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
| 2621 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1*SIZE, 0.2*SIZE, -0.5*SIZE) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
| 2622 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE - 0.05*SIZE * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2623 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -0.8*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2624 | end | |
| 2625 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
| 2626 | ANIM = "Walk" | |
| 2627 | if ATTACK == false then | |
| 2628 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2629 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2630 | RightShoulder.C0 = Clerp(RightShoulder.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))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2631 | 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) | |
| 2632 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE - 0.05*SIZE * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2633 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -0.8*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2634 | end | |
| 2635 | end | |
| 2636 | unanchor() | |
| 2637 | Humanoid.MaxHealth = "inf" | |
| 2638 | Humanoid.Health = "inf" | |
| 2639 | if Rooted == false then | |
| 2640 | Disable_Jump = false | |
| 2641 | Humanoid.WalkSpeed = Speed | |
| 2642 | elseif Rooted == true then | |
| 2643 | Disable_Jump = true | |
| 2644 | Humanoid.WalkSpeed = 0 | |
| 2645 | end | |
| 2646 | for _, c in pairs(Character:GetChildren()) do | |
| 2647 | if c.ClassName == "Part" and c.Name ~= "Detail" then | |
| 2648 | c.Material = "Fabric" | |
| 2649 | if c:FindFirstChildOfClass("ParticleEmitter") then
| |
| 2650 | c:FindFirstChildOfClass("ParticleEmitter"):remove()
| |
| 2651 | end | |
| 2652 | if c ~= Head then | |
| 2653 | c.Color = C3(0,0,0) | |
| 2654 | else | |
| 2655 | c.Color = C3(0,0,0) | |
| 2656 | end | |
| 2657 | if c == Head then | |
| 2658 | if c:FindFirstChild("face") then
| |
| 2659 | c.face:remove() | |
| 2660 | end | |
| 2661 | end | |
| 2662 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
| 2663 | c:remove() | |
| 2664 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
| 2665 | c:remove() | |
| 2666 | end | |
| 2667 | end | |
| 2668 | sick.SoundId = "rbxassetid://"..bored[CHOICE] | |
| 2669 | sick.Looped = true | |
| 2670 | sick.Pitch = 1 | |
| 2671 | sick.Volume = 999999 | |
| 2672 | sick.Parent = Character | |
| 2673 | sick:Resume() | |
| 2674 | --sick.Playing = false | |
| 2675 | Humanoid.Name = "Master of Time = "..Player.Name | |
| 2676 | end | |
| 2677 | ||
| 2678 | --//=================================\\ | |
| 2679 | --\\=================================// | |
| 2680 | ||
| 2681 | ||
| 2682 | ||
| 2683 | ||
| 2684 | ||
| 2685 | --//====================================================\\-- | |
| 2686 | --|| END OF SCRIPT | |
| 2687 | --\\====================================================//-- |