SHOW:
|
|
- or go back to the newest paste.
| 1 | -- This script has been converted to FE by iPxter | |
| 2 | - | Player = game.Players.LocalPlayer |
| 2 | + | |
| 3 | ||
| 4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 6 | do | |
| 7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
| |
| 8 | script.Parent = Player.Character | |
| 9 | ||
| 10 | --RemoteEvent for communicating | |
| 11 | local Event = Instance.new("RemoteEvent")
| |
| 12 | Event.Name = "UserInput_Event" | |
| 13 | ||
| 14 | --Fake event to make stuff like Mouse.KeyDown work | |
| 15 | local function fakeEvent() | |
| 16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 17 | t.connect = t.Connect | |
| 18 | return t | |
| 19 | end | |
| 20 | ||
| 21 | --Creating fake input objects with fake variables | |
| 22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 26 | end} | |
| 27 | --Merged 2 functions into one by checking amount of arguments | |
| 28 | - | Player = game:GetService("Players").LocalPlayer
|
| 28 | + | CAS.UnbindAction = CAS.BindAction |
| 29 | ||
| 30 | --This function will trigger the events that have been :Connect()'ed | |
| 31 | local function te(self,ev,...) | |
| 32 | local t = m[ev] | |
| 33 | if t and t._fakeEvent and t.Function then | |
| 34 | - | Mouse = Player:GetMouse() |
| 34 | + | t.Function(...) |
| 35 | end | |
| 36 | end | |
| 37 | m.TrigEvent = te | |
| 38 | UIS.TrigEvent = te | |
| 39 | ||
| 40 | Event.OnServerEvent:Connect(function(plr,io) | |
| 41 | if plr~=Player then return end | |
| 42 | if io.isMouse then | |
| 43 | m.Target = io.Target | |
| 44 | m.Hit = io.Hit | |
| 45 | else | |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | end | |
| 50 | for _,t in pairs(CAS.Actions) do | |
| 51 | for _,k in pairs(t.Keys) do | |
| 52 | if k==io.KeyCode then | |
| 53 | t.Function(t.Name,io.UserInputState,io) | |
| 54 | end | |
| 55 | end | |
| 56 | end | |
| 57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 59 | end | |
| 60 | end) | |
| 61 | Event.Parent = NLS([==[ | |
| 62 | local Player = game:GetService("Players").LocalPlayer
| |
| 63 | local Event = script:WaitForChild("UserInput_Event")
| |
| 64 | ||
| 65 | local UIS = game:GetService("UserInputService")
| |
| 66 | local input = function(io,a) | |
| 67 | if a then return end | |
| 68 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 70 | end | |
| 71 | UIS.InputBegan:Connect(input) | |
| 72 | UIS.InputEnded:Connect(input) | |
| 73 | ||
| 74 | local Mouse = Player:GetMouse() | |
| 75 | local h,t | |
| 76 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 82 | end | |
| 83 | end]==],Player.Character) | |
| 84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 85 | end | |
| 86 | ||
| 87 | wait(1) | |
| 88 | Player = owner | |
| 89 | Character = Player.Character | |
| 90 | local txt = Instance.new("BillboardGui", Character)
| |
| 91 | txt.Adornee = Character.Head | |
| 92 | txt.Name = "_status" | |
| 93 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 94 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 95 | local text = Instance.new("TextLabel", txt)
| |
| 96 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 97 | text.FontSize = "Size24" | |
| 98 | text.TextScaled = true | |
| 99 | text.TextTransparency = 0 | |
| 100 | text.BackgroundTransparency = 1 | |
| 101 | text.TextTransparency = 0 | |
| 102 | text.TextStrokeTransparency = 0 | |
| 103 | text.Font = "Antique" | |
| 104 | text.TextStrokeColor3 = Color3.new(170,0,0) | |
| 105 | text.Text = "Head Hunter" | |
| 106 | script.Name = "Banisher Gun V3 / 1" | |
| 107 | --//====================================================\\-- | |
| 108 | --|| CREATED BY SHACKLUSTER | |
| 109 | --\\====================================================//-- | |
| 110 | ||
| 111 | script:ClearAllChildren() | |
| 112 | wait(0.2) | |
| 113 | ||
| 114 | Player = owner | |
| 115 | PlayerGui = Player.PlayerGui | |
| 116 | Cam = workspace.CurrentCamera | |
| 117 | Backpack = Player.Backpack | |
| 118 | Character = Player.Character | |
| 119 | Humanoid = Character.Humanoid | |
| 120 | RootPart = Character["HumanoidRootPart"] | |
| 121 | Torso = Character["Torso"] | |
| 122 | Head = Character["Head"] | |
| 123 | RightArm = Character["Right Arm"] | |
| 124 | LeftArm = Character["Left Arm"] | |
| 125 | RightLeg = Character["Right Leg"] | |
| 126 | LeftLeg = Character["Left Leg"] | |
| 127 | RootJoint = RootPart["RootJoint"] | |
| 128 | Neck = Torso["Neck"] | |
| 129 | RightShoulder = Torso["Right Shoulder"] | |
| 130 | LeftShoulder = Torso["Left Shoulder"] | |
| 131 | RightHip = Torso["Right Hip"] | |
| 132 | LeftHip = Torso["Left Hip"] | |
| 133 | local TIME = 0 | |
| 134 | local sick = Instance.new("Sound",Torso)
| |
| 135 | Player_Size = 1.15 --Size of the player. | |
| 136 | Animation_Speed = 1.2 | |
| 137 | Attack_Animation_Speed = 2.5 | |
| 138 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 139 | IT = Instance.new | |
| 140 | CF = CFrame.new | |
| 141 | VT = Vector3.new | |
| 142 | RAD = math.rad | |
| 143 | C3 = Color3.new | |
| 144 | UD2 = UDim2.new | |
| 145 | BRICKC = BrickColor.new | |
| 146 | ANGLES = CFrame.Angles | |
| 147 | EULER = CFrame.fromEulerAnglesXYZ | |
| 148 | COS = math.cos | |
| 149 | ACOS = math.acos | |
| 150 | SIN = math.sin | |
| 151 | ASIN = math.asin | |
| 152 | ABS = math.abs | |
| 153 | MRANDOM = math.random | |
| 154 | FLOOR = math.floor | |
| 155 | ||
| 156 | --//=================================\\ | |
| 157 | --|| USEFUL VALUES | |
| 158 | --\\=================================// | |
| 159 | local LAUGHS = {834001699,834001752,834001797,834001828}
| |
| 160 | Animation_Speed = 3 | |
| 161 | local FORCERESET = false | |
| 162 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 163 | local Speed = 16 | |
| 164 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 165 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 166 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
| 167 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
| 168 | local DAMAGEMULTIPLIER = 1 | |
| 169 | local ANIM = "Idle" | |
| 170 | local ATTACK = false | |
| 171 | local EQUIPPED = false | |
| 172 | local HOLD = false | |
| 173 | local COMBO = 1 | |
| 174 | local Rooted = false | |
| 175 | local SINE = 0 | |
| 176 | local KEYHOLD = false | |
| 177 | local CHANGE = 2 / Animation_Speed | |
| 178 | local WALKINGANIM = false | |
| 179 | local VALUE1 = false | |
| 180 | local VALUE2 = false | |
| 181 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 182 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 183 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 184 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
| 185 | local WEAPONGUI = IT("ScreenGui", PlayerGui)
| |
| 186 | WEAPONGUI.Name = "BanishV3Gui" | |
| 187 | local Weapon = IT("Model")
| |
| 188 | Weapon.Name = "Adds" | |
| 189 | local Effects = IT("Folder", Weapon)
| |
| 190 | Effects.Name = "Effects" | |
| 191 | local ANIMATOR = Humanoid.Animator | |
| 192 | local ANIMATE = Character:FindFirstChild("Animate")
| |
| 193 | local UNANCHOR = true | |
| 194 | local TOBANISH = {}
| |
| 195 | script.Parent = PlayerGui | |
| 196 | ||
| 197 | --//=================================\\ | |
| 198 | --\\=================================// | |
| 199 | ||
| 200 | ||
| 201 | --//=================================\\ | |
| 202 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
| 203 | --\\=================================// | |
| 204 | ||
| 205 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 206 | ArtificialHB.Name = "ArtificialHB" | |
| 207 | ||
| 208 | script:WaitForChild("ArtificialHB")
| |
| 209 | ||
| 210 | frame = Frame_Speed | |
| 211 | tf = 0 | |
| 212 | allowframeloss = false | |
| 213 | tossremainder = false | |
| 214 | lastframe = tick() | |
| 215 | script.ArtificialHB:Fire() | |
| 216 | ||
| 217 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 218 | tf = tf + s | |
| 219 | if tf >= frame then | |
| 220 | if allowframeloss then | |
| 221 | script.ArtificialHB:Fire() | |
| 222 | lastframe = tick() | |
| 223 | else | |
| 224 | for i = 1, math.floor(tf / frame) do | |
| 225 | script.ArtificialHB:Fire() | |
| 226 | end | |
| 227 | lastframe = tick() | |
| 228 | end | |
| 229 | if tossremainder then | |
| 230 | tf = 0 | |
| 231 | else | |
| 232 | tf = tf - frame * math.floor(tf / frame) | |
| 233 | end | |
| 234 | end | |
| 235 | end) | |
| 236 | ||
| 237 | --//=================================\\ | |
| 238 | --\\=================================// | |
| 239 | ||
| 240 | --//=================================\\ | |
| 241 | --|| SOME FUNCTIONS | |
| 242 | --\\=================================// | |
| 243 | ||
| 244 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 245 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 246 | end | |
| 247 | ||
| 248 | function PositiveAngle(NUMBER) | |
| 249 | if NUMBER >= 0 then | |
| 250 | NUMBER = 0 | |
| 251 | end | |
| 252 | return NUMBER | |
| 253 | end | |
| 254 | ||
| 255 | function NegativeAngle(NUMBER) | |
| 256 | if NUMBER <= 0 then | |
| 257 | NUMBER = 0 | |
| 258 | end | |
| 259 | return NUMBER | |
| 260 | end | |
| 261 | ||
| 262 | function Swait(NUMBER) | |
| 263 | if NUMBER == 0 or NUMBER == nil then | |
| 264 | ArtificialHB.Event:wait() | |
| 265 | else | |
| 266 | for i = 1, NUMBER do | |
| 267 | ArtificialHB.Event:wait() | |
| 268 | end | |
| 269 | end | |
| 270 | end | |
| 271 | ||
| 272 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 273 | local NEWMESH = IT(MESH) | |
| 274 | if MESH == "SpecialMesh" then | |
| 275 | NEWMESH.MeshType = MESHTYPE | |
| 276 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 277 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 278 | end | |
| 279 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 280 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 281 | end | |
| 282 | end | |
| 283 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 284 | NEWMESH.Scale = SCALE | |
| 285 | NEWMESH.Parent = PARENT | |
| 286 | return NEWMESH | |
| 287 | end | |
| 288 | ||
| 289 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 290 | local NEWPART = IT("Part")
| |
| 291 | NEWPART.formFactor = FORMFACTOR | |
| 292 | NEWPART.Reflectance = REFLECTANCE | |
| 293 | NEWPART.Transparency = TRANSPARENCY | |
| 294 | NEWPART.CanCollide = false | |
| 295 | NEWPART.Locked = true | |
| 296 | NEWPART.Anchored = true | |
| 297 | if ANCHOR == false then | |
| 298 | NEWPART.Anchored = false | |
| 299 | end | |
| 300 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 301 | NEWPART.Name = NAME | |
| 302 | NEWPART.Size = SIZE | |
| 303 | NEWPART.Position = Torso.Position | |
| 304 | NEWPART.Material = MATERIAL | |
| 305 | NEWPART:BreakJoints() | |
| 306 | NEWPART.Parent = PARENT | |
| 307 | return NEWPART | |
| 308 | end | |
| 309 | ||
| 310 | local function weldBetween(a, b) | |
| 311 | local weldd = Instance.new("ManualWeld")
| |
| 312 | weldd.Part0 = a | |
| 313 | weldd.Part1 = b | |
| 314 | weldd.C0 = CFrame.new() | |
| 315 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 316 | weldd.Parent = a | |
| 317 | return weldd | |
| 318 | end | |
| 319 | ||
| 320 | ||
| 321 | function QuaternionFromCFrame(cf) | |
| 322 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 323 | local trace = m00 + m11 + m22 | |
| 324 | if trace > 0 then | |
| 325 | local s = math.sqrt(1 + trace) | |
| 326 | local recip = 0.5 / s | |
| 327 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 328 | else | |
| 329 | local i = 0 | |
| 330 | if m11 > m00 then | |
| 331 | i = 1 | |
| 332 | end | |
| 333 | if m22 > (i == 0 and m00 or m11) then | |
| 334 | i = 2 | |
| 335 | end | |
| 336 | if i == 0 then | |
| 337 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 338 | local recip = 0.5 / s | |
| 339 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 340 | elseif i == 1 then | |
| 341 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 342 | local recip = 0.5 / s | |
| 343 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 344 | elseif i == 2 then | |
| 345 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 346 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 347 | end | |
| 348 | end | |
| 349 | end | |
| 350 | ||
| 351 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 352 | local xs, ys, zs = x + x, y + y, z + z | |
| 353 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 354 | local xx = x * xs | |
| 355 | local xy = x * ys | |
| 356 | local xz = x * zs | |
| 357 | local yy = y * ys | |
| 358 | local yz = y * zs | |
| 359 | local zz = z * zs | |
| 360 | 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)) | |
| 361 | end | |
| 362 | ||
| 363 | function QuaternionSlerp(a, b, t) | |
| 364 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 365 | local startInterp, finishInterp; | |
| 366 | if cosTheta >= 0.0001 then | |
| 367 | if (1 - cosTheta) > 0.0001 then | |
| 368 | local theta = ACOS(cosTheta) | |
| 369 | local invSinTheta = 1 / SIN(theta) | |
| 370 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 371 | finishInterp = SIN(t * theta) * invSinTheta | |
| 372 | else | |
| 373 | startInterp = 1 - t | |
| 374 | finishInterp = t | |
| 375 | end | |
| 376 | else | |
| 377 | if (1 + cosTheta) > 0.0001 then | |
| 378 | local theta = ACOS(-cosTheta) | |
| 379 | local invSinTheta = 1 / SIN(theta) | |
| 380 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 381 | finishInterp = SIN(t * theta) * invSinTheta | |
| 382 | else | |
| 383 | startInterp = t - 1 | |
| 384 | finishInterp = t | |
| 385 | end | |
| 386 | end | |
| 387 | 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 | |
| 388 | end | |
| 389 | ||
| 390 | function Clerp(a, b, t) | |
| 391 | local qa = {QuaternionFromCFrame(a)}
| |
| 392 | local qb = {QuaternionFromCFrame(b)}
| |
| 393 | local ax, ay, az = a.x, a.y, a.z | |
| 394 | local bx, by, bz = b.x, b.y, b.z | |
| 395 | local _t = 1 - t | |
| 396 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 397 | end | |
| 398 | ||
| 399 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 400 | local frame = IT("Frame")
| |
| 401 | frame.BackgroundTransparency = TRANSPARENCY | |
| 402 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 403 | frame.Position = POSITION | |
| 404 | frame.Size = SIZE | |
| 405 | frame.BackgroundColor3 = COLOR | |
| 406 | frame.BorderColor3 = BORDERCOLOR | |
| 407 | frame.Name = NAME | |
| 408 | frame.Parent = PARENT | |
| 409 | return frame | |
| 410 | end | |
| 411 | ||
| 412 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 413 | local label = IT("TextLabel")
| |
| 414 | label.BackgroundTransparency = 1 | |
| 415 | label.Size = UD2(1, 0, 1, 0) | |
| 416 | label.Position = UD2(0, 0, 0, 0) | |
| 417 | label.TextColor3 = TEXTCOLOR | |
| 418 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 419 | label.TextTransparency = TRANSPARENCY | |
| 420 | label.FontSize = TEXTFONTSIZE | |
| 421 | label.Font = TEXTFONT | |
| 422 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 423 | label.TextScaled = false | |
| 424 | label.Text = TEXT | |
| 425 | label.Name = NAME | |
| 426 | label.Parent = PARENT | |
| 427 | return label | |
| 428 | end | |
| 429 | ||
| 430 | function NoOutlines(PART) | |
| 431 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 432 | end | |
| 433 | ||
| 434 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 435 | local NEWWELD = IT(TYPE) | |
| 436 | NEWWELD.Part0 = PART0 | |
| 437 | NEWWELD.Part1 = PART1 | |
| 438 | NEWWELD.C0 = C0 | |
| 439 | NEWWELD.C1 = C1 | |
| 440 | NEWWELD.Parent = PARENT | |
| 441 | return NEWWELD | |
| 442 | end | |
| 443 | ||
| 444 | local S = IT("Sound")
| |
| 445 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
| 446 | local NEWSOUND = nil | |
| 447 | coroutine.resume(coroutine.create(function() | |
| 448 | NEWSOUND = S:Clone() | |
| 449 | NEWSOUND.Parent = PARENT | |
| 450 | NEWSOUND.Volume = VOLUME | |
| 451 | NEWSOUND.Pitch = PITCH | |
| 452 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 453 | NEWSOUND:play() | |
| 454 | if DOESLOOP == true then | |
| 455 | NEWSOUND.Looped = true | |
| 456 | else | |
| 457 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
| 458 | NEWSOUND:remove() | |
| 459 | end | |
| 460 | end)) | |
| 461 | return NEWSOUND | |
| 462 | end | |
| 463 | ||
| 464 | function CFrameFromTopBack(at, top, back) | |
| 465 | local right = top:Cross(back) | |
| 466 | 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) | |
| 467 | end | |
| 468 | ||
| 469 | --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})
| |
| 470 | function WACKYEFFECT(Table) | |
| 471 | local TYPE = (Table.EffectType or "Sphere") | |
| 472 | local SIZE = (Table.Size or VT(1,1,1)) | |
| 473 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
| 474 | local TRANSPARENCY = (Table.Transparency or 0) | |
| 475 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
| 476 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
| 477 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
| 478 | local ROTATION1 = (Table.RotationX or 0) | |
| 479 | local ROTATION2 = (Table.RotationY or 0) | |
| 480 | local ROTATION3 = (Table.RotationZ or 0) | |
| 481 | local MATERIAL = (Table.Material or "Neon") | |
| 482 | local COLOR = (Table.Color or C3(1,1,1)) | |
| 483 | local TIME = (Table.Time or 45) | |
| 484 | local SOUNDID = (Table.SoundID or nil) | |
| 485 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
| 486 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
| 487 | coroutine.resume(coroutine.create(function() | |
| 488 | local PLAYSSOUND = false | |
| 489 | local SOUND = nil | |
| 490 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
| |
| 491 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
| 492 | PLAYSSOUND = true | |
| 493 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
| 494 | end | |
| 495 | EFFECT.Color = COLOR | |
| 496 | local MSH = nil | |
| 497 | if TYPE == "Sphere" then | |
| 498 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 499 | elseif TYPE == "Block" then | |
| 500 | MSH = IT("BlockMesh",EFFECT)
| |
| 501 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
| 502 | elseif TYPE == "Wave" then | |
| 503 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 504 | elseif TYPE == "Ring" then | |
| 505 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
| |
| 506 | elseif TYPE == "Slash" then | |
| 507 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 508 | elseif TYPE == "Round Slash" then | |
| 509 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 510 | elseif TYPE == "Swirl" then | |
| 511 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
| |
| 512 | elseif TYPE == "Skull" then | |
| 513 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
| |
| 514 | elseif TYPE == "Crystal" then | |
| 515 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
| |
| 516 | end | |
| 517 | if MSH ~= nil then | |
| 518 | local MOVESPEED = nil | |
| 519 | if MOVEDIRECTION ~= nil then | |
| 520 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
| 521 | end | |
| 522 | local GROWTH = SIZE - ENDSIZE | |
| 523 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
| 524 | if TYPE == "Block" then | |
| 525 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 526 | else | |
| 527 | EFFECT.CFrame = CFRAME | |
| 528 | end | |
| 529 | for LOOP = 1, TIME+1 do | |
| 530 | Swait() | |
| 531 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
| 532 | if TYPE == "Wave" then | |
| 533 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
| 534 | end | |
| 535 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
| 536 | if TYPE == "Block" then | |
| 537 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 538 | else | |
| 539 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
| 540 | end | |
| 541 | if MOVEDIRECTION ~= nil then | |
| 542 | local ORI = EFFECT.Orientation | |
| 543 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
| 544 | EFFECT.Orientation = ORI | |
| 545 | end | |
| 546 | end | |
| 547 | if PLAYSSOUND == false then | |
| 548 | EFFECT:remove() | |
| 549 | else | |
| 550 | SOUND.Stopped:Connect(function() | |
| 551 | EFFECT:remove() | |
| 552 | end) | |
| 553 | end | |
| 554 | else | |
| 555 | if PLAYSSOUND == false then | |
| 556 | EFFECT:remove() | |
| 557 | else | |
| 558 | repeat Swait() until SOUND.Playing == false | |
| 559 | EFFECT:remove() | |
| 560 | end | |
| 561 | end | |
| 562 | end)) | |
| 563 | end | |
| 564 | ||
| 565 | function MakeForm(PART,TYPE) | |
| 566 | if TYPE == "Cyl" then | |
| 567 | local MSH = IT("CylinderMesh",PART)
| |
| 568 | elseif TYPE == "Ball" then | |
| 569 | local MSH = IT("SpecialMesh",PART)
| |
| 570 | MSH.MeshType = "Sphere" | |
| 571 | elseif TYPE == "Wedge" then | |
| 572 | local MSH = IT("SpecialMesh",PART)
| |
| 573 | MSH.MeshType = "Wedge" | |
| 574 | end | |
| 575 | end | |
| 576 | ||
| 577 | function SpawnTrail(FROM,TO,BIG) | |
| 578 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0)) | |
| 579 | MakeForm(TRAIL,"Cyl") | |
| 580 | local DIST = (FROM - TO).Magnitude | |
| 581 | if BIG == true then | |
| 582 | TRAIL.Size = VT(0.5,DIST,0.5) | |
| 583 | else | |
| 584 | TRAIL.Size = VT(0.25,DIST,0.25) | |
| 585 | end | |
| 586 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
| 587 | coroutine.resume(coroutine.create(function() | |
| 588 | for i = 1, 5 do | |
| 589 | Swait() | |
| 590 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
| 591 | end | |
| 592 | TRAIL:remove() | |
| 593 | end)) | |
| 594 | end | |
| 595 | ||
| 596 | Debris = game:GetService("Debris")
| |
| 597 | ||
| 598 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
| 599 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
| 600 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
| 601 | end | |
| 602 | ||
| 603 | function turnto(position) | |
| 604 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
| 605 | end | |
| 606 | ||
| 607 | --//=================================\\ | |
| 608 | --|| WEAPON CREATION | |
| 609 | --\\=================================// | |
| 610 | ||
| 611 | local Particle = IT("ParticleEmitter",nil)
| |
| 612 | Particle.Enabled = false | |
| 613 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
| |
| 614 | Particle.LightEmission = 0.5 | |
| 615 | Particle.Rate = 150 | |
| 616 | Particle.ZOffset = 0.2 | |
| 617 | Particle.Rotation = NumberRange.new(-180, 180) | |
| 618 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
| 619 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
| 620 | Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0)) | |
| 621 | ||
| 622 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
| |
| 623 | function ParticleEmitter(Table) | |
| 624 | local PRTCL = Particle:Clone() | |
| 625 | local Speed = Table.Speed or 5 | |
| 626 | local Drag = Table.Drag or 0 | |
| 627 | local Size1 = Table.Size1 or 1 | |
| 628 | local Size2 = Table.Size2 or 5 | |
| 629 | local Lifetime1 = Table.Lifetime1 or 1 | |
| 630 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
| 631 | local Parent = Table.Parent or Torso | |
| 632 | local Emit = Table.Emit or 100 | |
| 633 | local Offset = Table.Offset or 360 | |
| 634 | local Acel = Table.Acel or VT(0,0,0) | |
| 635 | local Enabled = Table.Enabled or false | |
| 636 | PRTCL.Parent = Parent | |
| 637 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
| 638 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
| 639 | PRTCL.Speed = NumberRange.new(Speed) | |
| 640 | PRTCL.VelocitySpread = Offset | |
| 641 | PRTCL.Drag = Drag | |
| 642 | PRTCL.Acceleration = Acel | |
| 643 | if Enabled == false then | |
| 644 | PRTCL:Emit(Emit) | |
| 645 | Debris:AddItem(PRTCL,Lifetime2) | |
| 646 | else | |
| 647 | PRTCL.Enabled = true | |
| 648 | end | |
| 649 | return PRTCL | |
| 650 | end | |
| 651 | ||
| 652 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
| 653 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
| |
| 654 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 655 | MakeForm(Part,"Wedge") | |
| 656 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
| |
| 657 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
| 658 | MakeForm(Part,"Wedge") | |
| 659 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
| |
| 660 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
| 661 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 662 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
| 663 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 664 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
| 665 | MakeForm(Part,"Cyl") | |
| 666 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 667 | for i = 1, 8 do | |
| 668 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
| 669 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
| |
| 670 | end | |
| 671 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
| 672 | MakeForm(Part,"Cyl") | |
| 673 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 674 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
| 675 | MakeForm(Part,"Ball") | |
| 676 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 677 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
| 678 | MakeForm(Part,"Wedge") | |
| 679 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
| |
| 680 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
| 681 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 682 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
| 683 | MakeForm(Part,"Cyl") | |
| 684 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 685 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
| 686 | MakeForm(Part,"Cyl") | |
| 687 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 688 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
| 689 | MakeForm(Part,"Cyl") | |
| 690 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 691 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 692 | MakeForm(Part,"Wedge") | |
| 693 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
| |
| 694 | local LASTPART = Handle | |
| 695 | for i = 1, 10 do | |
| 696 | if LASTPART == Handle then | |
| 697 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
| 698 | LASTPART = Part | |
| 699 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 700 | else | |
| 701 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
| 702 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
| |
| 703 | LASTPART = Part | |
| 704 | end | |
| 705 | end | |
| 706 | ||
| 707 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
| 708 | MakeForm(Barrel,"Cyl") | |
| 709 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 710 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
| 711 | MakeForm(Part,"Cyl") | |
| 712 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
| |
| 713 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
| 714 | MakeForm(Part,"Wedge") | |
| 715 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 716 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
| 717 | MakeForm(Hole,"Cyl") | |
| 718 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
| |
| 719 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
| 720 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 721 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
| |
| 722 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
| 723 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 724 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
| |
| 725 | coroutine.resume(coroutine.create(function() | |
| 726 | while wait() do | |
| 727 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
| 728 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
| 729 | end | |
| 730 | end)) | |
| 731 | ||
| 732 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
| |
| 733 | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
| |
| 734 | ||
| 735 | for _, c in pairs(Weapon:GetDescendants()) do | |
| 736 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
| 737 | c.Material = "Glass" | |
| 738 | c.Color = C3(0,0,0) | |
| 739 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
| 740 | c.Color = C3(1,0,0) | |
| 741 | c.Material = "Neon" | |
| 742 | end | |
| 743 | end | |
| 744 | ||
| 745 | Weapon.Parent = Character | |
| 746 | for _, c in pairs(Weapon:GetChildren()) do | |
| 747 | if c.ClassName == "Part" then | |
| 748 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 749 | end | |
| 750 | end | |
| 751 | local BODY = {}
| |
| 752 | ||
| 753 | for _, c in pairs(Character:GetDescendants()) do | |
| 754 | if c:IsA("BasePart") and c.Name ~= "Handle" then
| |
| 755 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
| 756 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 757 | end | |
| 758 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
| |
| 759 | elseif c:IsA("JointInstance") then
| |
| 760 | table.insert(BODY,{c,c.Parent,nil,nil,nil})
| |
| 761 | end | |
| 762 | end | |
| 763 | ||
| 764 | for e = 1, #BODY do | |
| 765 | if BODY[e] ~= nil then | |
| 766 | local STUFF = BODY[e] | |
| 767 | local PART = STUFF[1] | |
| 768 | local PARENT = STUFF[2] | |
| 769 | local MATERIAL = STUFF[3] | |
| 770 | local COLOR = STUFF[4] | |
| 771 | local TRANSPARENCY = STUFF[5] | |
| 772 | if PART.ClassName == "Part" and PART ~= RootPart then | |
| 773 | PART.Material = MATERIAL | |
| 774 | PART.Color = COLOR | |
| 775 | PART.Transparency = TRANSPARENCY | |
| 776 | end | |
| 777 | PART.AncestryChanged:Connect(function() | |
| 778 | PART.Parent = PARENT | |
| 779 | end) | |
| 780 | end | |
| 781 | end | |
| 782 | ||
| 783 | function refit() | |
| 784 | Character.Parent = workspace | |
| 785 | for e = 1, #BODY do | |
| 786 | if BODY[e] ~= nil then | |
| 787 | local STUFF = BODY[e] | |
| 788 | local PART = STUFF[1] | |
| 789 | local PARENT = STUFF[2] | |
| 790 | local MATERIAL = STUFF[3] | |
| 791 | local COLOR = STUFF[4] | |
| 792 | local TRANSPARENCY = STUFF[5] | |
| 793 | if PART.ClassName == "Part" and PART ~= RootPart then | |
| 794 | PART.Material = MATERIAL | |
| 795 | PART.Color = COLOR | |
| 796 | PART.Transparency = TRANSPARENCY | |
| 797 | end | |
| 798 | if PART.Parent ~= PARENT then | |
| 799 | Humanoid:remove() | |
| 800 | PART.Parent = PARENT | |
| 801 | Humanoid = IT("Humanoid",Character)
| |
| 802 | end | |
| 803 | end | |
| 804 | end | |
| 805 | end | |
| 806 | local SKILLTEXTCOLOR = C3(1,0,0) | |
| 807 | local SKILLFONT = "Antique" | |
| 808 | local SKILLTEXTSIZE = 7 | |
| 809 | Humanoid.Died:connect(function() | |
| 810 | refit() | |
| 811 | end) | |
| 812 | Humanoid.Died:connect(function() | |
| 813 | ATTACK = true | |
| 814 | end) | |
| 815 | ||
| 816 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
| 817 | ---local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
| 818 | ---local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
| 819 | --local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
| 820 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
| 821 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.6, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
| 822 | ||
| 823 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
| 824 | --local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") | |
| 825 | --local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
| 826 | --local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
| 827 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Banisherbound", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5") | |
| 828 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[C] Smite/Meteor", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5") | |
| 829 | ||
| 830 | function printbye(Name) | |
| 831 | local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
| |
| 832 | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
| 833 | end | |
| 834 | ||
| 835 | workspace.ChildAdded:connect(function(instance) | |
| 836 | for BANISH = 1, #TOBANISH do | |
| 837 | if TOBANISH[BANISH] ~= nil then | |
| 838 | if instance.Name == TOBANISH[BANISH] then | |
| 839 | coroutine.resume(coroutine.create(function() | |
| 840 | printbye(instance.Name) | |
| 841 | instance:ClearAllChildren() | |
| 842 | Debris:AddItem(instance,0.0005) | |
| 843 | end)) | |
| 844 | end | |
| 845 | end | |
| 846 | end | |
| 847 | end) | |
| 848 | ||
| 849 | --//=================================\\ | |
| 850 | --|| DAMAGING | |
| 851 | --\\=================================// | |
| 852 | local asd = Instance.new("ParticleEmitter")
| |
| 853 | asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0)) | |
| 854 | asd.LightEmission = .1 | |
| 855 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
| 856 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
| |
| 857 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
| |
| 858 | asd.Transparency = bbb | |
| 859 | asd.Size = aaa | |
| 860 | asd.ZOffset = .9 | |
| 861 | asd.Acceleration = Vector3.new(0, -15, 0) | |
| 862 | asd.LockedToPart = false | |
| 863 | asd.EmissionDirection = "Back" | |
| 864 | asd.Lifetime = NumberRange.new(1, 2) | |
| 865 | asd.Rotation = NumberRange.new(-100, 100) | |
| 866 | asd.RotSpeed = NumberRange.new(-100, 100) | |
| 867 | asd.Speed = NumberRange.new(10) | |
| 868 | asd.Enabled = false | |
| 869 | asd.VelocitySpread = 999 | |
| 870 | ||
| 871 | function getbloody(victim,amount) | |
| 872 | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size) | |
| 873 | PART.CFrame = victim.CFrame | |
| 874 | local HITPLAYERSOUNDS = {"356551938","264486467"}
| |
| 875 | Debris:AddItem(PART,5) | |
| 876 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
| 877 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
| 878 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
| 879 | local prtcl = asd:Clone() | |
| 880 | prtcl.Parent = PART | |
| 881 | prtcl:Emit(amount*10) | |
| 882 | end | |
| 883 | function Kill(Char) | |
| 884 | local NewCharacter = IT("Model",Effects)
| |
| 885 | NewCharacter.Name = "Ow im ded ;-;" | |
| 886 | for _, c in pairs(Char:GetDescendants()) do | |
| 887 | if c:IsA("BasePart") and c.Transparency == 0 then
| |
| 888 | if c.Parent == Char then | |
| 889 | getbloody(c,5) | |
| 890 | end | |
| 891 | c:BreakJoints() | |
| 892 | c.Material = "Glass" | |
| 893 | c.Color = C3(0.5,0,0) | |
| 894 | c.CanCollide = true | |
| 895 | c.Transparency = 0.3 | |
| 896 | if c:FindFirstChildOfClass("SpecialMesh") then
| |
| 897 | c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
| |
| 898 | end | |
| 899 | if c.Name == "Head" then | |
| 900 | c:ClearAllChildren() | |
| 901 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
| 902 | end | |
| 903 | if c.ClassName == "MeshPart" then | |
| 904 | c.TextureID = "" | |
| 905 | end | |
| 906 | if c:FindFirstChildOfClass("BodyPosition") then
| |
| 907 | c:FindFirstChildOfClass("BodyPosition"):remove()
| |
| 908 | end | |
| 909 | if c:FindFirstChildOfClass("ParticleEmitter") then
| |
| 910 | c:FindFirstChildOfClass("ParticleEmitter"):remove()
| |
| 911 | end | |
| 912 | c.Parent = NewCharacter | |
| 913 | c.Name = "DeadPart" | |
| 914 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
| 915 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
| 916 | end | |
| 917 | end | |
| 918 | Char:remove() | |
| 919 | Debris:AddItem(NewCharacter,5) | |
| 920 | end | |
| 921 | ||
| 922 | function Banish(Foe) | |
| 923 | if Foe then | |
| 924 | coroutine.resume(coroutine.create(function() | |
| 925 | --if game.Players:FindFirstChild(Foe.Name) then | |
| 926 | table.insert(TOBANISH,Foe.Name) | |
| 927 | printbye(Foe.Name) | |
| 928 | --end | |
| 929 | Foe.Archivable = true | |
| 930 | local CLONE = Foe:Clone() | |
| 931 | Foe:Destroy() | |
| 932 | CLONE.Parent = Effects | |
| 933 | CLONE:BreakJoints() | |
| 934 | local MATERIALS = {"Glass","Neon"}
| |
| 935 | for _, c in pairs(CLONE:GetDescendants()) do | |
| 936 | if c:IsA("BasePart") then
| |
| 937 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
| 938 | CreateSound(340722848, c, 10, 1, false) | |
| 939 | end | |
| 940 | c.Anchored = true | |
| 941 | c.Transparency = c.Transparency + 0.2 | |
| 942 | c.Material = MATERIALS[MRANDOM(1,2)] | |
| 943 | c.Color = C3(1,0,0) | |
| 944 | if c.ClassName == "MeshPart" then | |
| 945 | c.TextureID = "" | |
| 946 | end | |
| 947 | if c:FindFirstChildOfClass("SpecialMesh") then
| |
| 948 | c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
| |
| 949 | end | |
| 950 | if c:FindFirstChildOfClass("Decal") then
| |
| 951 | c:FindFirstChildOfClass("Decal"):remove()
| |
| 952 | end | |
| 953 | c.Name = "Banished" | |
| 954 | c.CanCollide = false | |
| 955 | else | |
| 956 | c:remove() | |
| 957 | end | |
| 958 | end | |
| 959 | local A = false | |
| 960 | for i = 1, 35 do | |
| 961 | if A == false then | |
| 962 | A = true | |
| 963 | elseif A == true then | |
| 964 | A = false | |
| 965 | end | |
| 966 | for _, c in pairs(CLONE:GetDescendants()) do | |
| 967 | if c:IsA("BasePart") then
| |
| 968 | c.Anchored = true | |
| 969 | c.Material = MATERIALS[MRANDOM(1,2)] | |
| 970 | c.Transparency = c.Transparency + 0.8/35 | |
| 971 | if A == false then | |
| 972 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
| 973 | elseif A == true then | |
| 974 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
| 975 | end | |
| 976 | end | |
| 977 | end | |
| 978 | Swait() | |
| 979 | end | |
| 980 | CLONE:remove() | |
| 981 | end)) | |
| 982 | end | |
| 983 | end | |
| 984 | ||
| 985 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
| 986 | local CHILDREN = workspace:GetDescendants() | |
| 987 | for index, CHILD in pairs(CHILDREN) do | |
| 988 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 989 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 990 | if HUM then | |
| 991 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 992 | if TORSO then | |
| 993 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
| 994 | if ISBANISH == true then | |
| 995 | Banish(CHILD) | |
| 996 | else | |
| 997 | if ISBANISH == "Gravity" then | |
| 998 | HUM.PlatformStand = true | |
| 999 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
| |
| 1000 | local grav = Instance.new("BodyPosition",TORSO)
| |
| 1001 | grav.D = 15 | |
| 1002 | grav.P = 20000 | |
| 1003 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1004 | grav.position = TORSO.Position | |
| 1005 | grav.Name = "V3BanishForce"..Player.Name | |
| 1006 | else | |
| 1007 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
| |
| 1008 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
| 1009 | end | |
| 1010 | else | |
| 1011 | HUM.PlatformStand = false | |
| 1012 | end | |
| 1013 | end | |
| 1014 | elseif ISBANISH == "Gravity" then | |
| 1015 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
| |
| 1016 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
| |
| 1017 | HUM.PlatformStand = false | |
| 1018 | end | |
| 1019 | end | |
| 1020 | end | |
| 1021 | end | |
| 1022 | end | |
| 1023 | end | |
| 1024 | end | |
| 1025 | ||
| 1026 | --//=================================\\ | |
| 1027 | --|| ATTACK FUNCTIONS AND STUFF | |
| 1028 | --\\=================================// | |
| 1029 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
| 1030 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
| |
| 1031 | end | |
| 1032 | function CreateWave(inair,size,doesrotate,rotatedirection,waitt,part,offset) | |
| 1033 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, Torso.BrickColor, "Effect", VT(0,0,0)) | |
| 1034 | local mesh = IT("SpecialMesh",wave)
| |
| 1035 | mesh.MeshType = "FileMesh" | |
| 1036 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1037 | mesh.Scale = VT(size,size,size) | |
| 1038 | mesh.Offset = VT(0,0,-size/8) | |
| 1039 | wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0)) | |
| 1040 | coroutine.resume(coroutine.create(function(PART) | |
| 1041 | for i = 1, waitt do | |
| 1042 | Swait() | |
| 1043 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
| 1044 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
| 1045 | if doesrotate == true then | |
| 1046 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
| 1047 | end | |
| 1048 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
| 1049 | if wave.Transparency > 0.99 then | |
| 1050 | wave:remove() | |
| 1051 | end | |
| 1052 | end | |
| 1053 | end)) | |
| 1054 | end | |
| 1055 | ||
| 1056 | function CreateRing(inair,size,doesrotate,rotatedirection,waitt,part,offset,spin1,spin2) | |
| 1057 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, Torso.BrickColor, "Effect", VT(0,0,0)) | |
| 1058 | local mesh = IT("SpecialMesh",wave)
| |
| 1059 | mesh.MeshType = "FileMesh" | |
| 1060 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 1061 | mesh.Scale = VT(size,size,size) | |
| 1062 | mesh.Offset = VT(0,0,0) | |
| 1063 | wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0)) | |
| 1064 | coroutine.resume(coroutine.create(function(PART) | |
| 1065 | for i = 1, waitt do | |
| 1066 | Swait() | |
| 1067 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
| 1068 | if doesrotate == true then | |
| 1069 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1) | |
| 1070 | end | |
| 1071 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
| 1072 | if wave.Transparency > 0.99 then | |
| 1073 | wave:remove() | |
| 1074 | end | |
| 1075 | end | |
| 1076 | end)) | |
| 1077 | end | |
| 1078 | ||
| 1079 | function CreatePentagram(size,doesrotate,rotatedirection,waitt,cframe,offset) | |
| 1080 | local sinkhole = IT("Part",Effects)
| |
| 1081 | sinkhole.Size = VT(size,0,size) | |
| 1082 | sinkhole.CFrame = cframe * CF(0,offset,0) | |
| 1083 | sinkhole.Material = "Neon" | |
| 1084 | sinkhole.Color = C3(170, 0, 170) | |
| 1085 | sinkhole.Anchored = true | |
| 1086 | sinkhole.CanCollide = false | |
| 1087 | sinkhole.Transparency = 1 | |
| 1088 | local decal = IT("Decal",sinkhole)
| |
| 1089 | decal.Face = "Top" | |
| 1090 | decal.Texture = "http://www.roblox.com/asset/?id=177470914" | |
| 1091 | coroutine.resume(coroutine.create(function(PART) | |
| 1092 | for i = 1, waitt do | |
| 1093 | Swait() | |
| 1094 | if doesrotate == true then | |
| 1095 | sinkhole.CFrame = sinkhole.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
| 1096 | end | |
| 1097 | if i > waitt-11 then | |
| 1098 | decal.Transparency = decal.Transparency + 0.1 | |
| 1099 | end | |
| 1100 | end | |
| 1101 | sinkhole:remove() | |
| 1102 | end)) | |
| 1103 | return sinkhole | |
| 1104 | end | |
| 1105 | function CreateWave(inair,size,doesrotate,rotatedirection,waitt,part,offset) | |
| 1106 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, Torso.BrickColor, "Effect", VT(0,0,0)) | |
| 1107 | local mesh = IT("SpecialMesh",wave)
| |
| 1108 | mesh.MeshType = "FileMesh" | |
| 1109 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1110 | mesh.Scale = VT(size,size,size) | |
| 1111 | mesh.Offset = VT(0,0,-size/8) | |
| 1112 | wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0)) | |
| 1113 | coroutine.resume(coroutine.create(function(PART) | |
| 1114 | for i = 1, waitt do | |
| 1115 | Swait() | |
| 1116 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
| 1117 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
| 1118 | if doesrotate == true then | |
| 1119 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
| 1120 | end | |
| 1121 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
| 1122 | if wave.Transparency > 0.99 then | |
| 1123 | wave:remove() | |
| 1124 | end | |
| 1125 | end | |
| 1126 | end)) | |
| 1127 | end | |
| 1128 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
| 1129 | local STATPART = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "Effect", VT()) | |
| 1130 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
| 1131 | local BODYGYRO = IT("BodyGyro", STATPART)
| |
| 1132 | local BODYPOSITION = IT("BodyPosition", STATPART)
| |
| 1133 | BODYPOSITION.P = 2000 | |
| 1134 | BODYPOSITION.D = 100 | |
| 1135 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
| 1136 | if LABELTYPE == "Normal" then | |
| 1137 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
| 1138 | elseif LABELTYPE == "Debuff" then | |
| 1139 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2)) | |
| 1140 | elseif LABELTYPE == "Interruption" then | |
| 1141 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2)) | |
| 1142 | end | |
| 1143 | game:GetService("Debris"):AddItem(STATPART ,5)
| |
| 1144 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
| |
| 1145 | BILLBOARDGUI.Adornee = STATPART | |
| 1146 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
| 1147 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
| 1148 | BILLBOARDGUI.AlwaysOnTop = true | |
| 1149 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
| |
| 1150 | TEXTLABEL.BackgroundTransparency = 1 | |
| 1151 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
| 1152 | TEXTLABEL.Text = TEXT | |
| 1153 | TEXTLABEL.Font = "Antique" | |
| 1154 | TEXTLABEL.FontSize="Size42" | |
| 1155 | TEXTLABEL.TextColor3 = COLOR | |
| 1156 | TEXTLABEL.TextStrokeTransparency = 1 | |
| 1157 | TEXTLABEL.TextScaled = true | |
| 1158 | TEXTLABEL.TextWrapped = true | |
| 1159 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
| 1160 | wait(0.2) | |
| 1161 | for i=1, 5 do | |
| 1162 | wait() | |
| 1163 | THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0) | |
| 1164 | end | |
| 1165 | wait(1.2) | |
| 1166 | for i=1, 5 do | |
| 1167 | wait() | |
| 1168 | THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2 | |
| 1169 | THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2 | |
| 1170 | THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0) | |
| 1171 | end | |
| 1172 | THEPART.Parent = nil | |
| 1173 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
| 1174 | end | |
| 1175 | function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping) | |
| 1176 | local dmg = math.random(min,max) | |
| 1177 | for i,v in ipairs(workspace:GetChildren()) do | |
| 1178 | if v:FindFirstChild("HitBy"..Player.Name) == nil then
| |
| 1179 | local body = v:GetChildren() | |
| 1180 | for part = 1, #body do | |
| 1181 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
| |
| 1182 | if(body[part].Position - position).Magnitude < radius then | |
| 1183 | if v.ClassName == "Model" then | |
| 1184 | if v:FindFirstChild("Humanoid") then
| |
| 1185 | if v.Humanoid.Health ~= 0 then | |
| 1186 | if CanBeDodgedByJumping == true then | |
| 1187 | if body[part].Position.Y < position.Y+5 then | |
| 1188 | if math.random(1,100) < critrate+1 then | |
| 1189 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
| 1190 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
| |
| 1191 | else | |
| 1192 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
| 1193 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
| |
| 1194 | end | |
| 1195 | local defence = Instance.new("BoolValue",v)
| |
| 1196 | defence.Name = ("HitBy"..Player.Name)
| |
| 1197 | game:GetService("Debris"):AddItem(defence, 0.5)
| |
| 1198 | end | |
| 1199 | else | |
| 1200 | if beserk == true then | |
| 1201 | v.Humanoid.Health = 0 | |
| 1202 | end | |
| 1203 | if math.random(1,100) < critrate+1 then | |
| 1204 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
| 1205 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
| |
| 1206 | else | |
| 1207 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
| 1208 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
| |
| 1209 | end | |
| 1210 | local defence = Instance.new("BoolValue",v)
| |
| 1211 | defence.Name = ("HitBy"..Player.Name)
| |
| 1212 | game:GetService("Debris"):AddItem(defence, 0.5)
| |
| 1213 | end | |
| 1214 | end | |
| 1215 | end | |
| 1216 | end | |
| 1217 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
| 1218 | end | |
| 1219 | end | |
| 1220 | end | |
| 1221 | if v.ClassName == "Part" then | |
| 1222 | if v.Anchored == false and (v.Position - position).Magnitude < radius then | |
| 1223 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
| 1224 | end | |
| 1225 | end | |
| 1226 | end | |
| 1227 | end | |
| 1228 | end | |
| 1229 | function killnearest(position,range,maxstrength) | |
| 1230 | for i,v in ipairs(workspace:GetChildren()) do | |
| 1231 | local body = v:GetChildren() | |
| 1232 | for part = 1, #body do | |
| 1233 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
| 1234 | if(body[part].Position - position).Magnitude < range then | |
| 1235 | if v.ClassName == "Model" then | |
| 1236 | v:BreakJoints() | |
| 1237 | end | |
| 1238 | --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
| |
| 1239 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
| 1240 | end | |
| 1241 | end | |
| 1242 | end | |
| 1243 | if v.ClassName == "Part" then | |
| 1244 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
| 1245 | --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
| |
| 1246 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
| 1247 | end | |
| 1248 | end | |
| 1249 | end | |
| 1250 | end | |
| 1251 | ||
| 1252 | local EyeSizes={
| |
| 1253 | NumberSequenceKeypoint.new(0,1.2,0), | |
| 1254 | NumberSequenceKeypoint.new(1,0,0) | |
| 1255 | } | |
| 1256 | local EyeTrans={
| |
| 1257 | NumberSequenceKeypoint.new(0,0.8,0), | |
| 1258 | NumberSequenceKeypoint.new(1,1,0) | |
| 1259 | } | |
| 1260 | local PE=Instance.new("ParticleEmitter")
| |
| 1261 | PE.LightEmission=0 | |
| 1262 | PE.Size=NumberSequence.new(EyeSizes) | |
| 1263 | PE.Transparency=NumberSequence.new(EyeTrans) | |
| 1264 | PE.Lifetime=NumberRange.new(0.35,0.35,0.35) | |
| 1265 | PE.Rotation=NumberRange.new(0,360) | |
| 1266 | PE.Rate=999 | |
| 1267 | PE.Acceleration = Vector3.new(0,0,0) | |
| 1268 | PE.Drag = 5 | |
| 1269 | PE.LockedToPart = false | |
| 1270 | PE.Speed = NumberRange.new(0,0,0) | |
| 1271 | PE.Rotation = NumberRange.new(-100, 100) | |
| 1272 | PE.RotSpeed = NumberRange.new(-100, 100) | |
| 1273 | PE.Texture="http://www.roblox.com/asset/?id=669492379" | |
| 1274 | PE.Color = ColorSequence.new(Color3.new(170, 0, 170)) | |
| 1275 | PE.ZOffset = 0 | |
| 1276 | PE.Name = "Reign" | |
| 1277 | PE.Enabled = false | |
| 1278 | PE.VelocitySpread = 10000 | |
| 1279 | function particles(art) | |
| 1280 | local o = PE:Clone() | |
| 1281 | o.Parent = art | |
| 1282 | o.Enabled = true | |
| 1283 | return o | |
| 1284 | end | |
| 1285 | function Shot() | |
| 1286 | ATTACK = true | |
| 1287 | Rooted = false | |
| 1288 | for i=0, 0.4, 0.1 / Animation_Speed do | |
| 1289 | Swait() | |
| 1290 | turnto(Mouse.Hit.p) | |
| 1291 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
| 1292 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
| 1293 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1294 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1295 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1296 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1297 | end | |
| 1298 | repeat | |
| 1299 | for i=0, 0.2, 0.1 / Animation_Speed do | |
| 1300 | Swait() | |
| 1301 | turnto(Mouse.Hit.p) | |
| 1302 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
| 1303 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
| 1304 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1305 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1306 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1307 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1308 | end | |
| 1309 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
| 1310 | SpawnTrail(Hole.Position,POS) | |
| 1311 | if HIT ~= nil then | |
| 1312 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
| 1313 | Banish(HIT.Parent) | |
| 1314 | end | |
| 1315 | end | |
| 1316 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1317 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 1318 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 1319 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 1320 | for i=0, 0.3, 0.1 / Animation_Speed do | |
| 1321 | Swait() | |
| 1322 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
| 1323 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
| 1324 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1325 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1326 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1327 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1328 | end | |
| 1329 | until KEYHOLD == false | |
| 1330 | ATTACK = false | |
| 1331 | Rooted = false | |
| 1332 | end | |
| 1333 | function Sinnerwave() | |
| 1334 | ATTACK = true | |
| 1335 | Rooted = true | |
| 1336 | for i=0, 2, 0.1 / Animation_Speed do | |
| 1337 | Swait() | |
| 1338 | Rooted = true | |
| 1339 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0.35 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1340 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1341 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1342 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1343 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(15)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1344 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(-5)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1345 | end | |
| 1346 | Rooted = true | |
| 1347 | local Animation_Speed2 = Animation_Speed/2 | |
| 1348 | for i=0, 1, 0.1 / Animation_Speed2 do | |
| 1349 | Swait() | |
| 1350 | Rooted = true | |
| 1351 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, -0.35 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
| 1352 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
| 1353 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2) | |
| 1354 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2) | |
| 1355 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(-15)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
| 1356 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(5)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
| 1357 | end | |
| 1358 | CreateWave(0,4,true,0.2,45,RootPart,-5) | |
| 1359 | CreateWave(0,4.5,true,-0.2,40,RootPart,-5) | |
| 1360 | CreateWave(0,5,true,0.2,35,RootPart,-5) | |
| 1361 | CreateWave(0,5.5,true,-0.2,30,RootPart,-5) | |
| 1362 | CreateWave(0,6,true,0.2,25,RootPart,-5) | |
| 1363 | CreateSound("971126018", Torso, 2, 1)
| |
| 1364 | coroutine.resume(coroutine.create(function() | |
| 1365 | local RayHit, RayPos = RayCast(Torso.Position, Vector3.new(0, -1, 0), (10000), {Character})
| |
| 1366 | local SpawnPosition = RayPos | |
| 1367 | local floor = RayHit | |
| 1368 | local needcframe = RootPart.CFrame | |
| 1369 | local LastPosition = RootPart.Position | |
| 1370 | local Delay = 1 | |
| 1371 | for i = 1, 6 do | |
| 1372 | local RayHit, RayPos = RayCast(LastPosition, needcframe.lookVector, 10, {workspace})
| |
| 1373 | local End = RayPos | |
| 1374 | LastPosition = End | |
| 1375 | local locatepart = Instance.new("Part",Effects)
| |
| 1376 | locatepart.Size = VT(0.5,0.5,0.5) | |
| 1377 | locatepart.Position = End | |
| 1378 | locatepart.CanCollide = false | |
| 1379 | locatepart.Anchored = true | |
| 1380 | locatepart.Transparency = 1 | |
| 1381 | if SpawnPosition then | |
| 1382 | if i ~= 6 then | |
| 1383 | CreateSound("971125740", locatepart, 7, 1)
| |
| 1384 | AoEDamage(End,15,25,30,15,false,5,3,false) | |
| 1385 | CreateWave(0,2.5,true,-0.05,25,locatepart,-2) | |
| 1386 | CreateWave(0,2,true,0.05,25,locatepart,-2) | |
| 1387 | CreateWave(0,1.5,true,-0.05,25,locatepart,-2) | |
| 1388 | CreateWave(0,1,true,0.05,25,locatepart,-2) | |
| 1389 | else | |
| 1390 | CreateRing(0,15,true,-0.2,35,locatepart,0,0.3,0.3) | |
| 1391 | CreateRing(0,12.5,true,0.2,35,locatepart,0,0.3,-0.3) | |
| 1392 | CreateRing(0,10,true,-0.2,35,locatepart,0,-0.3,0.3) | |
| 1393 | CreateRing(0,7.5,true,0.2,35,locatepart,0,-0.3,-0.3) | |
| 1394 | CreatePentagram(85,true,-0.05,75,CF(End),0) | |
| 1395 | CreateSound("971125740", locatepart, 7, 0.5)
| |
| 1396 | AoEDamage(End,25,45,60,15,false,5,3,false) | |
| 1397 | CreateWave(0,6.5,true,-0.05,45,locatepart,-2) | |
| 1398 | CreateWave(0,6,true,0.05,45,locatepart,-2) | |
| 1399 | CreateWave(0,5.5,true,-0.05,45,locatepart,-2) | |
| 1400 | CreateWave(0,5,true,0.05,45,locatepart,-2) | |
| 1401 | local particle = particles(locatepart) | |
| 1402 | particle.Enabled = false | |
| 1403 | particle.Drag = 1 | |
| 1404 | particle.Lifetime=NumberRange.new(2.35,2.35,2.35) | |
| 1405 | particle.Speed = NumberRange.new(25,25,25) | |
| 1406 | particle:Emit(250) | |
| 1407 | end | |
| 1408 | end | |
| 1409 | Swait(5) | |
| 1410 | game:GetService("Debris"):AddItem(locatepart, 5)
| |
| 1411 | end | |
| 1412 | end)) | |
| 1413 | Swait(50) | |
| 1414 | ATTACK = false | |
| 1415 | Rooted = false | |
| 1416 | end | |
| 1417 | function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
| 1418 | if FLOOR ~= nil then | |
| 1419 | coroutine.resume(coroutine.create(function() | |
| 1420 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0)) | |
| 1421 | PART.CFrame = CF(POSITION) | |
| 1422 | for i = 1, 45 do | |
| 1423 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
| 1424 | RingPiece.Material = FLOOR.Material | |
| 1425 | RingPiece.Color = FLOOR.Color | |
| 1426 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
| 1427 | Debris:AddItem(RingPiece,SWAIT) | |
| 1428 | end | |
| 1429 | PART:remove() | |
| 1430 | end)) | |
| 1431 | end | |
| 1432 | end | |
| 1433 | ||
| 1434 | function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH) | |
| 1435 | if FLOOR ~= nil then | |
| 1436 | for i = 1, AMOUNT do | |
| 1437 | local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false) | |
| 1438 | DEBREE.Material = FLOOR.Material | |
| 1439 | DEBREE.Color = FLOOR.Color | |
| 1440 | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
| 1441 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH)) | |
| 1442 | coroutine.resume(coroutine.create(function() | |
| 1443 | Swait(15) | |
| 1444 | DEBREE.Parent = workspace | |
| 1445 | DEBREE.CanCollide = true | |
| 1446 | Debris:AddItem(DEBREE,SWAIT) | |
| 1447 | end)) | |
| 1448 | end | |
| 1449 | end | |
| 1450 | end | |
| 1451 | ||
| 1452 | function SpawnSmite(POS) | |
| 1453 | local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character) | |
| 1454 | local EMITPOS = HITPOS | |
| 1455 | if HITFLOOR ~= nil then | |
| 1456 | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1457 | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent) | |
| 1458 | EMITPOS = HITPOS | |
| 1459 | elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1460 | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent) | |
| 1461 | EMITPOS = HITPOS | |
| 1462 | end | |
| 1463 | end | |
| 1464 | if HITFLOOR ~= nil then | |
| 1465 | ApplyAoE(EMITPOS,10) | |
| 1466 | WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
| |
| 1467 | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
| |
| 1468 | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
| |
| 1469 | for i = 1, 5 do | |
| 1470 | local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12) | |
| 1471 | WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
| |
| 1472 | end | |
| 1473 | end | |
| 1474 | end | |
| 1475 | function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS) | |
| 1476 | coroutine.resume(coroutine.create(function() | |
| 1477 | local METEOR = IT("Model",Effects)
| |
| 1478 | METEOR.Name = "Meteorite" | |
| 1479 | local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) | |
| 1480 | METEOR.PrimaryPart = CENTER | |
| 1481 | local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) | |
| 1482 | PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 1483 | for i = 1, 15 do | |
| 1484 | local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Really red", "Fire", VT(5.1,1,5.1)*SIZE) | |
| 1485 | FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 1486 | end | |
| 1487 | if ISDEBREE ~= true then | |
| 1488 | METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
| 1489 | else | |
| 1490 | METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
| 1491 | end | |
| 1492 | local IMPACT = false | |
| 1493 | CreateSound(463593339, CENTER, 10, 0.6) | |
| 1494 | if SIZE >= 3.5 then | |
| 1495 | for i = 1, MRANDOM(3,7) do | |
| 1496 | SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p) | |
| 1497 | end | |
| 1498 | end | |
| 1499 | for i = 1, 200 do | |
| 1500 | Swait() | |
| 1501 | local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character) | |
| 1502 | if HITFLOOR == nil then | |
| 1503 | local ORI = CENTER.Orientation | |
| 1504 | METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
| 1505 | else | |
| 1506 | if HITFLOOR.Anchored == true then | |
| 1507 | CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5) | |
| 1508 | CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175) | |
| 1509 | end | |
| 1510 | IMPACT = true | |
| 1511 | break | |
| 1512 | end | |
| 1513 | end | |
| 1514 | if IMPACT == true then | |
| 1515 | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
| |
| 1516 | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5})
| |
| 1517 | WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
| |
| 1518 | ApplyAoE(CENTER.Position,30*SIZE) | |
| 1519 | end | |
| 1520 | METEOR:remove() | |
| 1521 | end)) | |
| 1522 | end | |
| 1523 | ||
| 1524 | function Deathbound() | |
| 1525 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false) | |
| 1526 | ATTACK = true | |
| 1527 | Rooted = true | |
| 1528 | for i=0, 1, 0.1 / Animation_Speed do | |
| 1529 | Swait() | |
| 1530 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1531 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1532 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1533 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1534 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1535 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1536 | end | |
| 1537 | local DONE = false | |
| 1538 | local GATE = nil | |
| 1539 | local GATESPIN = true | |
| 1540 | coroutine.resume(coroutine.create(function() | |
| 1541 | repeat | |
| 1542 | Swait() | |
| 1543 | if GATE ~= nil then | |
| 1544 | GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0)) | |
| 1545 | end | |
| 1546 | until GATESPIN == false | |
| 1547 | end)) | |
| 1548 | coroutine.resume(coroutine.create(function() | |
| 1549 | repeat | |
| 1550 | Swait() | |
| 1551 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.2 - 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1552 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1553 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1554 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1555 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1556 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1557 | until DONE == true | |
| 1558 | Swait(50) | |
| 1559 | for i = 1, 35 do | |
| 1560 | Swait(4) | |
| 1561 | local FIRED = false | |
| 1562 | local CHILDREN = workspace:GetDescendants() | |
| 1563 | for index, CHILD in pairs(CHILDREN) do | |
| 1564 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 1565 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 1566 | if HUM then | |
| 1567 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 1568 | if TORSO then | |
| 1569 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
| 1570 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
| 1571 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
| 1572 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6})
| |
| 1573 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1574 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
| 1575 | Banish(CHILD) | |
| 1576 | FIRED = true | |
| 1577 | break | |
| 1578 | end | |
| 1579 | end | |
| 1580 | end | |
| 1581 | end | |
| 1582 | end | |
| 1583 | if FIRED == false then | |
| 1584 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
| 1585 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6})
| |
| 1586 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1587 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
| 1588 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
| 1589 | if HITBOD ~= nil then | |
| 1590 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1591 | Banish(HITBOD.Parent) | |
| 1592 | end | |
| 1593 | end | |
| 1594 | end | |
| 1595 | end | |
| 1596 | for i = 1, 45 do | |
| 1597 | Swait() | |
| 1598 | GATE.Size = GATE.Size - VT(3,0,3) | |
| 1599 | end | |
| 1600 | GATESPIN = false | |
| 1601 | GATE:remove() | |
| 1602 | end)) | |
| 1603 | Swait(15) | |
| 1604 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
| 1605 | GATE = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Gate", VT(0,0,0)) | |
| 1606 | local DECAL = IT("Decal",GATE)
| |
| 1607 | DECAL.Texture = "http://www.roblox.com/asset/?id=1526406096" | |
| 1608 | DECAL.Face = "Top" | |
| 1609 | GATE.CFrame = CF(HITPOS) | |
| 1610 | CreateSound(160772554, GATE, 7, 1.3, false) | |
| 1611 | for i = 1, 45 do | |
| 1612 | Swait() | |
| 1613 | GATE.Size = GATE.Size + VT(3,0,3) | |
| 1614 | end | |
| 1615 | CreateSound(145080998, Handle, 7, 1, false) | |
| 1616 | CreateSound(145080998, Handle, 7, 1, false) | |
| 1617 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = Handle.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1618 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = Handle.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1619 | ATTACK = false | |
| 1620 | Rooted = false | |
| 1621 | DONE = true | |
| 1622 | end | |
| 1623 | function AttackTemplate() | |
| 1624 | ATTACK = true | |
| 1625 | Rooted = false | |
| 1626 | for i=0, 1, 0.1 / Animation_Speed do | |
| 1627 | Swait() | |
| 1628 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1629 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1630 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1631 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1632 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1633 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1634 | end | |
| 1635 | ATTACK = false | |
| 1636 | Rooted = false | |
| 1637 | end | |
| 1638 | function Smite() | |
| 1639 | ATTACK = true | |
| 1640 | Rooted = false | |
| 1641 | CreateSound(1368573150, RightArm, 3, 1.5) | |
| 1642 | for i=0, 0.6, 0.1 / Animation_Speed do | |
| 1643 | Swait() | |
| 1644 | WACKYEFFECT({TIME = 15, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
| |
| 1645 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1646 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
| 1647 | end | |
| 1648 | local POWER = 0 | |
| 1649 | repeat | |
| 1650 | Swait() | |
| 1651 | WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
| |
| 1652 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1653 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
| 1654 | POWER = POWER + 0.5 | |
| 1655 | if POWER >= 85 then | |
| 1656 | POWER = 85 | |
| 1657 | end | |
| 1658 | until KEYHOLD == false | |
| 1659 | if POWER < 0.6 then | |
| 1660 | SpawnSmite(Mouse.Hit.p) | |
| 1661 | else | |
| 1662 | if POWER < 15 then | |
| 1663 | POWER = 15 | |
| 1664 | end | |
| 1665 | SpawnMeteor(Mouse.Hit.p,POWER/15) | |
| 1666 | end | |
| 1667 | ATTACK = false | |
| 1668 | Rooted = false | |
| 1669 | end | |
| 1670 | function Taunt() | |
| 1671 | ATTACK = true | |
| 1672 | Rooted = false | |
| 1673 | local TAUNT = true | |
| 1674 | for i=0, 0.1, 0.1 / Animation_Speed do | |
| 1675 | Swait() | |
| 1676 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1677 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 1678 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 1679 | end | |
| 1680 | for i=0, 3, 0.1 / Animation_Speed do | |
| 1681 | Swait() | |
| 1682 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1683 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1684 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(15)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1685 | end | |
| 1686 | CreateSound(363808674, Torso, 10, 1.3) | |
| 1687 | for i=0, 1, 0.1 / Animation_Speed do | |
| 1688 | Swait() | |
| 1689 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(120)), 3 / Animation_Speed) | |
| 1690 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 3/ Animation_Speed) | |
| 1691 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(230), RAD(0), RAD(35)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
| 1692 | end | |
| 1693 | WACKYEFFECT({EffectType = "Block", Size = VT(6,6,6), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
| |
| 1694 | CreateSound(649634100, Torso, 10, 0.8) | |
| 1695 | for i=0, 0.01, 0.1 / Animation_Speed do | |
| 1696 | Swait() | |
| 1697 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed) | |
| 1698 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
| 1699 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
| 1700 | end | |
| 1701 | ATTACK = false | |
| 1702 | Rooted = false | |
| 1703 | TAUNT = false | |
| 1704 | end | |
| 1705 | --//=================================\\ | |
| 1706 | --|| ASSIGN THINGS TO KEYS | |
| 1707 | --\\=================================// | |
| 1708 | ||
| 1709 | function MouseDown(Mouse) | |
| 1710 | if ATTACK == false then | |
| 1711 | end | |
| 1712 | end | |
| 1713 | ||
| 1714 | function MouseUp(Mouse) | |
| 1715 | HOLD = false | |
| 1716 | end | |
| 1717 | ||
| 1718 | function KeyDown(Key) | |
| 1719 | KEYHOLD = true | |
| 1720 | if Key == "z" and ATTACK == false then | |
| 1721 | Shot() | |
| 1722 | end | |
| 1723 | ||
| 1724 | if Key == "b" and ATTACK == false then | |
| 1725 | end | |
| 1726 | ||
| 1727 | if Key == "c" and ATTACK == false then | |
| 1728 | Smite() | |
| 1729 | end | |
| 1730 | ||
| 1731 | if Key == "v" and ATTACK == false then | |
| 1732 | end | |
| 1733 | ||
| 1734 | if Key == "t" and ATTACK == false then | |
| 1735 | Taunt() | |
| 1736 | end | |
| 1737 | ||
| 1738 | if Key == "x" and ATTACK == false then | |
| 1739 | Deathbound() | |
| 1740 | end | |
| 1741 | end | |
| 1742 | ||
| 1743 | function KeyUp(Key) | |
| 1744 | KEYHOLD = false | |
| 1745 | end | |
| 1746 | ||
| 1747 | Mouse.Button1Down:connect(function(NEWKEY) | |
| 1748 | MouseDown(NEWKEY) | |
| 1749 | end) | |
| 1750 | Mouse.Button1Up:connect(function(NEWKEY) | |
| 1751 | MouseUp(NEWKEY) | |
| 1752 | end) | |
| 1753 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 1754 | KeyDown(NEWKEY) | |
| 1755 | end) | |
| 1756 | Mouse.KeyUp:connect(function(NEWKEY) | |
| 1757 | KeyUp(NEWKEY) | |
| 1758 | end) | |
| 1759 | ||
| 1760 | --//=================================\\ | |
| 1761 | --\\=================================// | |
| 1762 | ||
| 1763 | ||
| 1764 | function unanchor() | |
| 1765 | if UNANCHOR == true then | |
| 1766 | g = Character:GetChildren() | |
| 1767 | for i = 1, #g do | |
| 1768 | if g[i].ClassName == "Part" then | |
| 1769 | g[i].Anchored = false | |
| 1770 | end | |
| 1771 | end | |
| 1772 | end | |
| 1773 | end | |
| 1774 | ||
| 1775 | ||
| 1776 | --//=================================\\ | |
| 1777 | --|| WRAP THE WHOLE SCRIPT UP | |
| 1778 | --\\=================================// | |
| 1779 | ||
| 1780 | Humanoid.Changed:connect(function(Jump) | |
| 1781 | if Jump == "Jump" and (Disable_Jump == true) then | |
| 1782 | Humanoid.Jump = false | |
| 1783 | end | |
| 1784 | end) | |
| 1785 | ||
| 1786 | local CONNECT = nil | |
| 1787 | ||
| 1788 | while true do | |
| 1789 | Swait() | |
| 1790 | ANIMATE.Parent = nil | |
| 1791 | if Character:FindFirstChildOfClass("Humanoid") == nil then
| |
| 1792 | Humanoid = IT("Humanoid",Character)
| |
| 1793 | end | |
| 1794 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
| 1795 | v:Stop(); | |
| 1796 | end | |
| 1797 | SINE = SINE + CHANGE | |
| 1798 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
| 1799 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 1800 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
| 1801 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
| 1802 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
| 1803 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1804 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1805 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1806 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1807 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
| 1808 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1809 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1810 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1811 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1812 | end | |
| 1813 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
| 1814 | ANIM = "Jump" | |
| 1815 | if ATTACK == false then | |
| 1816 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1817 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1818 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1819 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1820 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
| 1821 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1822 | end | |
| 1823 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
| 1824 | ANIM = "Fall" | |
| 1825 | if ATTACK == false then | |
| 1826 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1827 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1828 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1829 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1830 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1831 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
| 1832 | end | |
| 1833 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
| 1834 | ANIM = "Idle" | |
| 1835 | if ATTACK == false then | |
| 1836 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed) | |
| 1837 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed) | |
| 1838 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1839 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1840 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1841 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1842 | end | |
| 1843 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
| 1844 | ANIM = "Walk" | |
| 1845 | if ATTACK == false then | |
| 1846 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1847 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1848 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1849 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) | |
| 1850 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
| 1851 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
| 1852 | end | |
| 1853 | end | |
| 1854 | unanchor() | |
| 1855 | Humanoid.MaxHealth = "inf" | |
| 1856 | Humanoid.Health = "inf" | |
| 1857 | if Rooted == false then | |
| 1858 | Disable_Jump = false | |
| 1859 | Humanoid.WalkSpeed = Speed | |
| 1860 | elseif Rooted == true then | |
| 1861 | Disable_Jump = true | |
| 1862 | Humanoid.WalkSpeed = 0 | |
| 1863 | end | |
| 1864 | sick.Parent = Torso | |
| 1865 | sick:resume() | |
| 1866 | sick.Volume = 8.2 | |
| 1867 | sick.Pitch = 1 | |
| 1868 | sick.SoundId = "rbxassetid://900318768" | |
| 1869 | sick.Name = "Dead" | |
| 1870 | ||
| 1871 | end | |
| 1872 | ||
| 1873 | ||
| 1874 | ||
| 1875 | ||
| 1876 | ||
| 1877 | --//====================================================\\-- | |
| 1878 | --|| ANTI DEATH | |
| 1879 | --\\====================================================//-- | |
| 1880 | ||
| 1881 | ||
| 1882 | ||
| 1883 | --//====================================================\\-- | |
| 1884 | --|| END OF SCRIPT | |
| 1885 | --\\====================================================//-- |