SHOW:
|
|
- or go back to the newest paste.
| 1 | warn("StarLight Loaded.")
| |
| 2 | warn("All purpose switcher...")
| |
| 3 | warn("Edit By Frepix.")
| |
| 4 | warn("Moves Edited By UndeniableInfinity.")
| |
| 5 | warn("Please Support The Original Creator Of This Script.")
| |
| 6 | plr = game.Players.LocalPlayer | |
| 7 | char = plr.Character | |
| 8 | hum = char.Humanoid | |
| 9 | local cam = game.Workspace.CurrentCamera | |
| 10 | local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
| |
| 11 | Camera = cam | |
| 12 | local CamInterrupt = false | |
| 13 | local TwoD = false | |
| 14 | local TargetInfo = {nil, nil}
| |
| 15 | cam.CameraType = "Custom" | |
| 16 | t = char.Torso | |
| 17 | h = char.Head | |
| 18 | ra = char["Right Arm"] | |
| 19 | la = char["Left Arm"] | |
| 20 | rl = char["Right Leg"] | |
| 21 | ll = char["Left Leg"] | |
| 22 | tors = char.Torso | |
| 23 | lleg = char["Left Leg"] | |
| 24 | root = char.HumanoidRootPart | |
| 25 | hed = char.Head | |
| 26 | rleg = char["Right Leg"] | |
| 27 | rarm = char["Right Arm"] | |
| 28 | larm = char["Left Arm"] | |
| 29 | radian = math.rad | |
| 30 | random = math.random | |
| 31 | Vec3 = Vector3.new | |
| 32 | Inst = Instance.new | |
| 33 | cFrame = CFrame.new | |
| 34 | Euler = CFrame.fromEulerAnglesXYZ | |
| 35 | vt = Vector3.new | |
| 36 | bc = BrickColor.new | |
| 37 | br = BrickColor.random | |
| 38 | it = Instance.new | |
| 39 | cf = CFrame.new | |
| 40 | local Booleans = {CamFollow = true, GyroUse = true}
| |
| 41 | function lerp(object, newCFrame, alpha) | |
| 42 | return object:lerp(newCFrame, alpha) | |
| 43 | end | |
| 44 | ||
| 45 | ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
| |
| 46 | ff.Visible = false | |
| 47 | ||
| 48 | ||
| 49 | local Directer = Inst("BodyGyro", root)
| |
| 50 | Directer.MaxTorque = Vec3(0, 0, 0) | |
| 51 | Directer.P = 600000 | |
| 52 | local CPart = Inst("Part")
| |
| 53 | CPart.Anchored = true | |
| 54 | CPart.CanCollide = false | |
| 55 | CPart.Locked = true | |
| 56 | CPart.Transparency = 1 | |
| 57 | local rainbowmode = false | |
| 58 | local chaosmode = false | |
| 59 | kan = Instance.new("Sound", char)
| |
| 60 | kan.Volume = 1.98 | |
| 61 | kan.TimePosition = 0 | |
| 62 | kan.PlaybackSpeed = 1 | |
| 63 | kan.Pitch = 1 | |
| 64 | kan.SoundId = "rbxassetid://415898123" | |
| 65 | kan.Name = "wrecked" | |
| 66 | kan.Looped = true | |
| 67 | kan:Play() | |
| 68 | function newTheme(ID, timepos, pitch, vol) | |
| 69 | local kanz = kan | |
| 70 | kanz.PlaybackSpeed = pitch | |
| 71 | kanz.Pitch = pitch | |
| 72 | kanz.SoundId = ID | |
| 73 | kanz.Name = "wrecked" | |
| 74 | kanz.Looped = true | |
| 75 | end | |
| 76 | function CameraShake(Times, Power, PlayerTarget) | |
| 77 | coroutine.resume(coroutine.create(function() | |
| 78 | FV = Instance.new("BoolValue", PlayerTarget)
| |
| 79 | FV.Name = "CameraShake" | |
| 80 | for ShakeNum = 1, Times do | |
| 81 | swait() | |
| 82 | local ef = Power | |
| 83 | if ef >= 1 then | |
| 84 | Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef)) | |
| 85 | else | |
| 86 | ef = Power * 10 | |
| 87 | Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10) | |
| 88 | end | |
| 89 | end | |
| 90 | Humanoid.CameraOffset = Vector3.new(0, 0, 0) | |
| 91 | FV:Destroy() | |
| 92 | end)) | |
| 93 | end | |
| 94 | function CameraEnshaking(Length, Intensity) | |
| 95 | coroutine.resume(coroutine.create(function() | |
| 96 | local intensity = 1 * Intensity | |
| 97 | local rotM = 0.01 * Intensity | |
| 98 | for i = 0, Length, 0.1 do | |
| 99 | swait() | |
| 100 | intensity = intensity - 0.05 * Intensity / Length | |
| 101 | rotM = rotM - 5.0E-4 * Intensity / Length | |
| 102 | hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) | |
| 103 | cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM) | |
| 104 | end | |
| 105 | Humanoid.CameraOffset = Vec3(0, 0, 0) | |
| 106 | end)) | |
| 107 | end | |
| 108 | function CamShake(Part, Distan, Power, Times) | |
| 109 | local de = Part.Position | |
| 110 | for i, v in pairs(workspace:children()) do | |
| 111 | if v:IsA("Model") and v:findFirstChild("Humanoid") then
| |
| 112 | for _, c in pairs(v:children()) do | |
| 113 | if c.ClassName == "Part" and Distan > (c.Position - de).magnitude then | |
| 114 | do | |
| 115 | local Noob = v.Humanoid | |
| 116 | if Noob ~= nil then | |
| 117 | coroutine.resume(coroutine.create(function() | |
| 118 | FV = Instance.new("BoolValue", Noob)
| |
| 119 | FV.Name = "CameraShake" | |
| 120 | for ShakeNum = 1, Times do | |
| 121 | swait() | |
| 122 | local ef = Power | |
| 123 | if ef >= 1 then | |
| 124 | Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef)) | |
| 125 | else | |
| 126 | ef = Power * 10 | |
| 127 | Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10) | |
| 128 | end | |
| 129 | end | |
| 130 | Humanoid.CameraOffset = Vector3.new(0, 0, 0) | |
| 131 | FV:Destroy() | |
| 132 | end)) | |
| 133 | CameraShake(Times, Power, Noob) | |
| 134 | end | |
| 135 | end | |
| 136 | end | |
| 137 | end | |
| 138 | end | |
| 139 | end | |
| 140 | end | |
| 141 | function chatfunc(text, color) | |
| 142 | local chat = coroutine.wrap(function() | |
| 143 | if Character:FindFirstChild("TalkingBillBoard") ~= nil then
| |
| 144 | Character:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 145 | end | |
| 146 | local naeeym2 = Instance.new("BillboardGui", Character)
| |
| 147 | naeeym2.Size = UDim2.new(0, 100, 0, 40) | |
| 148 | naeeym2.StudsOffset = Vector3.new(0, 3, 0) | |
| 149 | naeeym2.Adornee = Character.Head | |
| 150 | naeeym2.Name = "TalkingBillBoard" | |
| 151 | local tecks2 = Instance.new("TextLabel", naeeym2)
| |
| 152 | tecks2.BackgroundTransparency = 1 | |
| 153 | tecks2.BorderSizePixel = 0 | |
| 154 | tecks2.Text = "" | |
| 155 | tecks2.Font = "SciFi" | |
| 156 | tecks2.TextSize = 30 | |
| 157 | tecks2.TextStrokeTransparency = 0 | |
| 158 | tecks2.TextColor3 = color | |
| 159 | tecks2.TextStrokeColor3 = Color3.new(0, 0, 0) | |
| 160 | tecks2.Size = UDim2.new(1, 0, 0.5, 0) | |
| 161 | local tecks3 = Instance.new("TextLabel", naeeym2)
| |
| 162 | tecks3.BackgroundTransparency = 1 | |
| 163 | tecks3.BorderSizePixel = 0 | |
| 164 | tecks3.Text = "" | |
| 165 | tecks3.Font = "SciFi" | |
| 166 | tecks3.TextSize = 30 | |
| 167 | tecks3.TextStrokeTransparency = 0 | |
| 168 | tecks3.TextColor3 = Color3.new(0, 0, 0) | |
| 169 | tecks3.TextStrokeColor3 = color | |
| 170 | tecks3.Size = UDim2.new(1, 0, 0.5, 0) | |
| 171 | coroutine.resume(coroutine.create(function() | |
| 172 | while true do | |
| 173 | swait(1) | |
| 174 | if chaosmode == true then | |
| 175 | tecks2.TextColor3 = BrickColor.random().Color | |
| 176 | tecks3.TextStrokeColor3 = BrickColor.random().Color | |
| 177 | end | |
| 178 | tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5)) | |
| 179 | tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5)) | |
| 180 | tecks2.Rotation = math.random(-5, 5) | |
| 181 | tecks3.Rotation = math.random(-5, 5) | |
| 182 | end | |
| 183 | end)) | |
| 184 | for i = 1, string.len(text) do | |
| 185 | CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115)
| |
| 186 | tecks2.Text = string.sub(text, 1, i) | |
| 187 | tecks3.Text = string.sub(text, 1, i) | |
| 188 | swait(1) | |
| 189 | end | |
| 190 | wait(1) | |
| 191 | local randomrot = math.random(1, 2) | |
| 192 | if randomrot == 1 then | |
| 193 | for i = 1, 50 do | |
| 194 | swait() | |
| 195 | tecks2.Rotation = tecks2.Rotation - 0.75 | |
| 196 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
| 197 | tecks2.TextTransparency = tecks2.TextTransparency + 0.04 | |
| 198 | tecks3.Rotation = tecks2.Rotation + 0.75 | |
| 199 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
| 200 | tecks3.TextTransparency = tecks2.TextTransparency + 0.04 | |
| 201 | end | |
| 202 | elseif randomrot == 2 then | |
| 203 | for i = 1, 50 do | |
| 204 | swait() | |
| 205 | tecks2.Rotation = tecks2.Rotation + 0.75 | |
| 206 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
| 207 | tecks2.TextTransparency = tecks2.TextTransparency + 0.04 | |
| 208 | tecks3.Rotation = tecks2.Rotation - 0.75 | |
| 209 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
| 210 | tecks3.TextTransparency = tecks2.TextTransparency + 0.04 | |
| 211 | end | |
| 212 | end | |
| 213 | naeeym2:Destroy() | |
| 214 | end) | |
| 215 | chat() | |
| 216 | end | |
| 217 | local Create = LoadLibrary("RbxUtility").Create
| |
| 218 | CFuncs = {
| |
| 219 | Part = {
| |
| 220 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 221 | local Part = Create("Part")({
| |
| 222 | Parent = Parent, | |
| 223 | Reflectance = Reflectance, | |
| 224 | Transparency = Transparency, | |
| 225 | CanCollide = false, | |
| 226 | Locked = true, | |
| 227 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 228 | Name = Name, | |
| 229 | Size = Size, | |
| 230 | Material = Material | |
| 231 | }) | |
| 232 | RemoveOutlines(Part) | |
| 233 | return Part | |
| 234 | end | |
| 235 | }, | |
| 236 | Mesh = {
| |
| 237 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 238 | local Msh = Create(Mesh)({
| |
| 239 | Parent = Part, | |
| 240 | Offset = OffSet, | |
| 241 | Scale = Scale | |
| 242 | }) | |
| 243 | if Mesh == "SpecialMesh" then | |
| 244 | Msh.MeshType = MeshType | |
| 245 | Msh.MeshId = MeshId | |
| 246 | end | |
| 247 | return Msh | |
| 248 | end | |
| 249 | }, | |
| 250 | Mesh = {
| |
| 251 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 252 | local Msh = Create(Mesh)({
| |
| 253 | Parent = Part, | |
| 254 | Offset = OffSet, | |
| 255 | Scale = Scale | |
| 256 | }) | |
| 257 | if Mesh == "SpecialMesh" then | |
| 258 | Msh.MeshType = MeshType | |
| 259 | Msh.MeshId = MeshId | |
| 260 | end | |
| 261 | return Msh | |
| 262 | end | |
| 263 | }, | |
| 264 | Weld = {
| |
| 265 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 266 | local Weld = Create("Weld")({
| |
| 267 | Parent = Parent, | |
| 268 | Part0 = Part0, | |
| 269 | Part1 = Part1, | |
| 270 | C0 = C0, | |
| 271 | C1 = C1 | |
| 272 | }) | |
| 273 | return Weld | |
| 274 | end | |
| 275 | }, | |
| 276 | Sound = {
| |
| 277 | Create = function(id, par, vol, pit) | |
| 278 | coroutine.resume(coroutine.create(function() | |
| 279 | local S = Create("Sound")({
| |
| 280 | Volume = vol, | |
| 281 | Pitch = pit or 1, | |
| 282 | SoundId = id, | |
| 283 | Parent = par or workspace | |
| 284 | }) | |
| 285 | wait() | |
| 286 | S:play() | |
| 287 | game:GetService("Debris"):AddItem(S, 10)
| |
| 288 | end)) | |
| 289 | end | |
| 290 | }, | |
| 291 | LongSound = {
| |
| 292 | Create = function(id, par, vol, pit) | |
| 293 | coroutine.resume(coroutine.create(function() | |
| 294 | local S = Create("Sound")({
| |
| 295 | Volume = vol, | |
| 296 | Pitch = pit or 1, | |
| 297 | SoundId = id, | |
| 298 | Parent = par or workspace | |
| 299 | }) | |
| 300 | wait() | |
| 301 | S:play() | |
| 302 | game:GetService("Debris"):AddItem(S, 30)
| |
| 303 | end)) | |
| 304 | end | |
| 305 | }, | |
| 306 | ParticleEmitter = {
| |
| 307 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 308 | local fp = Create("ParticleEmitter")({
| |
| 309 | Parent = Parent, | |
| 310 | Color = ColorSequence.new(Color1, Color2), | |
| 311 | LightEmission = LightEmission, | |
| 312 | Size = Size, | |
| 313 | Texture = Texture, | |
| 314 | Transparency = Transparency, | |
| 315 | ZOffset = ZOffset, | |
| 316 | Acceleration = Accel, | |
| 317 | Drag = Drag, | |
| 318 | LockedToPart = LockedToPart, | |
| 319 | VelocityInheritance = VelocityInheritance, | |
| 320 | EmissionDirection = EmissionDirection, | |
| 321 | Enabled = Enabled, | |
| 322 | Lifetime = LifeTime, | |
| 323 | Rate = Rate, | |
| 324 | Rotation = Rotation, | |
| 325 | RotSpeed = RotSpeed, | |
| 326 | Speed = Speed, | |
| 327 | VelocitySpread = VelocitySpread | |
| 328 | }) | |
| 329 | return fp | |
| 330 | end | |
| 331 | }, | |
| 332 | CreateTemplate = {}
| |
| 333 | } | |
| 334 | function New(Object, Parent, Name, Data) | |
| 335 | local Object = Instance.new(Object) | |
| 336 | for Index, Value in pairs(Data or {}) do
| |
| 337 | Object[Index] = Value | |
| 338 | end | |
| 339 | Object.Parent = Parent | |
| 340 | Object.Name = Name | |
| 341 | return Object | |
| 342 | end | |
| 343 | local halocolor = BrickColor.new("Pastel light blue")
| |
| 344 | local halocolor2 = BrickColor.new("Really black")
| |
| 345 | local starcolor = BrickColor.new("Really black")
| |
| 346 | local lunacolor = BrickColor.new("Navy blue")
| |
| 347 | local lunacolor2 = BrickColor.new("Bright blue")
| |
| 348 | local wepcolor = BrickColor.new("Really black")
| |
| 349 | local maincolor = BrickColor.new("Really black")
| |
| 350 | local m = Instance.new("Model", char)
| |
| 351 | local m2 = Instance.new("Model", char)
| |
| 352 | local m3 = Instance.new("Model", char)
| |
| 353 | local mw1 = Instance.new("Model", char)
| |
| 354 | local mw2 = Instance.new("Model", char)
| |
| 355 | local extrawingmod1 = Instance.new("Model", char)
| |
| 356 | local extrawingmod2 = Instance.new("Model", char)
| |
| 357 | - | local boll = Instance.new("Part",game.Lighting)
|
| 357 | + | |
| 358 | - | boll.Transparency = 0.5 |
| 358 | + | |
| 359 | - | boll.Material = "Neon" |
| 359 | + | |
| 360 | - | boll.BrickColor = tors.BrickColor |
| 360 | + | |
| 361 | - | boll.Anchored = true |
| 361 | + | |
| 362 | - | boll.Size = vt(1,1,1) |
| 362 | + | |
| 363 | - | boll.Shape = "Ball" |
| 363 | + | |
| 364 | - | boll.CanCollide = false |
| 364 | + | |
| 365 | if v:IsA("Humanoid") then
| |
| 366 | - | local shur = Instance.new("Part",game.Lighting)
|
| 366 | + | |
| 367 | - | shur.Transparency = 0 |
| 367 | + | |
| 368 | - | shur.Material = "Neon" |
| 368 | + | |
| 369 | - | shur.BrickColor = tors.BrickColor |
| 369 | + | |
| 370 | - | shur.Anchored = true |
| 370 | + | |
| 371 | - | shur.Size = vt(5,0.2,5) |
| 371 | + | |
| 372 | - | shur.CanCollide = false |
| 372 | + | |
| 373 | hit=hit.Parent.Parent:findFirstChild("Head")
| |
| 374 | end | |
| 375 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
| |
| 376 | - | local boll = Instance.new("Part",game.Lighting)
|
| 376 | + | |
| 377 | - | boll.Transparency = 0.5 |
| 377 | + | |
| 378 | - | boll.Material = "Neon" |
| 378 | + | |
| 379 | - | boll.BrickColor = bc("Bright red")
|
| 379 | + | |
| 380 | - | boll.Anchored = true |
| 380 | + | |
| 381 | - | boll.Size = vt(1,1,1) |
| 381 | + | |
| 382 | - | boll.Shape = "Ball" |
| 382 | + | |
| 383 | - | boll.CanCollide = false |
| 383 | + | |
| 384 | c.Parent=h | |
| 385 | - | local shur = Instance.new("Part",game.Lighting)
|
| 385 | + | |
| 386 | - | shur.Transparency = 0 |
| 386 | + | |
| 387 | - | shur.Material = "Neon" |
| 387 | + | |
| 388 | - | shur.BrickColor = bc("Bright red")
|
| 388 | + | |
| 389 | - | shur.Anchored = true |
| 389 | + | |
| 390 | - | shur.Size = vt(5,0.2,5) |
| 390 | + | |
| 391 | - | shur.CanCollide = false |
| 391 | + | |
| 392 | if block.className=="NumberValue" then | |
| 393 | if block.Value>0 then | |
| 394 | blocked=true | |
| 395 | if decreaseblock==nil then | |
| 396 | block.Value=block.Value-1 | |
| 397 | end | |
| 398 | end | |
| 399 | end | |
| 400 | if block.className=="IntValue" then | |
| 401 | if block.Value>0 then | |
| 402 | blocked=true | |
| 403 | if decreaseblock~=nil then | |
| 404 | block.Value=block.Value-1 | |
| 405 | end | |
| 406 | end | |
| 407 | end | |
| 408 | end | |
| 409 | if blocked==false then | |
| 410 | -- h:TakeDamage(Damage) | |
| 411 | h.Health=h.Health-Damage | |
| 412 | showDamage(hit.Parent,Damage,.5,TorsoColor) | |
| 413 | else | |
| 414 | h.Health=h.Health-(Damage/2) | |
| 415 | showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
| |
| 416 | end | |
| 417 | if Type=="Knockdown" then | |
| 418 | hum=hit.Parent.Humanoid | |
| 419 | hum.PlatformStand=true | |
| 420 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 421 | swait(1) | |
| 422 | HHumanoid.PlatformStand=false | |
| 423 | end),hum) | |
| 424 | function CreateParta(parent, transparency, reflectance, material, brickcolor) | |
| 425 | local p = Instance.new("Part")
| |
| 426 | p.TopSurface = 0 | |
| 427 | p.BottomSurface = 0 | |
| 428 | p.Parent = parent | |
| 429 | p.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 430 | p.Transparency = transparency | |
| 431 | p.Reflectance = reflectance | |
| 432 | p.CanCollide = false | |
| 433 | p.Locked = true | |
| 434 | p.BrickColor = brickcolor | |
| 435 | p.Material = material | |
| 436 | return p | |
| 437 | end | |
| 438 | function CreateMesh(parent, meshtype, x1, y1, z1) | |
| 439 | local mesh = Instance.new("SpecialMesh", parent)
| |
| 440 | mesh.MeshType = meshtype | |
| 441 | mesh.Scale = Vector3.new(x1 * 10, y1 * 10, z1 * 10) | |
| 442 | return mesh | |
| 443 | end | |
| 444 | function CreateSpecialMesh(parent, meshid, x1, y1, z1) | |
| 445 | local mesh = Instance.new("SpecialMesh", parent)
| |
| 446 | mesh.MeshType = "FileMesh" | |
| 447 | mesh.MeshId = meshid | |
| 448 | mesh.Scale = Vector3.new(x1, y1, z1) | |
| 449 | return mesh | |
| 450 | end | |
| 451 | function CreateSpecialGlowMesh(parent, meshid, x1, y1, z1) | |
| 452 | local mesh = Instance.new("SpecialMesh", parent)
| |
| 453 | mesh.MeshType = "FileMesh" | |
| 454 | mesh.MeshId = meshid | |
| 455 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
| 456 | mesh.Scale = Vector3.new(x1, y1, z1) | |
| 457 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
| 458 | return mesh | |
| 459 | end | |
| 460 | function CreateWeld(parent, part0, part1, C1X, C1Y, C1Z, C1Xa, C1Ya, C1Za, C0X, C0Y, C0Z, C0Xa, C0Ya, C0Za) | |
| 461 | local weld = Instance.new("Weld")
| |
| 462 | weld.Parent = parent | |
| 463 | weld.Part0 = part0 | |
| 464 | weld.Part1 = part1 | |
| 465 | weld.C1 = CFrame.new(C1X, C1Y, C1Z) * CFrame.Angles(C1Xa, C1Ya, C1Za) | |
| 466 | weld.C0 = CFrame.new(C0X, C0Y, C0Z) * CFrame.Angles(C0Xa, C0Ya, C0Za) | |
| 467 | return weld | |
| 468 | end | |
| 469 | local handlex = CreateParta(mw2, 1, 1, "Neon", maincolor) | |
| 470 | CreateMesh(handle, "Brick", 0, 0, 0) | |
| 471 | local handlexweld = CreateWeld(handlex, tors, handlex, 0, -1.5, -1.05, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 472 | local valuaring = 10 | |
| 473 | for i = 0, 49 do | |
| 474 | valuaring = valuaring + 10 | |
| 475 | rn = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 476 | CreateMesh(rn, "Brick", 0.25, 0.1, 0.1) | |
| 477 | CreateWeld(rn, handlex, rn, 0, 1, 0, math.rad(0), math.rad(0), math.rad(valuaring), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 478 | end | |
| 479 | local handle = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 480 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 481 | local handleweld = CreateWeld(handle, tors, handle, 0, -1.5, -1.05, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 482 | local lwing1 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 483 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 484 | local lwing1weld = CreateWeld(lwing1, handle, lwing1, 3, 0, 0, math.rad(5), math.rad(0), math.rad(12.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 485 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 486 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 487 | CreateWeld(wed, lwing1, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 488 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 489 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 490 | CreateWeld(wed, lwing1, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 491 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 492 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 493 | CreateWeld(wed, lwing1, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 494 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 495 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 496 | CreateWeld(wed, lwing1, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 497 | local lwing2 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 498 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 499 | local lwing2weld = CreateWeld(lwing2, handle, lwing2, 4, 1, 0, math.rad(10), math.rad(0), math.rad(25), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 500 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 501 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 502 | CreateWeld(wed, lwing2, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 503 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 504 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 505 | CreateWeld(wed, lwing2, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 506 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 507 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 508 | CreateWeld(wed, lwing2, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 509 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 510 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 511 | CreateWeld(wed, lwing2, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 512 | local lwing3 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 513 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 514 | local lwing3weld = CreateWeld(lwing3, handle, lwing3, 4.75, 2, 0, math.rad(15), math.rad(0), math.rad(37.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 515 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 516 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 517 | CreateWeld(wed, lwing3, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 518 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 519 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 520 | CreateWeld(wed, lwing3, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 521 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 522 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 523 | CreateWeld(wed, lwing3, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 524 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 525 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 526 | CreateWeld(wed, lwing3, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 527 | local lwing4 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 528 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 529 | local lwing4weld = CreateWeld(lwing4, handle, lwing4, 5.75, 3, 0, math.rad(20), math.rad(0), math.rad(50), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 530 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 531 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 532 | CreateWeld(wed, lwing4, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 533 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 534 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 535 | CreateWeld(wed, lwing4, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 536 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 537 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 538 | CreateWeld(wed, lwing4, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 539 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 540 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 541 | CreateWeld(wed, lwing4, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 542 | local lwing5 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 543 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 544 | local lwing5weld = CreateWeld(lwing5, handle, lwing5, 6.75, 4, 0, math.rad(25), math.rad(0), math.rad(62.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 545 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 546 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 547 | CreateWeld(wed, lwing5, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 548 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 549 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 550 | CreateWeld(wed, lwing5, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 551 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 552 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 553 | CreateWeld(wed, lwing5, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 554 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 555 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 556 | CreateWeld(wed, lwing5, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 557 | local lwing6 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 558 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 559 | local lwing6weld = CreateWeld(lwing6, handle, lwing6, 7.75, 5, 0, math.rad(30), math.rad(0), math.rad(75), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 560 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 561 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 562 | CreateWeld(wed, lwing6, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 563 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 564 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 565 | CreateWeld(wed, lwing6, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 566 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 567 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 568 | CreateWeld(wed, lwing6, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 569 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 570 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 571 | CreateWeld(wed, lwing6, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 572 | local rwing1 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 573 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 574 | local rwing1weld = CreateWeld(rwing1, handle, rwing1, -3, 0, 0, math.rad(5), math.rad(0), math.rad(-12.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 575 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 576 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 577 | CreateWeld(wed, rwing1, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 578 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 579 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 580 | CreateWeld(wed, rwing1, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 581 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 582 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 583 | CreateWeld(wed, rwing1, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 584 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 585 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 586 | CreateWeld(wed, rwing1, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 587 | local rwing2 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 588 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 589 | local rwing2weld = CreateWeld(rwing2, handle, rwing2, -4, 1, 0, math.rad(10), math.rad(0), math.rad(-25), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 590 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 591 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 592 | CreateWeld(wed, rwing2, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 593 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 594 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 595 | CreateWeld(wed, rwing2, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 596 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 597 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 598 | CreateWeld(wed, rwing2, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 599 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 600 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 601 | CreateWeld(wed, rwing2, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 602 | local rwing3 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 603 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 604 | local rwing3weld = CreateWeld(rwing3, handle, rwing3, -4.75, 2, 0, math.rad(15), math.rad(0), math.rad(-37.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 605 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 606 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 607 | CreateWeld(wed, rwing3, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 608 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 609 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 610 | CreateWeld(wed, rwing3, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 611 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 612 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 613 | CreateWeld(wed, rwing3, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 614 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 615 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 616 | CreateWeld(wed, rwing3, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 617 | local rwing4 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 618 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 619 | local rwing4weld = CreateWeld(rwing4, handle, rwing4, -5.75, 3, 0, math.rad(20), math.rad(0), math.rad(-50), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 620 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 621 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 622 | CreateWeld(wed, rwing4, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 623 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 624 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 625 | CreateWeld(wed, rwing4, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 626 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 627 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 628 | CreateWeld(wed, rwing4, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 629 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 630 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 631 | CreateWeld(wed, rwing4, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 632 | local rwing5 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 633 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 634 | local rwing5weld = CreateWeld(rwing5, handle, rwing5, -6.75, 4, 0, math.rad(25), math.rad(0), math.rad(-62.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 635 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 636 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 637 | CreateWeld(wed, rwing5, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 638 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 639 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 640 | CreateWeld(wed, rwing5, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 641 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 642 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 643 | CreateWeld(wed, rwing5, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 644 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 645 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 646 | CreateWeld(wed, rwing5, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 647 | local rwing6 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 648 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 649 | local rwing6weld = CreateWeld(rwing6, handle, rwing6, -7.75, 3, 0, math.rad(30), math.rad(0), math.rad(-75), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 650 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 651 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 652 | CreateWeld(wed, rwing6, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 653 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 654 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 655 | CreateWeld(wed, rwing6, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 656 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 657 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 658 | CreateWeld(wed, rwing6, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 659 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 660 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 661 | CreateWeld(wed, rwing6, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 662 | ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor) | |
| 663 | CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02) | |
| 664 | CreateWeld(ran, larm, ran, 0, 0.15, 0, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 665 | ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 666 | CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025) | |
| 667 | CreateWeld(ran, larm, ran, 0, 0.155, 0, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 668 | ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 669 | CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9) | |
| 670 | CreateWeld(ran, larm, ran, 0, 0.155, -0.025, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 671 | gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 672 | CreateMesh(gan, "Brick", 1.075, 0.1, 1.075) | |
| 673 | CreateWeld(gan, larm, gan, 0, 0.5, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 674 | gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 675 | CreateMesh(gan, "Brick", 1.075, 0.1, 1.075) | |
| 676 | CreateWeld(gan, larm, gan, 0, 0.75, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 677 | gan = CreateParta(m2, 0, 0, "Neon", halocolor2) | |
| 678 | CreateMesh(gan, "Brick", 1.095, 0.035, 1.095) | |
| 679 | CreateWeld(gan, larm, gan, 0, 0.5, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 680 | gan = CreateParta(m2, 0, 0, "Neon", halocolor2) | |
| 681 | CreateMesh(gan, "Brick", 1.095, 0.035, 1.095) | |
| 682 | CreateWeld(gan, larm, gan, 0, 0.75, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 683 | gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2) | |
| 684 | CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625) | |
| 685 | CreateWeld(gane, larm, gane, 0, 0.6, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 686 | star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 687 | CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5) | |
| 688 | CreateWeld(star, larm, star, 0, 0.475, 0.6, math.rad(90), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 689 | starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor) | |
| 690 | CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95) | |
| 691 | CreateWeld(starl, larm, starl, 0, 0.475, 0.6, math.rad(90), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 692 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 693 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 694 | CreateWeld(dotsec, larm, dotsec, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 695 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 696 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 697 | CreateWeld(dotseca, larm, dotseca, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 698 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 699 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 700 | CreateWeld(dotsecb, larm, dotsecb, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 701 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 702 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 703 | CreateWeld(dotsec, larm, dotsec, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 704 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 705 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 706 | CreateWeld(dotseca, larm, dotseca, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 707 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 708 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 709 | CreateWeld(dotsecb, larm, dotsecb, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 710 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 711 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 712 | CreateWeld(dotsec, larm, dotsec, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 713 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 714 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 715 | CreateWeld(dotseca, larm, dotseca, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 716 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 717 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 718 | CreateWeld(dotsecb, larm, dotsecb, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 719 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 720 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 721 | CreateWeld(dotsec, larm, dotsec, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 722 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 723 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 724 | CreateWeld(dotseca, larm, dotseca, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 725 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 726 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 727 | CreateWeld(dotsecb, larm, dotsecb, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 728 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 729 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 730 | CreateWeld(dotsec, larm, dotsec, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 731 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 732 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 733 | CreateWeld(dotseca, larm, dotseca, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 734 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 735 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 736 | CreateWeld(dotsecb, larm, dotsecb, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 737 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 738 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 739 | CreateWeld(dotsec, larm, dotsec, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 740 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 741 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 742 | CreateWeld(dotseca, larm, dotseca, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 743 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 744 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 745 | CreateWeld(dotsecb, larm, dotsecb, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 746 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 747 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 748 | CreateWeld(dotsec, larm, dotsec, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 749 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 750 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 751 | CreateWeld(dotseca, larm, dotseca, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 752 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 753 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 754 | CreateWeld(dotsecb, larm, dotsecb, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 755 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 756 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 757 | CreateWeld(dotsec, larm, dotsec, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 758 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 759 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 760 | CreateWeld(dotseca, larm, dotseca, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 761 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 762 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 763 | CreateWeld(dotsecb, larm, dotsecb, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 764 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 765 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 766 | CreateWeld(dotsec, larm, dotsec, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 767 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 768 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 769 | CreateWeld(dotseca, larm, dotseca, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 770 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 771 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 772 | CreateWeld(dotsecb, larm, dotsecb, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 773 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 774 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 775 | CreateWeld(dotsec, larm, dotsec, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 776 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 777 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 778 | CreateWeld(dotseca, larm, dotseca, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 779 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 780 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 781 | CreateWeld(dotsecb, larm, dotsecb, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 782 | ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor) | |
| 783 | CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02) | |
| 784 | CreateWeld(ran, rarm, ran, 0, 0.15, 0, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 785 | ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 786 | CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025) | |
| 787 | CreateWeld(ran, rarm, ran, 0, 0.155, 0, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 788 | ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 789 | CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9) | |
| 790 | CreateWeld(ran, rarm, ran, 0, 0.155, -0.025, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 791 | gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 792 | CreateMesh(gan, "Brick", 1.075, 0.1, 1.075) | |
| 793 | CreateWeld(gan, rarm, gan, 0, 0.5, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 794 | gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 795 | CreateMesh(gan, "Brick", 1.075, 0.1, 1.075) | |
| 796 | CreateWeld(gan, rarm, gan, 0, 0.75, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 797 | gan = CreateParta(m2, 0, 0, "Neon", halocolor2) | |
| 798 | CreateMesh(gan, "Brick", 1.095, 0.035, 1.095) | |
| 799 | CreateWeld(gan, rarm, gan, 0, 0.5, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 800 | gan = CreateParta(m2, 0, 0, "Neon", halocolor2) | |
| 801 | CreateMesh(gan, "Brick", 1.095, 0.035, 1.095) | |
| 802 | CreateWeld(gan, rarm, gan, 0, 0.75, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 803 | gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2) | |
| 804 | CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625) | |
| 805 | CreateWeld(gane, rarm, gane, 0, 0.6, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 806 | star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 807 | CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5) | |
| 808 | CreateWeld(star, rarm, star, 0, -0.475, 0.6, math.rad(90), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 809 | starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor) | |
| 810 | CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95) | |
| 811 | CreateWeld(starl, rarm, starl, 0, -0.475, 0.6, math.rad(90), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 812 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 813 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 814 | CreateWeld(dotsec, rarm, dotsec, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 815 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 816 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 817 | CreateWeld(dotseca, rarm, dotseca, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 818 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 819 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 820 | CreateWeld(dotsecb, rarm, dotsecb, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 821 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 822 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 823 | CreateWeld(dotsec, rarm, dotsec, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 824 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 825 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 826 | CreateWeld(dotseca, rarm, dotseca, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 827 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 828 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 829 | CreateWeld(dotsecb, rarm, dotsecb, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 830 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 831 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 832 | CreateWeld(dotsec, rarm, dotsec, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 833 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 834 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 835 | CreateWeld(dotseca, rarm, dotseca, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 836 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 837 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 838 | CreateWeld(dotsecb, rarm, dotsecb, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 839 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 840 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 841 | CreateWeld(dotsec, rarm, dotsec, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 842 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 843 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 844 | CreateWeld(dotseca, rarm, dotseca, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 845 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 846 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 847 | CreateWeld(dotsecb, rarm, dotsecb, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 848 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 849 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 850 | CreateWeld(dotsec, rarm, dotsec, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 851 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 852 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 853 | CreateWeld(dotseca, rarm, dotseca, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 854 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 855 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 856 | CreateWeld(dotsecb, rarm, dotsecb, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 857 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 858 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 859 | CreateWeld(dotsec, rarm, dotsec, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 860 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 861 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 862 | CreateWeld(dotseca, rarm, dotseca, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 863 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 864 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 865 | CreateWeld(dotsecb, rarm, dotsecb, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 866 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 867 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 868 | CreateWeld(dotsec, rarm, dotsec, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 869 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 870 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 871 | CreateWeld(dotseca, rarm, dotseca, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 872 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 873 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 874 | CreateWeld(dotsecb, rarm, dotsecb, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 875 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 876 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 877 | CreateWeld(dotsec, rarm, dotsec, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 878 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 879 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 880 | CreateWeld(dotseca, rarm, dotseca, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 881 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 882 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 883 | CreateWeld(dotsecb, rarm, dotsecb, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 884 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 885 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 886 | CreateWeld(dotsec, rarm, dotsec, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 887 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 888 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 889 | CreateWeld(dotseca, rarm, dotseca, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 890 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 891 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 892 | CreateWeld(dotsecb, rarm, dotsecb, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 893 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 894 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 895 | CreateWeld(dotsec, rarm, dotsec, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 896 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 897 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 898 | CreateWeld(dotseca, rarm, dotseca, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 899 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 900 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 901 | CreateWeld(dotsecb, rarm, dotsecb, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 902 | for i, v in pairs(m:GetChildren()) do | |
| 903 | if v:IsA("Part") then
| |
| 904 | v.BrickColor = BrickColor.new("Really black")
| |
| 905 | v.Material = "Glass" | |
| 906 | end | |
| 907 | end | |
| 908 | for i, v in pairs(m2:GetChildren()) do | |
| 909 | if v:IsA("Part") then
| |
| 910 | v.BrickColor = BrickColor.new("Crimson")
| |
| 911 | v.Material = "Granite" | |
| 912 | end | |
| 913 | end | |
| 914 | for i, v in pairs(m3:GetChildren()) do | |
| 915 | if v:IsA("Part") then
| |
| 916 | v.BrickColor = BrickColor.new("Really red")
| |
| 917 | v.Material = "Neon" | |
| 918 | end | |
| 919 | end | |
| 920 | for i, v in pairs(mw2:GetChildren()) do | |
| 921 | if v:IsA("Part") then
| |
| 922 | v.BrickColor = BrickColor.new("Really red")
| |
| 923 | v.Material = "Neon" | |
| 924 | end | |
| 925 | end | |
| 926 | for i, v in pairs(mw1:GetChildren()) do | |
| 927 | if v:IsA("Part") then
| |
| 928 | v.Transparency = 1 | |
| 929 | v.BrickColor = BrickColor.new("Really red")
| |
| 930 | v.Material = "Neon" | |
| 931 | end | |
| 932 | end | |
| 933 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 934 | if v:IsA("Part") then
| |
| 935 | v.Transparency = 1 | |
| 936 | v.BrickColor = BrickColor.new("White")
| |
| 937 | v.Material = "Neon" | |
| 938 | end | |
| 939 | end | |
| 940 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 941 | if v:IsA("Part") then
| |
| 942 | v.Transparency = 1 | |
| 943 | v.BrickColor = BrickColor.new("White")
| |
| 944 | v.Material = "Neon" | |
| 945 | end | |
| 946 | end | |
| 947 | ||
| 948 | FHead = New("Part",char,"FHead",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 949 | Mesh = New("SpecialMesh",FHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),})
| |
| 950 | Weld = New("Weld",FHead,"mot",{Part0 = FHead,Part1 = char.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 951 | FHead.CanCollide = false | |
| 952 | ||
| 953 | ||
| 954 | ||
| 955 | local MAINRUINCOLOR = BrickColor.new("Really red")
| |
| 956 | function RemoveOutlines(part) | |
| 957 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 958 | end | |
| 959 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 960 | local Part = Create("Part")({
| |
| 961 | Parent = Parent, | |
| 962 | Reflectance = Reflectance, | |
| 963 | Transparency = Transparency, | |
| 964 | CanCollide = false, | |
| 965 | Locked = true, | |
| 966 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 967 | Name = Name, | |
| 968 | Size = Size, | |
| 969 | Material = Material | |
| 970 | }) | |
| 971 | Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
| 972 | RemoveOutlines(Part) | |
| 973 | return Part | |
| 974 | end | |
| 975 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 976 | local Msh = Create(Mesh)({
| |
| 977 | Parent = Part, | |
| 978 | Offset = OffSet, | |
| 979 | Scale = Scale | |
| 980 | }) | |
| 981 | if Mesh == "SpecialMesh" then | |
| 982 | Msh.MeshType = MeshType | |
| 983 | Msh.MeshId = MeshId | |
| 984 | end | |
| 985 | return Msh | |
| 986 | end | |
| 987 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
| 988 | local Weld = Create("Weld")({
| |
| 989 | Parent = Parent, | |
| 990 | Part0 = Part0, | |
| 991 | Part1 = Part1, | |
| 992 | C0 = C0, | |
| 993 | C1 = C1 | |
| 994 | }) | |
| 995 | return Weld | |
| 996 | end | |
| 997 | Player = game:GetService("Players").LocalPlayer
| |
| 998 | Character = Player.Character | |
| 999 | PlayerGui = Player.PlayerGui | |
| 1000 | Backpack = Player.Backpack | |
| 1001 | Torso = Character.Torso | |
| 1002 | Head = Character.Head | |
| 1003 | Humanoid = Character.Humanoid | |
| 1004 | m = Instance.new("Model", Character)
| |
| 1005 | LeftArm = Character["Left Arm"] | |
| 1006 | LeftLeg = Character["Left Leg"] | |
| 1007 | RightArm = Character["Right Arm"] | |
| 1008 | RightLeg = Character["Right Leg"] | |
| 1009 | LS = Torso["Left Shoulder"] | |
| 1010 | LH = Torso["Left Hip"] | |
| 1011 | RS = Torso["Right Shoulder"] | |
| 1012 | RH = Torso["Right Hip"] | |
| 1013 | Face = Head.face | |
| 1014 | Neck = Torso.Neck | |
| 1015 | it = Instance.new | |
| 1016 | attacktype = 1 | |
| 1017 | vt = Vector3.new | |
| 1018 | cf = CFrame.new | |
| 1019 | euler = CFrame.fromEulerAnglesXYZ | |
| 1020 | angles = CFrame.Angles | |
| 1021 | cloaked = false | |
| 1022 | necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 1023 | necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 1024 | LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 1025 | LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 1026 | RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 1027 | RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 1028 | RootPart = Character.HumanoidRootPart | |
| 1029 | RootJoint = RootPart.RootJoint | |
| 1030 | RootCF = euler(-1.57, 0, 3.14) | |
| 1031 | attack = false | |
| 1032 | attackdebounce = false | |
| 1033 | deb = false | |
| 1034 | equipped = true | |
| 1035 | hand = false | |
| 1036 | MMouse = nil | |
| 1037 | combo = 0 | |
| 1038 | mana = 0 | |
| 1039 | trispeed = 0.2 | |
| 1040 | attackmode = "none" | |
| 1041 | local idle = 0 | |
| 1042 | local Anim = "Idle" | |
| 1043 | local Effects = {}
| |
| 1044 | local gun = false | |
| 1045 | local shoot = false | |
| 1046 | local sine = 0 | |
| 1047 | local change = 1 | |
| 1048 | player = nil | |
| 1049 | local toggleTag = true | |
| 1050 | local txt = Instance.new("BillboardGui", Head)
| |
| 1051 | txt.Adornee = nil | |
| 1052 | txt.Name = "NameDetect" | |
| 1053 | txt.Size = UDim2.new(4, 0, 1.2, 0) | |
| 1054 | txt.StudsOffset = Vector3.new(-8, 5.333333333333333, 0) | |
| 1055 | local text = Instance.new("TextLabel", txt)
| |
| 1056 | text.Size = UDim2.new(5, 0, 3.5, 0) | |
| 1057 | text.FontSize = "Size8" | |
| 1058 | text.TextScaled = true | |
| 1059 | text.TextTransparency = 0 | |
| 1060 | text.BackgroundTransparency = 1 | |
| 1061 | text.TextTransparency = 0 | |
| 1062 | text.TextStrokeTransparency = 0 | |
| 1063 | text.Font = "Fantasy" | |
| 1064 | text.TextStrokeColor3 = Color3.new(1, 0, 0) | |
| 1065 | text.TextColor3 = Color3.new(0, 0, 0) | |
| 1066 | text.Text = "Singularity" | |
| 1067 | function RecolorTextAndRename(name, col1, col2) | |
| 1068 | text.TextStrokeColor3 = col2 | |
| 1069 | text.TextColor3 = col1 | |
| 1070 | text.Text = name | |
| 1071 | end | |
| 1072 | mouse = Player:GetMouse() | |
| 1073 | RSH, LSH = nil, nil | |
| 1074 | RW, LW = Instance.new("Weld"), Instance.new("Weld")
| |
| 1075 | RW.Name = "Right Shoulder" | |
| 1076 | LW.Name = "Left Shoulder" | |
| 1077 | LH = Torso["Left Hip"] | |
| 1078 | RH = Torso["Right Hip"] | |
| 1079 | TorsoColor = Torso.BrickColor | |
| 1080 | function NoOutline(Part) | |
| 1081 | Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 1082 | end | |
| 1083 | player = Player | |
| 1084 | ch = Character | |
| 1085 | RSH = ch.Torso["Right Shoulder"] | |
| 1086 | LSH = ch.Torso["Left Shoulder"] | |
| 1087 | RSH.Parent = nil | |
| 1088 | LSH.Parent = nil | |
| 1089 | RW.Name = "Right Shoulder" | |
| 1090 | RW.Part0 = ch.Torso | |
| 1091 | RW.C0 = cf(1.5, 0.5, 0) | |
| 1092 | RW.C1 = cf(0, 0.5, 0) | |
| 1093 | RW.Part1 = ch["Right Arm"] | |
| 1094 | RW.Parent = ch.Torso | |
| 1095 | LW.Name = "Left Shoulder" | |
| 1096 | LW.Part0 = ch.Torso | |
| 1097 | LW.C0 = cf(-1.5, 0.5, 0) | |
| 1098 | LW.C1 = cf(0, 0.5, 0) | |
| 1099 | LW.Part1 = ch["Left Arm"] | |
| 1100 | LW.Parent = ch.Torso | |
| 1101 | local Stats = Instance.new("BoolValue")
| |
| 1102 | Stats.Name = "Stats" | |
| 1103 | Stats.Parent = Character | |
| 1104 | local Atk = Instance.new("NumberValue")
| |
| 1105 | Atk.Name = "Damage" | |
| 1106 | Atk.Parent = Stats | |
| 1107 | Atk.Value = 1 | |
| 1108 | local Def = Instance.new("NumberValue")
| |
| 1109 | Def.Name = "Defense" | |
| 1110 | Def.Parent = Stats | |
| 1111 | Def.Value = 1 | |
| 1112 | local Speed = Instance.new("NumberValue")
| |
| 1113 | Speed.Name = "Speed" | |
| 1114 | Speed.Parent = Stats | |
| 1115 | Speed.Value = 1 | |
| 1116 | local Mvmt = Instance.new("NumberValue")
| |
| 1117 | Mvmt.Name = "Movement" | |
| 1118 | Mvmt.Parent = Stats | |
| 1119 | Mvmt.Value = 1 | |
| 1120 | local donum = 0 | |
| 1121 | function part(formfactor, parent, reflectance, transparency, brickcolor, name, size) | |
| 1122 | local fp = it("Part")
| |
| 1123 | fp.formFactor = formfactor | |
| 1124 | fp.Parent = parent | |
| 1125 | fp.Reflectance = reflectance | |
| 1126 | fp.Transparency = transparency | |
| 1127 | fp.CanCollide = false | |
| 1128 | fp.Locked = true | |
| 1129 | fp.BrickColor = brickcolor | |
| 1130 | fp.Name = name | |
| 1131 | fp.Size = size | |
| 1132 | fp.Position = Torso.Position | |
| 1133 | NoOutline(fp) | |
| 1134 | fp.Material = "SmoothPlastic" | |
| 1135 | fp:BreakJoints() | |
| 1136 | return fp | |
| 1137 | end | |
| 1138 | function mesh(Mesh, part, meshtype, meshid, offset, scale) | |
| 1139 | local mesh = it(Mesh) | |
| 1140 | mesh.Parent = part | |
| 1141 | if Mesh == "SpecialMesh" then | |
| 1142 | mesh.MeshType = meshtype | |
| 1143 | if meshid ~= "nil" then | |
| 1144 | mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid | |
| 1145 | end | |
| 1146 | end | |
| 1147 | mesh.Offset = offset | |
| 1148 | mesh.Scale = scale | |
| 1149 | return mesh | |
| 1150 | end | |
| 1151 | function weld(parent, part0, part1, c0) | |
| 1152 | local weld = it("Weld")
| |
| 1153 | weld.Parent = parent | |
| 1154 | weld.Part0 = part0 | |
| 1155 | weld.Part1 = part1 | |
| 1156 | weld.C0 = c0 | |
| 1157 | return weld | |
| 1158 | end | |
| 1159 | local Color1 = Torso.BrickColor | |
| 1160 | local bodvel = Instance.new("BodyVelocity")
| |
| 1161 | local bg = Instance.new("BodyGyro")
| |
| 1162 | function swait(num) | |
| 1163 | if num == 0 or num == nil then | |
| 1164 | game:service("RunService").Stepped:wait(0)
| |
| 1165 | else | |
| 1166 | for i = 0, num do | |
| 1167 | game:service("RunService").Stepped:wait(0)
| |
| 1168 | end | |
| 1169 | end | |
| 1170 | end | |
| 1171 | local r = 255 | |
| 1172 | local g = 0 | |
| 1173 | local b = 0 | |
| 1174 | coroutine.resume(coroutine.create(function() | |
| 1175 | while wait() do | |
| 1176 | for i = 0, 50.8 do | |
| 1177 | swait() | |
| 1178 | g = g + 5 | |
| 1179 | end | |
| 1180 | for i = 0, 50.8 do | |
| 1181 | swait() | |
| 1182 | r = r - 5 | |
| 1183 | end | |
| 1184 | for i = 0, 50.8 do | |
| 1185 | swait() | |
| 1186 | b = b + 5 | |
| 1187 | end | |
| 1188 | for i = 0, 50.8 do | |
| 1189 | swait() | |
| 1190 | g = g - 5 | |
| 1191 | end | |
| 1192 | for i = 0, 50.8 do | |
| 1193 | swait() | |
| 1194 | r = r + 5 | |
| 1195 | end | |
| 1196 | for i = 0, 50.8 do | |
| 1197 | swait() | |
| 1198 | b = b - 5 | |
| 1199 | end | |
| 1200 | end | |
| 1201 | end)) | |
| 1202 | function so(id, par, vol, pit) | |
| 1203 | coroutine.resume(coroutine.create(function() | |
| 1204 | local sou = Instance.new("Sound", par or workspace)
| |
| 1205 | sou.Volume = vol | |
| 1206 | sou.Pitch = pit or 1 | |
| 1207 | sou.SoundId = id | |
| 1208 | swait() | |
| 1209 | sou:play() | |
| 1210 | game:GetService("Debris"):AddItem(sou, 6)
| |
| 1211 | end)) | |
| 1212 | end | |
| 1213 | function clerp(a, b, t) | |
| 1214 | local qa = {
| |
| 1215 | QuaternionFromCFrame(a) | |
| 1216 | } | |
| 1217 | local qb = {
| |
| 1218 | QuaternionFromCFrame(b) | |
| 1219 | } | |
| 1220 | local ax, ay, az = a.x, a.y, a.z | |
| 1221 | local bx, by, bz = b.x, b.y, b.z | |
| 1222 | local _t = 1 - t | |
| 1223 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 1224 | end | |
| 1225 | function QuaternionFromCFrame(cf) | |
| 1226 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 1227 | local trace = m00 + m11 + m22 | |
| 1228 | if trace > 0 then | |
| 1229 | local s = math.sqrt(1 + trace) | |
| 1230 | local recip = 0.5 / s | |
| 1231 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 1232 | else | |
| 1233 | local i = 0 | |
| 1234 | if m00 < m11 then | |
| 1235 | i = 1 | |
| 1236 | end | |
| 1237 | if m22 > (i == 0 and m00 or m11) then | |
| 1238 | i = 2 | |
| 1239 | end | |
| 1240 | if i == 0 then | |
| 1241 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 1242 | local recip = 0.5 / s | |
| 1243 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 1244 | elseif i == 1 then | |
| 1245 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 1246 | local recip = 0.5 / s | |
| 1247 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 1248 | elseif i == 2 then | |
| 1249 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 1250 | local recip = 0.5 / s | |
| 1251 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 1252 | end | |
| 1253 | end | |
| 1254 | end | |
| 1255 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 1256 | local xs, ys, zs = x + x, y + y, z + z | |
| 1257 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 1258 | local xx = x * xs | |
| 1259 | local xy = x * ys | |
| 1260 | local xz = x * zs | |
| 1261 | local yy = y * ys | |
| 1262 | local yz = y * zs | |
| 1263 | local zz = z * zs | |
| 1264 | 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)) | |
| 1265 | end | |
| 1266 | function QuaternionSlerp(a, b, t) | |
| 1267 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 1268 | local startInterp, finishInterp | |
| 1269 | if cosTheta >= 1.0E-4 then | |
| 1270 | if 1 - cosTheta > 1.0E-4 then | |
| 1271 | local theta = math.acos(cosTheta) | |
| 1272 | local invSinTheta = 1 / math.sin(theta) | |
| 1273 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
| 1274 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 1275 | else | |
| 1276 | startInterp = 1 - t | |
| 1277 | finishInterp = t | |
| 1278 | end | |
| 1279 | elseif 1 + cosTheta > 1.0E-4 then | |
| 1280 | local theta = math.acos(-cosTheta) | |
| 1281 | local invSinTheta = 1 / math.sin(theta) | |
| 1282 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
| 1283 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 1284 | else | |
| 1285 | startInterp = t - 1 | |
| 1286 | finishInterp = t | |
| 1287 | end | |
| 1288 | 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 | |
| 1289 | end | |
| 1290 | local CFrameFromTopBack = function(at, top, back) | |
| 1291 | local right = top:Cross(back) | |
| 1292 | return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
| 1293 | end | |
| 1294 | function Triangle(a, b, c) | |
| 1295 | local edg1 = (c - a):Dot((b - a).unit) | |
| 1296 | local edg2 = (a - b):Dot((c - b).unit) | |
| 1297 | local edg3 = (b - c):Dot((a - c).unit) | |
| 1298 | if edg1 <= (b - a).magnitude and edg1 >= 0 then | |
| 1299 | a, b = a, b | |
| 1300 | elseif edg2 <= (c - b).magnitude and edg2 >= 0 then | |
| 1301 | a, b, c = b, c, a | |
| 1302 | elseif edg3 <= (a - c).magnitude and edg3 >= 0 then | |
| 1303 | a, b, c = c, a, b | |
| 1304 | else | |
| 1305 | assert(false, "unreachable") | |
| 1306 | end | |
| 1307 | local len1 = (c - a):Dot((b - a).unit) | |
| 1308 | local len2 = (b - a).magnitude - len1 | |
| 1309 | local width = (a + (b - a).unit * len1 - c).magnitude | |
| 1310 | local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit) | |
| 1311 | local list = {}
| |
| 1312 | if len1 > 0.01 then | |
| 1313 | local w1 = Instance.new("WedgePart", m)
| |
| 1314 | game:GetService("Debris"):AddItem(w1, 5)
| |
| 1315 | w1.Material = "SmoothPlastic" | |
| 1316 | w1.FormFactor = "Custom" | |
| 1317 | w1.BrickColor = BrickColor.new("Really red")
| |
| 1318 | w1.Transparency = 0 | |
| 1319 | w1.Reflectance = 0 | |
| 1320 | w1.Material = "SmoothPlastic" | |
| 1321 | w1.CanCollide = false | |
| 1322 | local l1 = Instance.new("PointLight", w1)
| |
| 1323 | l1.Color = Color3.new(170, 0, 0) | |
| 1324 | NoOutline(w1) | |
| 1325 | local sz = Vector3.new(0.2, width, len1) | |
| 1326 | w1.Size = sz | |
| 1327 | local sp = Instance.new("SpecialMesh", w1)
| |
| 1328 | sp.MeshType = "Wedge" | |
| 1329 | sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size | |
| 1330 | w1:BreakJoints() | |
| 1331 | w1.Anchored = true | |
| 1332 | w1.Parent = workspace | |
| 1333 | w1.Transparency = 0.7 | |
| 1334 | table.insert(Effects, {
| |
| 1335 | w1, | |
| 1336 | "Disappear", | |
| 1337 | 0.01 | |
| 1338 | }) | |
| 1339 | w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2) | |
| 1340 | table.insert(list, w1) | |
| 1341 | end | |
| 1342 | if len2 > 0.01 then | |
| 1343 | local w2 = Instance.new("WedgePart", m)
| |
| 1344 | game:GetService("Debris"):AddItem(w2, 5)
| |
| 1345 | w2.Material = "SmoothPlastic" | |
| 1346 | w2.FormFactor = "Custom" | |
| 1347 | w2.BrickColor = BrickColor.new("Really red")
| |
| 1348 | w2.Transparency = 0 | |
| 1349 | w2.Reflectance = 0 | |
| 1350 | w2.Material = "SmoothPlastic" | |
| 1351 | w2.CanCollide = false | |
| 1352 | local l2 = Instance.new("PointLight", w2)
| |
| 1353 | l2.Color = Color3.new(170, 0, 0) | |
| 1354 | NoOutline(w2) | |
| 1355 | local sz = Vector3.new(0.2, width, len2) | |
| 1356 | w2.Size = sz | |
| 1357 | local sp = Instance.new("SpecialMesh", w2)
| |
| 1358 | sp.MeshType = "Wedge" | |
| 1359 | sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size | |
| 1360 | w2:BreakJoints() | |
| 1361 | w2.Anchored = true | |
| 1362 | w2.Parent = workspace | |
| 1363 | w2.Transparency = 0.7 | |
| 1364 | table.insert(Effects, {
| |
| 1365 | w2, | |
| 1366 | "Disappear", | |
| 1367 | 0.01 | |
| 1368 | }) | |
| 1369 | w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2) | |
| 1370 | table.insert(list, w2) | |
| 1371 | end | |
| 1372 | return unpack(list) | |
| 1373 | end | |
| 1374 | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 1375 | if hit.Parent == nil then | |
| 1376 | return | |
| 1377 | end | |
| 1378 | local h = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1379 | for _, v in pairs(hit.Parent:children()) do | |
| 1380 | if v:IsA("Humanoid") then
| |
| 1381 | h = v | |
| 1382 | end | |
| 1383 | end | |
| 1384 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
| |
| 1385 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
| |
| 1386 | return | |
| 1387 | end | |
| 1388 | local c = Create("ObjectValue")({
| |
| 1389 | Name = "creator", | |
| 1390 | Value = game:service("Players").LocalPlayer,
| |
| 1391 | Parent = h | |
| 1392 | }) | |
| 1393 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 1394 | if HitSound ~= nil and HitPitch ~= nil then | |
| 1395 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 1396 | end | |
| 1397 | local Damage = math.random(minim, maxim) | |
| 1398 | local blocked = false | |
| 1399 | local block = hit.Parent:findFirstChild("Block")
| |
| 1400 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
| 1401 | blocked = true | |
| 1402 | block.Value = block.Value - 1 | |
| 1403 | print(block.Value) | |
| 1404 | end | |
| 1405 | if blocked == false then | |
| 1406 | HitHealth = h.Health | |
| 1407 | h.Health = h.Health - Damage | |
| 1408 | if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then | |
| 1409 | print("gained kill")
| |
| 1410 | end | |
| 1411 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
| 1412 | else | |
| 1413 | h.Health = h.Health - Damage / 2 | |
| 1414 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
| 1415 | end | |
| 1416 | if Type == "Knockdown" then | |
| 1417 | local hum = hit.Parent.Humanoid | |
| 1418 | hum.PlatformStand = true | |
| 1419 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 1420 | swait(1) | |
| 1421 | HHumanoid.PlatformStand = false | |
| 1422 | end), hum) | |
| 1423 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
| 1424 | local bodvol = Create("BodyVelocity")({
| |
| 1425 | velocity = angle * knockback, | |
| 1426 | P = 5000, | |
| 1427 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1428 | Parent = hit | |
| 1429 | }) | |
| 1430 | local rl = Create("BodyAngularVelocity")({
| |
| 1431 | P = 3000, | |
| 1432 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 1433 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 1434 | Parent = hit | |
| 1435 | }) | |
| 1436 | game:GetService("Debris"):AddItem(bodvol, 0.5)
| |
| 1437 | game:GetService("Debris"):AddItem(rl, 0.5)
| |
| 1438 | elseif Type == "Normal" then | |
| 1439 | local vp = Create("BodyVelocity")({
| |
| 1440 | P = 500, | |
| 1441 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 1442 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
| 1443 | }) | |
| 1444 | if knockback > 0 then | |
| 1445 | vp.Parent = hit.Parent.Head | |
| 1446 | end | |
| 1447 | game:GetService("Debris"):AddItem(vp, 0.5)
| |
| 1448 | elseif Type == "Up" then | |
| 1449 | local bodyVelocity = Create("BodyVelocity")({
| |
| 1450 | velocity = Vector3.new(0, 20, 0), | |
| 1451 | P = 5000, | |
| 1452 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1453 | Parent = hit | |
| 1454 | }) | |
| 1455 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
| |
| 1456 | local bodyVelocity = Create("BodyVelocity")({
| |
| 1457 | velocity = Vector3.new(0, 20, 0), | |
| 1458 | P = 5000, | |
| 1459 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1460 | Parent = hit | |
| 1461 | }) | |
| 1462 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 1463 | elseif Type == "Leech" then | |
| 1464 | local hum = hit.Parent.Humanoid | |
| 1465 | if hum ~= nil then | |
| 1466 | for i = 0, 2 do | |
| 1467 | Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
| |
| 1468 | end | |
| 1469 | Humanoid.Health = Humanoid.Health + 10 | |
| 1470 | end | |
| 1471 | elseif Type == "UpKnock" then | |
| 1472 | local hum = hit.Parent.Humanoid | |
| 1473 | hum.PlatformStand = true | |
| 1474 | if hum ~= nil then | |
| 1475 | hitr = true | |
| 1476 | end | |
| 1477 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 1478 | swait(5) | |
| 1479 | HHumanoid.PlatformStand = false | |
| 1480 | hitr = false | |
| 1481 | end), hum) | |
| 1482 | local bodyVelocity = Create("BodyVelocity")({
| |
| 1483 | velocity = Vector3.new(0, 20, 0), | |
| 1484 | P = 5000, | |
| 1485 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1486 | Parent = hit | |
| 1487 | }) | |
| 1488 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
| |
| 1489 | local bodyVelocity = Create("BodyVelocity")({
| |
| 1490 | velocity = Vector3.new(0, 20, 0), | |
| 1491 | P = 5000, | |
| 1492 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1493 | Parent = hit | |
| 1494 | }) | |
| 1495 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 1496 | elseif Type == "Snare" then | |
| 1497 | local bp = Create("BodyPosition")({
| |
| 1498 | P = 2000, | |
| 1499 | D = 100, | |
| 1500 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1501 | position = hit.Parent.Torso.Position, | |
| 1502 | Parent = hit.Parent.Torso | |
| 1503 | }) | |
| 1504 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 1505 | elseif Type == "Slashnare" then | |
| 1506 | Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 60, 60, 60, 12, 12, 12, 0.07)
| |
| 1507 | for i = 1, math.random(4, 5) do | |
| 1508 | Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
| |
| 1509 | end | |
| 1510 | local bp = Create("BodyPosition")({
| |
| 1511 | P = 2000, | |
| 1512 | D = 100, | |
| 1513 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1514 | position = hit.Parent.Torso.Position, | |
| 1515 | Parent = hit.Parent.Torso | |
| 1516 | }) | |
| 1517 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 1518 | elseif Type == "Spike" then | |
| 1519 | CreateBigIceSword(hit.Parent.Torso.CFrame) | |
| 1520 | local bp = Create("BodyPosition")({
| |
| 1521 | P = 2000, | |
| 1522 | D = 100, | |
| 1523 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1524 | position = hit.Parent.Torso.Position, | |
| 1525 | Parent = hit.Parent.Torso | |
| 1526 | }) | |
| 1527 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 1528 | elseif Type == "Freeze" then | |
| 1529 | local BodPos = Create("BodyPosition")({
| |
| 1530 | P = 50000, | |
| 1531 | D = 1000, | |
| 1532 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1533 | position = hit.Parent.Torso.Position, | |
| 1534 | Parent = hit.Parent.Torso | |
| 1535 | }) | |
| 1536 | local BodGy = Create("BodyGyro")({
| |
| 1537 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
| 1538 | P = 20000, | |
| 1539 | Parent = hit.Parent.Torso, | |
| 1540 | cframe = hit.Parent.Torso.CFrame | |
| 1541 | }) | |
| 1542 | hit.Parent.Torso.Anchored = true | |
| 1543 | coroutine.resume(coroutine.create(function(Part) | |
| 1544 | swait(1.5) | |
| 1545 | Part.Anchored = false | |
| 1546 | end), hit.Parent.Torso) | |
| 1547 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 1548 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 1549 | end | |
| 1550 | local debounce = Create("BoolValue")({
| |
| 1551 | Name = "DebounceHit", | |
| 1552 | Parent = hit.Parent, | |
| 1553 | Value = true | |
| 1554 | }) | |
| 1555 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 1556 | c = Instance.new("ObjectValue")
| |
| 1557 | c.Name = "creator" | |
| 1558 | c.Value = Player | |
| 1559 | c.Parent = h | |
| 1560 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 1561 | end | |
| 1562 | end | |
| 1563 | function ShowDamage(Pos, Text, Time, Color) | |
| 1564 | local Rate = 0.03333333333333333 | |
| 1565 | local Pos = Pos or Vector3.new(0, 0, 0) | |
| 1566 | local Text = Text or "" | |
| 1567 | local Time = Time or 2 | |
| 1568 | local Color = Color or Color3.new(1, 0, 1) | |
| 1569 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 1570 | EffectPart.Anchored = true | |
| 1571 | local BillboardGui = Create("BillboardGui")({
| |
| 1572 | Size = UDim2.new(3, 0, 3, 0), | |
| 1573 | Adornee = EffectPart, | |
| 1574 | Parent = EffectPart | |
| 1575 | }) | |
| 1576 | local TextLabel = Create("TextLabel")({
| |
| 1577 | BackgroundTransparency = 1, | |
| 1578 | Size = UDim2.new(1, 0, 1, 0), | |
| 1579 | Text = Text, | |
| 1580 | TextColor3 = Color, | |
| 1581 | TextScaled = true, | |
| 1582 | Font = Enum.Font.ArialBold, | |
| 1583 | Parent = BillboardGui | |
| 1584 | }) | |
| 1585 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
| 1586 | EffectPart.Parent = game:GetService("Workspace")
| |
| 1587 | delay(0, function() | |
| 1588 | local Frames = Time / Rate | |
| 1589 | for Frame = 1, Frames do | |
| 1590 | wait(Rate) | |
| 1591 | local Percent = Frame / Frames | |
| 1592 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 1593 | TextLabel.TextTransparency = Percent | |
| 1594 | end | |
| 1595 | if EffectPart and EffectPart.Parent then | |
| 1596 | EffectPart:Destroy() | |
| 1597 | end | |
| 1598 | end) | |
| 1599 | end | |
| 1600 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
| 1601 | for _, c in pairs(workspace:children()) do | |
| 1602 | local hum = c:findFirstChildOfClass("Humanoid")
| |
| 1603 | if hum ~= nil then | |
| 1604 | local head = c:findFirstChild("Head")
| |
| 1605 | if head ~= nil then | |
| 1606 | local targ = head.Position - Part.Position | |
| 1607 | local mag = targ.magnitude | |
| 1608 | if magni >= mag and c.Name ~= Player.Name then | |
| 1609 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
| 1610 | end | |
| 1611 | end | |
| 1612 | end | |
| 1613 | end | |
| 1614 | end | |
| 1615 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
| 1616 | if SinglePlayer then | |
| 1617 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
| 1618 | end | |
| 1619 | local List = {}
| |
| 1620 | for i, v in pairs(workspace:GetChildren()) do | |
| 1621 | if v:IsA("Model") then
| |
| 1622 | if v:findFirstChild("Torso") then
| |
| 1623 | if v ~= Character then | |
| 1624 | if (v.Torso.Position - Position).magnitude <= Distance then | |
| 1625 | table.insert(List, v) | |
| 1626 | end | |
| 1627 | end | |
| 1628 | end | |
| 1629 | end | |
| 1630 | end | |
| 1631 | return List | |
| 1632 | end | |
| 1633 | function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type) | |
| 1634 | for _, c in pairs(workspace:children()) do | |
| 1635 | local hum = c:findFirstChild("Humanoid")
| |
| 1636 | if hum ~= nil then | |
| 1637 | local head = c:findFirstChild("Torso")
| |
| 1638 | if head ~= nil then | |
| 1639 | local targ = head.Position - Part.Position | |
| 1640 | local mag = targ.magnitude | |
| 1641 | if magni >= mag and c.Name ~= Player.Name then | |
| 1642 | MagicBlock(BrickColor.new("Pastel light blue"), head.CFrame, 5, 5, 5, 1, 1, 1, 0.05)
| |
| 1643 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
| 1644 | end | |
| 1645 | end | |
| 1646 | end | |
| 1647 | end | |
| 1648 | end | |
| 1649 | function rayCast(Pos, Dir, Max, Ignore) | |
| 1650 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 1651 | end | |
| 1652 | function SkullEffect(brickcolor, cframe, x1, y1, z1, delay) | |
| 1653 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 1654 | prt.Anchored = true | |
| 1655 | prt.CFrame = cframe | |
| 1656 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1657 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 1658 | CF = prt.CFrame | |
| 1659 | coroutine.resume(coroutine.create(function(Part, Mesh, TehCF) | |
| 1660 | for i = 0, 1, 0.2 do | |
| 1661 | wait() | |
| 1662 | Part.CFrame = CF * cf(0, 0, -0.4) | |
| 1663 | end | |
| 1664 | for i = 0, 1, delay do | |
| 1665 | wait() | |
| 1666 | Mesh.Scale = Mesh.Scale | |
| 1667 | end | |
| 1668 | for i = 0, 1, 0.1 do | |
| 1669 | wait() | |
| 1670 | Part.Transparency = i | |
| 1671 | end | |
| 1672 | Part.Parent = nil | |
| 1673 | end), prt, msh, CF) | |
| 1674 | end | |
| 1675 | function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1676 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 1677 | prt.Anchored = true | |
| 1678 | prt.Material = "Neon" | |
| 1679 | prt.CFrame = cframe | |
| 1680 | prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1681 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1682 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 1683 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1684 | for i = 0, 1, delay do | |
| 1685 | swait() | |
| 1686 | Part.CFrame = Part.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1687 | Part.Transparency = i | |
| 1688 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1689 | end | |
| 1690 | Part.Parent = nil | |
| 1691 | end), prt, msh) | |
| 1692 | end | |
| 1693 | function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype) | |
| 1694 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 1695 | prt.Anchored = true | |
| 1696 | prt.Material = "Neon" | |
| 1697 | prt.CFrame = cframe | |
| 1698 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1699 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 1700 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1701 | local rtype = rottype | |
| 1702 | for i = 0, 1, delay do | |
| 1703 | swait() | |
| 1704 | if rtype == 1 then | |
| 1705 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
| 1706 | elseif rtype == 2 then | |
| 1707 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
| 1708 | end | |
| 1709 | Part.Transparency = i | |
| 1710 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1711 | end | |
| 1712 | Part.Parent = nil | |
| 1713 | end), prt, msh) | |
| 1714 | end | |
| 1715 | function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1716 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 1717 | prt.Anchored = true | |
| 1718 | prt.CFrame = cframe | |
| 1719 | prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1720 | msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1721 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 1722 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1723 | for i = 0, 1, delay do | |
| 1724 | wait() | |
| 1725 | Part.Transparency = i | |
| 1726 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1727 | end | |
| 1728 | Part.Parent = nil | |
| 1729 | end), prt, msh) | |
| 1730 | end | |
| 1731 | function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype) | |
| 1732 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 1733 | prt.Anchored = true | |
| 1734 | prt.Material = "Neon" | |
| 1735 | prt.CFrame = cframe | |
| 1736 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1737 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 1738 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1739 | local rtype = rottype | |
| 1740 | for i = 0, 1, delay do | |
| 1741 | swait() | |
| 1742 | if rtype == 1 then | |
| 1743 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
| 1744 | elseif rtype == 2 then | |
| 1745 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
| 1746 | end | |
| 1747 | Part.Transparency = i | |
| 1748 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1749 | end | |
| 1750 | Part.Parent = nil | |
| 1751 | end), prt, msh) | |
| 1752 | end | |
| 1753 | function MagicShock(brickcolor, cframe, x1, y1, x3, y3, delay, rottype) | |
| 1754 | local prt = part(3, char, 1, 1, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 1755 | prt.Anchored = true | |
| 1756 | prt.Material = "Neon" | |
| 1757 | prt.CFrame = cframe | |
| 1758 | local dec = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt) | |
| 1759 | local dec2 = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt) | |
| 1760 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
| |
| 1761 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 1762 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1763 | local rtype = rottype | |
| 1764 | for i = 0, 1, delay do | |
| 1765 | swait() | |
| 1766 | if rtype == 1 then | |
| 1767 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
| 1768 | elseif rtype == 2 then | |
| 1769 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
| 1770 | end | |
| 1771 | dec.Transparency = i | |
| 1772 | dec2.Transparency = i | |
| 1773 | Mesh.Scale = Mesh.Scale + vt(x3, y3, 0) | |
| 1774 | end | |
| 1775 | Part.Parent = nil | |
| 1776 | end), prt, msh) | |
| 1777 | end | |
| 1778 | function MagicShockAlt(brickcolor, cframe, x1, y1, x3, y3, delay, rottype) | |
| 1779 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 1780 | prt.Anchored = true | |
| 1781 | prt.Material = "Neon" | |
| 1782 | prt.CFrame = cframe | |
| 1783 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
| |
| 1784 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 1785 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1786 | local rtype = rottype | |
| 1787 | for i = 0, 1, delay do | |
| 1788 | swait() | |
| 1789 | if rtype == 1 then | |
| 1790 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
| 1791 | elseif rtype == 2 then | |
| 1792 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
| 1793 | end | |
| 1794 | prt.Transparency = i | |
| 1795 | Mesh.Scale = Mesh.Scale + vt(x3, y3, 0) | |
| 1796 | end | |
| 1797 | Part.Parent = nil | |
| 1798 | end), prt, msh) | |
| 1799 | end | |
| 1800 | function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2) | |
| 1801 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 1802 | prt.Anchored = true | |
| 1803 | prt.CFrame = cframe | |
| 1804 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1805 | coroutine.resume(coroutine.create(function() | |
| 1806 | for i = 0, 1, 0.05 do | |
| 1807 | wait() | |
| 1808 | prt.Transparency = i | |
| 1809 | msh.Scale = msh.Scale + vt(x2, y2, z2) | |
| 1810 | end | |
| 1811 | prt.Parent = nil | |
| 1812 | end)) | |
| 1813 | end | |
| 1814 | function MagicShockAltCircle(brickcolor, cframe, x1, z1, x3, z3, delay, rottype) | |
| 1815 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 1816 | prt.Anchored = true | |
| 1817 | prt.Material = "Neon" | |
| 1818 | prt.CFrame = cframe | |
| 1819 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, 1, z1))
| |
| 1820 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 1821 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1822 | local rtype = rottype | |
| 1823 | for i = 0, 1, delay do | |
| 1824 | swait() | |
| 1825 | if rtype == 1 then | |
| 1826 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0.1, 0) | |
| 1827 | elseif rtype == 2 then | |
| 1828 | prt.CFrame = prt.CFrame * CFrame.Angles(0, -0.1, 0) | |
| 1829 | end | |
| 1830 | prt.Transparency = i | |
| 1831 | Mesh.Scale = Mesh.Scale + vt(x3, 0, z3) | |
| 1832 | end | |
| 1833 | Part.Parent = nil | |
| 1834 | end), prt, msh) | |
| 1835 | end | |
| 1836 | function MagicShockTrailAlt(brickcolor, cframe, x1, y1, z1, x3, y3, delay, rottype) | |
| 1837 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 1838 | prt.Anchored = true | |
| 1839 | prt.Material = "Neon" | |
| 1840 | prt.CFrame = cframe | |
| 1841 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1842 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 1843 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1844 | local rtype = rottype | |
| 1845 | for i = 0, 1, delay do | |
| 1846 | swait() | |
| 1847 | if rtype == 1 then | |
| 1848 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
| 1849 | elseif rtype == 2 then | |
| 1850 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
| 1851 | end | |
| 1852 | prt.Transparency = i | |
| 1853 | Mesh.Scale = Mesh.Scale + vt(x3, y3, 0) | |
| 1854 | end | |
| 1855 | Part.Parent = nil | |
| 1856 | end), prt, msh) | |
| 1857 | end | |
| 1858 | function MagicShockTrailAlt2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype) | |
| 1859 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 1860 | prt.Anchored = true | |
| 1861 | prt.Material = "Neon" | |
| 1862 | prt.CFrame = cframe | |
| 1863 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1864 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 1865 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1866 | local rtype = rottype | |
| 1867 | for i = 0, 1, delay do | |
| 1868 | swait() | |
| 1869 | if rtype == 1 then | |
| 1870 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
| 1871 | elseif rtype == 2 then | |
| 1872 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
| 1873 | end | |
| 1874 | prt.Transparency = i | |
| 1875 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1876 | end | |
| 1877 | Part.Parent = nil | |
| 1878 | end), prt, msh) | |
| 1879 | end | |
| 1880 | function MagicBlock2(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay) | |
| 1881 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 1882 | prt.Anchored = false | |
| 1883 | prt.CFrame = cframe | |
| 1884 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1885 | local wld = weld(prt, prt, Parent, cframe) | |
| 1886 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 1887 | coroutine.resume(coroutine.create(function(Part, Mesh, Weld) | |
| 1888 | for i = 0, 1, delay do | |
| 1889 | wait() | |
| 1890 | Weld.C0 = euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cframe | |
| 1891 | Part.Transparency = i | |
| 1892 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1893 | end | |
| 1894 | Part.Parent = nil | |
| 1895 | end), prt, msh, wld) | |
| 1896 | end | |
| 1897 | function MagicBlock3(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay) | |
| 1898 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 1899 | prt.Anchored = false | |
| 1900 | prt.CFrame = cframe | |
| 1901 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1902 | local wld = weld(prt, prt, Parent, euler(0, 0, 0) * cf(0, 0, 0)) | |
| 1903 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 1904 | coroutine.resume(coroutine.create(function(Part, Mesh, Weld) | |
| 1905 | for i = 0, 1, delay do | |
| 1906 | wait() | |
| 1907 | Weld.C0 = euler(i * 20, 0, 0) | |
| 1908 | Part.Transparency = i | |
| 1909 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1910 | end | |
| 1911 | Part.Parent = nil | |
| 1912 | end), prt, msh, wld) | |
| 1913 | end | |
| 1914 | function MagicCircle2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1915 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 1916 | prt.Anchored = true | |
| 1917 | prt.CFrame = cframe | |
| 1918 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1919 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 1920 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1921 | for i = 0, 1, delay do | |
| 1922 | wait() | |
| 1923 | Part.CFrame = Part.CFrame | |
| 1924 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1925 | local prt2 = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 1926 | prt2.Anchored = true | |
| 1927 | prt2.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1928 | local msh2 = mesh("SpecialMesh", prt2, "Sphere", "", vt(0, 0, 0), vt(0.5, 0.5, 0.5))
| |
| 1929 | game:GetService("Debris"):AddItem(prt2, 2)
| |
| 1930 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1931 | for i = 0, 1, 0.1 do | |
| 1932 | wait() | |
| 1933 | Part.CFrame = Part.CFrame * cf(0, 0.5, 0) | |
| 1934 | end | |
| 1935 | Part.Parent = nil | |
| 1936 | end), prt2, msh2) | |
| 1937 | end | |
| 1938 | for i = 0, 1, delay * 2 do | |
| 1939 | wait() | |
| 1940 | Part.CFrame = Part.CFrame | |
| 1941 | Mesh.Scale = vt(x1 + x3 - (x1 + x3) * i, y1 + y3 - (y1 + y3) * i, z1 + z3 - (z1 + z3) * i) | |
| 1942 | end | |
| 1943 | Part.Parent = nil | |
| 1944 | end), prt, msh) | |
| 1945 | end | |
| 1946 | function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1947 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 1948 | prt.Anchored = true | |
| 1949 | prt.CFrame = cframe | |
| 1950 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1951 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 1952 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1953 | for i = 0, 1, delay do | |
| 1954 | wait() | |
| 1955 | Part.CFrame = Part.CFrame | |
| 1956 | Part.Transparency = i | |
| 1957 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1958 | end | |
| 1959 | Part.Parent = nil | |
| 1960 | end), prt, msh) | |
| 1961 | end | |
| 1962 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
| 1963 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 1964 | prt.Anchored = true | |
| 1965 | prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1966 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1967 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 1968 | coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb) | |
| 1969 | CF = Part.CFrame | |
| 1970 | Numbb = 0 | |
| 1971 | randnumb = math.random() / 10 | |
| 1972 | rand1 = math.random() / 10 | |
| 1973 | for i = 0, 1, rand1 do | |
| 1974 | wait() | |
| 1975 | CF = CF * cf(0, math.random() / 2, 0) | |
| 1976 | Part.CFrame = CF * euler(Numbb, 0, 0) | |
| 1977 | Part.Transparency = i | |
| 1978 | Numbb = Numbb + randnumb | |
| 1979 | end | |
| 1980 | Part.Parent = nil | |
| 1981 | end), prt, CF, Numbb, randnumb) | |
| 1982 | end | |
| 1983 | function MagicWaveThing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1984 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 1985 | prt.Anchored = true | |
| 1986 | prt.CFrame = cframe | |
| 1987 | msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1051557", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1988 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 1989 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1990 | for i = 0, 1, delay do | |
| 1991 | wait() | |
| 1992 | Part.CFrame = Part.CFrame * euler(0, 0.7, 0) | |
| 1993 | Part.Transparency = i | |
| 1994 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1995 | end | |
| 1996 | Part.Parent = nil | |
| 1997 | end), prt, msh) | |
| 1998 | end | |
| 1999 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 2000 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 2001 | prt.Anchored = true | |
| 2002 | prt.CFrame = cframe | |
| 2003 | msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 2004 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 2005 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 2006 | for i = 0, 1, delay do | |
| 2007 | wait() | |
| 2008 | Part.CFrame = Part.CFrame * cf(0, y3 / 2, 0) | |
| 2009 | Part.Transparency = i | |
| 2010 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 2011 | end | |
| 2012 | Part.Parent = nil | |
| 2013 | end), prt, msh) | |
| 2014 | end | |
| 2015 | function StravEffect(brickcolor, cframe, x, y, z, x1, y1, z1, delay) | |
| 2016 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 2017 | prt.Anchored = true | |
| 2018 | prt.CFrame = cframe * cf(x, y, z) | |
| 2019 | msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://168892363", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 2020 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 2021 | coroutine.resume(coroutine.create(function(Part, Mesh, ex, why, zee) | |
| 2022 | local num = math.random() | |
| 2023 | local num2 = math.random(-3, 2) + math.random() | |
| 2024 | local numm = 0 | |
| 2025 | for i = 0, 1, delay * 2 do | |
| 2026 | swait() | |
| 2027 | Part.CFrame = cframe * euler(0, numm * num * 10, 0) * cf(ex, why, zee) * cf(-i * 10, num2, 0) | |
| 2028 | Part.Transparency = i | |
| 2029 | numm = numm + 0.01 | |
| 2030 | end | |
| 2031 | Part.Parent = nil | |
| 2032 | Mesh.Parent = nil | |
| 2033 | end), prt, msh, x, y, z) | |
| 2034 | end | |
| 2035 | function dmgstart(dmg, what) | |
| 2036 | hitcon = what.Touched:connect(function(hit) | |
| 2037 | local hum = hit.Parent:FindFirstChild("Humanoid")
| |
| 2038 | if hum and not hum:IsDescendantOf(Character) then | |
| 2039 | hum:TakeDamage(dmg) | |
| 2040 | end | |
| 2041 | end) | |
| 2042 | end | |
| 2043 | function dmgstop() | |
| 2044 | hitcon:disconnect() | |
| 2045 | end | |
| 2046 | function Cloak() | |
| 2047 | Face.Parent = nil | |
| 2048 | cloaked = true | |
| 2049 | for _, v in pairs(Torso.Parent:children()) do | |
| 2050 | if v.className == "Part" and v.Name ~= "HumanoidRootPart" then | |
| 2051 | coroutine.resume(coroutine.create(function() | |
| 2052 | for i = 0, 1, 0.2 do | |
| 2053 | wait() | |
| 2054 | v.Transparency = i | |
| 2055 | end | |
| 2056 | v.Transparency = 1 | |
| 2057 | end)) | |
| 2058 | end | |
| 2059 | if v.className == "Hat" then | |
| 2060 | hatp = v.Handle | |
| 2061 | coroutine.resume(coroutine.create(function(derp) | |
| 2062 | for i = 0, 1, 0.2 do | |
| 2063 | wait() | |
| 2064 | derp.Transparency = i | |
| 2065 | end | |
| 2066 | derp.Transparency = 1 | |
| 2067 | end), hatp) | |
| 2068 | end | |
| 2069 | end | |
| 2070 | for _, v in pairs(m:children()) do | |
| 2071 | if v.className == "Part" then | |
| 2072 | coroutine.resume(coroutine.create(function() | |
| 2073 | for i = 0, 1, 0.2 do | |
| 2074 | wait() | |
| 2075 | v.Transparency = i | |
| 2076 | end | |
| 2077 | v.Transparency = 1 | |
| 2078 | end)) | |
| 2079 | end | |
| 2080 | end | |
| 2081 | end | |
| 2082 | function UnCloak() | |
| 2083 | so("http://roblox.com/asset/?id=2767090", Torso, 1, 1.1)
| |
| 2084 | Face.Parent = Head | |
| 2085 | cloaked = false | |
| 2086 | for _, v in pairs(Torso.Parent:children()) do | |
| 2087 | if v.className == "Part" and v.Name ~= "HumanoidRootPart" then | |
| 2088 | coroutine.resume(coroutine.create(function() | |
| 2089 | for i = 0, 1, 0.1 do | |
| 2090 | wait() | |
| 2091 | v.Transparency = v.Transparency - 0.1 | |
| 2092 | end | |
| 2093 | v.Transparency = 0 | |
| 2094 | end)) | |
| 2095 | end | |
| 2096 | if v.className == "Hat" then | |
| 2097 | hatp = v.Handle | |
| 2098 | coroutine.resume(coroutine.create(function(derp) | |
| 2099 | for i = 0, 1, 0.1 do | |
| 2100 | wait() | |
| 2101 | derp.Transparency = derp.Transparency - 0.1 | |
| 2102 | end | |
| 2103 | derp.Transparency = 0 | |
| 2104 | end), hatp) | |
| 2105 | end | |
| 2106 | end | |
| 2107 | for _, v in pairs(m:children()) do | |
| 2108 | if v.className == "Part" and v.Name ~= "hitbox" and v.Name ~= "tip" then | |
| 2109 | coroutine.resume(coroutine.create(function() | |
| 2110 | for i = 0, 1, 0.1 do | |
| 2111 | wait() | |
| 2112 | v.Transparency = v.Transparency - 0.1 | |
| 2113 | end | |
| 2114 | v.Transparency = 0 | |
| 2115 | end)) | |
| 2116 | v.Transparency = 0 | |
| 2117 | end | |
| 2118 | end | |
| 2119 | end | |
| 2120 | local origcolor = BrickColor.new("Pastel light blue")
| |
| 2121 | function Explode(rad, par, pitch, vol, mindam, maxdam) | |
| 2122 | local expart = Instance.new("Part", char)
| |
| 2123 | local expart2 = Instance.new("Part", char)
| |
| 2124 | local rin = Instance.new("Part", char)
| |
| 2125 | local rin2 = Instance.new("Part", char)
| |
| 2126 | local partMesh = Instance.new("SpecialMesh", expart)
| |
| 2127 | partMesh.MeshType = "Sphere" | |
| 2128 | local partMesh2 = Instance.new("SpecialMesh", expart2)
| |
| 2129 | partMesh2.MeshType = "Sphere" | |
| 2130 | local partMesh3 = Instance.new("SpecialMesh", rin)
| |
| 2131 | partMesh3.MeshType = "Brick" | |
| 2132 | local partMesh4 = Instance.new("SpecialMesh", rin2)
| |
| 2133 | partMesh4.MeshType = "Brick" | |
| 2134 | CFuncs.Sound.Create("rbxassetid://165970126", expart, vol, pitch)
| |
| 2135 | partMesh.Scale = vt(rad, rad, rad) | |
| 2136 | expart.Size = vt(1, 1, 1) | |
| 2137 | expart.Transparency = 0 | |
| 2138 | expart.Anchored = true | |
| 2139 | expart.Material = "Neon" | |
| 2140 | expart.BrickColor = bc("White")
| |
| 2141 | expart.CFrame = par.CFrame | |
| 2142 | partMesh2.Scale = vt(rad, rad, rad) | |
| 2143 | expart2.Size = vt(1.15, 1.15, 1.15) | |
| 2144 | expart2.Transparency = 0.5 | |
| 2145 | expart2.Anchored = true | |
| 2146 | expart2.Material = "Neon" | |
| 2147 | expart2.BrickColor = par.BrickColor | |
| 2148 | expart2.CFrame = par.CFrame | |
| 2149 | rin.Size = vt(1.15, 1.15, 1.15) | |
| 2150 | rin.Transparency = 1 | |
| 2151 | rin.Anchored = true | |
| 2152 | rin.Material = "Neon" | |
| 2153 | rin.BrickColor = par.BrickColor | |
| 2154 | rin.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))) | |
| 2155 | rin2.Size = vt(1.15, 1.15, 1.15) | |
| 2156 | rin2.Transparency = 1 | |
| 2157 | rin2.Anchored = true | |
| 2158 | rin2.Material = "Neon" | |
| 2159 | rin2.BrickColor = par.BrickColor | |
| 2160 | rin2.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))) | |
| 2161 | partMesh3.Scale = vt(0, 1, 0) | |
| 2162 | partMesh4.Scale = vt(0, 1, 0) | |
| 2163 | local dec2 = Instance.new("Decal", rin)
| |
| 2164 | dec2.Face = "Top" | |
| 2165 | dec2.Texture = "http://www.roblox.com/asset/?id=874580939" | |
| 2166 | dec2.Parent = rin | |
| 2167 | local dec2b = dec2:Clone() | |
| 2168 | dec2b.Face = "Bottom" | |
| 2169 | dec2b.Parent = rin | |
| 2170 | local dec2a = Instance.new("Decal", rin2)
| |
| 2171 | dec2a.Face = "Top" | |
| 2172 | dec2a.Texture = "http://www.roblox.com/asset/?id=874580939" | |
| 2173 | dec2a.Parent = rin2 | |
| 2174 | local dec2ab = dec2a:Clone() | |
| 2175 | dec2ab.Face = "Bottom" | |
| 2176 | dec2ab.Parent = rin2 | |
| 2177 | expart.CanCollide = false | |
| 2178 | expart2.CanCollide = false | |
| 2179 | rin.CanCollide = false | |
| 2180 | rin2.CanCollide = false | |
| 2181 | MagniDamage(par, rad * 5, mindam, maxdam, 0, "Normal") | |
| 2182 | local value = 1 * rad / 6.5 | |
| 2183 | for i = 0, 199 do | |
| 2184 | partMesh.Scale = partMesh.Scale + vt(value, value, value) | |
| 2185 | expart.CFrame = expart.CFrame | |
| 2186 | partMesh2.Scale = partMesh2.Scale + vt(value, value, value) | |
| 2187 | expart2.CFrame = expart.CFrame | |
| 2188 | value = value - 0.035 * rad / 30 | |
| 2189 | if value < 7.5 then | |
| 2190 | partMesh3.Scale = partMesh3.Scale + vt(rad / 5, 0, rad / 5) | |
| 2191 | rin.CFrame = rin.CFrame * CFrame.Angles(0, math.rad(1), 0) | |
| 2192 | partMesh4.Scale = partMesh4.Scale + vt(rad / 7.5, 0, rad / 7.5) | |
| 2193 | rin2.CFrame = rin2.CFrame * CFrame.Angles(0, math.rad(-1), 0) | |
| 2194 | end | |
| 2195 | if value < 0 then | |
| 2196 | dec2.Transparency = dec2.Transparency + 0.025 | |
| 2197 | dec2a.Transparency = dec2a.Transparency + 0.025 | |
| 2198 | dec2b.Transparency = dec2b.Transparency + 0.025 | |
| 2199 | dec2ab.Transparency = dec2ab.Transparency + 0.025 | |
| 2200 | expart.Transparency = expart.Transparency + 0.025 | |
| 2201 | expart2.Transparency = expart2.Transparency + 0.025 | |
| 2202 | rin.Transparency = rin.Transparency + 0.025 | |
| 2203 | rin2.Transparency = rin2.Transparency + 0.025 | |
| 2204 | end | |
| 2205 | swait() | |
| 2206 | end | |
| 2207 | game:GetService("Debris"):AddItem(expart, 1)
| |
| 2208 | game:GetService("Debris"):AddItem(expart2, 1)
| |
| 2209 | game:GetService("Debris"):AddItem(rin, 1)
| |
| 2210 | game:GetService("Debris"):AddItem(rin2, 1)
| |
| 2211 | end | |
| 2212 | function ExplodeShort(rad, par, pitch, vol, mindam, maxdam) | |
| 2213 | local expart = Instance.new("Part", char)
| |
| 2214 | local expart2 = Instance.new("Part", char)
| |
| 2215 | local partMesh = Instance.new("SpecialMesh", expart)
| |
| 2216 | partMesh.MeshType = "Sphere" | |
| 2217 | local partMesh2 = Instance.new("SpecialMesh", expart2)
| |
| 2218 | partMesh2.MeshType = "Sphere" | |
| 2219 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=142070127", expart, vol, pitch)
| |
| 2220 | partMesh.Scale = vt(rad, rad, rad) | |
| 2221 | expart.Size = vt(1, 1, 1) | |
| 2222 | expart.Transparency = 0 | |
| 2223 | expart.Anchored = true | |
| 2224 | expart.Material = "Neon" | |
| 2225 | expart.BrickColor = bc("White")
| |
| 2226 | expart.CFrame = par.CFrame | |
| 2227 | partMesh2.Scale = vt(rad, rad, rad) | |
| 2228 | expart2.Size = vt(1.15, 1.15, 1.15) | |
| 2229 | expart2.Transparency = 0.5 | |
| 2230 | expart2.Anchored = true | |
| 2231 | expart2.Material = "Neon" | |
| 2232 | expart2.BrickColor = par.BrickColor | |
| 2233 | expart2.CFrame = par.CFrame | |
| 2234 | expart.CanCollide = false | |
| 2235 | expart2.CanCollide = false | |
| 2236 | MagniDamage(par, rad * 2.5, mindam, maxdam, 0, "Normal") | |
| 2237 | local value = 1 * rad / 6.5 | |
| 2238 | for i = 0, 75 do | |
| 2239 | partMesh.Scale = partMesh.Scale + vt(value, value, value) | |
| 2240 | expart.CFrame = expart.CFrame | |
| 2241 | partMesh2.Scale = partMesh2.Scale + vt(value, value, value) | |
| 2242 | expart2.CFrame = expart.CFrame | |
| 2243 | value = value - 0.035 * rad / 5 | |
| 2244 | if value < 0 then | |
| 2245 | value = 0 | |
| 2246 | expart.Transparency = expart.Transparency + 0.05 | |
| 2247 | expart2.Transparency = expart2.Transparency + 0.05 | |
| 2248 | end | |
| 2249 | swait() | |
| 2250 | end | |
| 2251 | game:GetService("Debris"):AddItem(expart, 1)
| |
| 2252 | game:GetService("Debris"):AddItem(expart2, 1)
| |
| 2253 | end | |
| 2254 | function AreaDanger(rad, par, mindam, maxdam) | |
| 2255 | local expart = Instance.new("Part", char)
| |
| 2256 | local partMesh = Instance.new("SpecialMesh", expart)
| |
| 2257 | CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
| |
| 2258 | partMesh.MeshType = "Sphere" | |
| 2259 | partMesh.Scale = vt(rad, rad, rad) | |
| 2260 | expart.Size = vt(1, 1, 1) | |
| 2261 | expart.Transparency = 0.5 | |
| 2262 | expart.Anchored = true | |
| 2263 | expart.Material = "Neon" | |
| 2264 | expart.CanCollide = false | |
| 2265 | expart.BrickColor = par.BrickColor | |
| 2266 | expart.CFrame = par.CFrame | |
| 2267 | local value = 1 * rad / 5 | |
| 2268 | MagicBlock(origcolor, expart.CFrame, 0, 0, 0, rad / 2, rad / 2, rad / 2, 0.1) | |
| 2269 | for i = 0, 14 do | |
| 2270 | wait() | |
| 2271 | partMesh.Scale = partMesh.Scale + vt(value, value, value) | |
| 2272 | expart.CFrame = expart.CFrame | |
| 2273 | value = value - 0.035 * rad | |
| 2274 | if value < 0 then | |
| 2275 | value = 0 | |
| 2276 | end | |
| 2277 | end | |
| 2278 | wait(0.25) | |
| 2279 | CFuncs.Sound.Create("rbxassetid://588738544", expart, 1.5, 1)
| |
| 2280 | wait(0.5) | |
| 2281 | CFuncs.Sound.Create("rbxassetid://588737825", expart, 1.5, 1)
| |
| 2282 | CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 0.75)
| |
| 2283 | MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal") | |
| 2284 | MagicBlock(origcolor, expart.CFrame, rad * 2, rad * 2, rad * 2, 0.1, 0.1, 0.1, 0.025) | |
| 2285 | for i = 0, 14 do | |
| 2286 | wait() | |
| 2287 | partMesh.Scale = partMesh.Scale + vt(value, value, value) | |
| 2288 | expart.CFrame = expart.CFrame | |
| 2289 | value = value - 0.035 * rad / 2 | |
| 2290 | end | |
| 2291 | expart.Transparency = 1 | |
| 2292 | game:GetService("Debris"):AddItem(expart, 5)
| |
| 2293 | end | |
| 2294 | function Swarmsplosions(negrad, rad, par, mindam, maxdam) | |
| 2295 | CFuncs.Sound.Create("rbxassetid://588737825", par, 2.5, 2)
| |
| 2296 | CFuncs.Sound.Create("rbxassetid://231917784", par, 2.5, 1)
| |
| 2297 | CFuncs.Sound.Create("rbxassetid://231917744", par, 2.5, 1)
| |
| 2298 | CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
| |
| 2299 | MagniDamageWithEffect(par, 25, 5, 10, 0, "Normal") | |
| 2300 | MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.025) | |
| 2301 | for i = 0, 24 do | |
| 2302 | MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2, 2, 5, -0.01, -0.01, 25, 0.005, math.random(1, 2)) | |
| 2303 | end | |
| 2304 | for i = 0, 24 do | |
| 2305 | local expart = Instance.new("Part", char)
| |
| 2306 | expart.Transparency = 1 | |
| 2307 | expart.Anchored = true | |
| 2308 | expart.CanCollide = false | |
| 2309 | expart.CFrame = par.CFrame * CFrame.new(math.random(negrad, rad), math.random(negrad, rad), math.random(negrad, rad)) | |
| 2310 | CFuncs.Sound.Create("rbxassetid://588737825", expart, 1, 2)
| |
| 2311 | CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
| |
| 2312 | MagniDamage(expart, rad / 2, mindam, maxdam, 0, "Normal") | |
| 2313 | MagicBlock(origcolor, expart.CFrame, rad, rad, rad, 0.1, 0.1, 0.1, 0.025) | |
| 2314 | for i = 0, 9 do | |
| 2315 | MagicShockTrailAlt2(origcolor, expart.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2, 2, 5, -0.01, -0.01, 5, 0.05, math.random(1, 2)) | |
| 2316 | end | |
| 2317 | game:GetService("Debris"):AddItem(expart, 2)
| |
| 2318 | wait(0.1) | |
| 2319 | end | |
| 2320 | end | |
| 2321 | function EXterPlosion(par) | |
| 2322 | CFuncs.Sound.Create("rbxassetid://919941001", par, 10, 1)
| |
| 2323 | CFuncs.Sound.Create("rbxassetid://138213851", par, 5, 0.85)
| |
| 2324 | CFuncs.Sound.Create("rbxassetid://157878578", par, 5, 0.2)
| |
| 2325 | CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
| |
| 2326 | MagniDamageWithEffect(par, 500, 80, 99, 0, "Normal") | |
| 2327 | MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.005) | |
| 2328 | MagicBlock(origcolor, par.CFrame, 0, 0, 0, 150, 150, 150, 0.1) | |
| 2329 | for i = 0, 24 do | |
| 2330 | MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 50, 50, 5, -0.5, -0.5, 500, 0.1, math.random(1, 2)) | |
| 2331 | end | |
| 2332 | for i = 0, 24 do | |
| 2333 | MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 50, 50, 5, -0.25, -0.25, 50, 0.005, math.random(1, 2)) | |
| 2334 | end | |
| 2335 | end | |
| 2336 | function ring(type, pos, scale, value) | |
| 2337 | local type = type | |
| 2338 | local rng = Instance.new("Part", char)
| |
| 2339 | rng.Anchored = true | |
| 2340 | rng.BrickColor = origcolor | |
| 2341 | rng.CanCollide = false | |
| 2342 | rng.FormFactor = 3 | |
| 2343 | rng.Name = "Ring" | |
| 2344 | rng.Size = Vector3.new(1, 1, 1) | |
| 2345 | rng.Transparency = 0 | |
| 2346 | rng.TopSurface = 0 | |
| 2347 | rng.BottomSurface = 0 | |
| 2348 | rng.CFrame = pos | |
| 2349 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2350 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 2351 | rngm.Scale = scale | |
| 2352 | local scaler2 = 1 | |
| 2353 | if type == "Add" then | |
| 2354 | scaler2 = 1 * value | |
| 2355 | elseif type == "Divide" then | |
| 2356 | scaler2 = 1 / value | |
| 2357 | end | |
| 2358 | coroutine.resume(coroutine.create(function() | |
| 2359 | for i = 0, 10, 0.1 do | |
| 2360 | swait() | |
| 2361 | if type == "Add" then | |
| 2362 | scaler2 = scaler2 - 0.01 * value | |
| 2363 | elseif type == "Divide" then | |
| 2364 | scaler2 = scaler2 - 0.01 / value | |
| 2365 | end | |
| 2366 | rng.Transparency = rng.Transparency + 0.01 | |
| 2367 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
| 2368 | end | |
| 2369 | rng:Destroy() | |
| 2370 | end)) | |
| 2371 | end | |
| 2372 | function wave(type, pos, scale, value) | |
| 2373 | local type = type | |
| 2374 | local rng = Instance.new("Part", char)
| |
| 2375 | rng.Anchored = true | |
| 2376 | rng.BrickColor = origcolor | |
| 2377 | rng.CanCollide = false | |
| 2378 | rng.FormFactor = 3 | |
| 2379 | rng.Name = "Ring" | |
| 2380 | rng.Size = Vector3.new(1, 1, 1) | |
| 2381 | rng.Transparency = 0 | |
| 2382 | rng.TopSurface = 0 | |
| 2383 | rng.BottomSurface = 0 | |
| 2384 | rng.CFrame = pos | |
| 2385 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2386 | rngm.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 2387 | rngm.Scale = scale | |
| 2388 | local scaler2 = 1 | |
| 2389 | if type == "Add" then | |
| 2390 | scaler2 = 1 * value | |
| 2391 | elseif type == "Divide" then | |
| 2392 | scaler2 = 1 / value | |
| 2393 | end | |
| 2394 | coroutine.resume(coroutine.create(function() | |
| 2395 | for i = 0, 10, 0.1 do | |
| 2396 | swait() | |
| 2397 | if type == "Add" then | |
| 2398 | scaler2 = scaler2 - 0.01 * value | |
| 2399 | elseif type == "Divide" then | |
| 2400 | scaler2 = scaler2 - 0.01 / value | |
| 2401 | end | |
| 2402 | rng.Transparency = rng.Transparency + 0.01 | |
| 2403 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
| 2404 | end | |
| 2405 | rng:Destroy() | |
| 2406 | end)) | |
| 2407 | end | |
| 2408 | function wind(type, pos, scale, value, speed) | |
| 2409 | local type = type | |
| 2410 | local rng = Instance.new("Part", char)
| |
| 2411 | rng.Anchored = true | |
| 2412 | rng.BrickColor = origcolor | |
| 2413 | rng.CanCollide = false | |
| 2414 | rng.FormFactor = 3 | |
| 2415 | rng.Name = "Ring" | |
| 2416 | rng.Size = Vector3.new(1, 1, 1) | |
| 2417 | rng.Transparency = 0 | |
| 2418 | rng.TopSurface = 0 | |
| 2419 | rng.BottomSurface = 0 | |
| 2420 | rng.CFrame = pos | |
| 2421 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2422 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
| 2423 | rngm.Scale = scale | |
| 2424 | local scaler2 = 1 | |
| 2425 | if type == "Add" then | |
| 2426 | scaler2 = 1 * value | |
| 2427 | elseif type == "Divide" then | |
| 2428 | scaler2 = 1 / value | |
| 2429 | end | |
| 2430 | coroutine.resume(coroutine.create(function() | |
| 2431 | for i = 0, 10, 0.1 do | |
| 2432 | swait() | |
| 2433 | if type == "Add" then | |
| 2434 | scaler2 = scaler2 - 0.01 * value | |
| 2435 | elseif type == "Divide" then | |
| 2436 | scaler2 = scaler2 - 0.01 / value | |
| 2437 | end | |
| 2438 | rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0) | |
| 2439 | rng.Transparency = rng.Transparency + 0.01 | |
| 2440 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
| 2441 | end | |
| 2442 | rng:Destroy() | |
| 2443 | end)) | |
| 2444 | end | |
| 2445 | function groundwind(type, pos, scale, value, speed) | |
| 2446 | local type = type | |
| 2447 | local rng = Instance.new("Part", char)
| |
| 2448 | rng.Anchored = true | |
| 2449 | rng.BrickColor = origcolor | |
| 2450 | rng.CanCollide = false | |
| 2451 | rng.FormFactor = 3 | |
| 2452 | rng.Name = "Ring" | |
| 2453 | rng.Size = Vector3.new(1, 1, 1) | |
| 2454 | rng.Transparency = 0 | |
| 2455 | rng.TopSurface = 0 | |
| 2456 | rng.BottomSurface = 0 | |
| 2457 | rng.CFrame = pos | |
| 2458 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2459 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
| 2460 | rngm.Scale = scale | |
| 2461 | local scaler2 = 1 | |
| 2462 | if type == "Add" then | |
| 2463 | scaler2 = 1 * value | |
| 2464 | elseif type == "Divide" then | |
| 2465 | scaler2 = 1 / value | |
| 2466 | end | |
| 2467 | coroutine.resume(coroutine.create(function() | |
| 2468 | for i = 0, 10, 0.1 do | |
| 2469 | swait() | |
| 2470 | if type == "Add" then | |
| 2471 | scaler2 = scaler2 - 0.01 * value | |
| 2472 | elseif type == "Divide" then | |
| 2473 | scaler2 = scaler2 - 0.01 / value | |
| 2474 | end | |
| 2475 | rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0) | |
| 2476 | rng.Transparency = rng.Transparency + 0.01 | |
| 2477 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2 / 5, scaler2) | |
| 2478 | end | |
| 2479 | rng:Destroy() | |
| 2480 | end)) | |
| 2481 | end | |
| 2482 | function CameraManager() | |
| 2483 | if TwoD and not CamInterrupt then | |
| 2484 | if Humanoid.Health > 0 then | |
| 2485 | Camera.CameraSubject = Humanoid | |
| 2486 | Camera.CameraType = "Scriptable" | |
| 2487 | Humanoid.AutoRotate = false | |
| 2488 | if Booleans.GyroUse then | |
| 2489 | Directer.MaxTorque = Vec3(0, huge, 0) | |
| 2490 | else | |
| 2491 | Directer.MaxTorque = Vec3(0, 0, 0) | |
| 2492 | end | |
| 2493 | if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then | |
| 2494 | if Booleans.CamFollow then | |
| 2495 | CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z)) | |
| 2496 | Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position) | |
| 2497 | else | |
| 2498 | CPart.Position = RootPart.Position | |
| 2499 | end | |
| 2500 | else | |
| 2501 | local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p | |
| 2502 | CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z)) | |
| 2503 | end | |
| 2504 | Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2) | |
| 2505 | else | |
| 2506 | Camera.CameraSubject = Humanoid | |
| 2507 | Camera.CameraType = "Custom" | |
| 2508 | Controller.Disabled = false | |
| 2509 | end | |
| 2510 | end | |
| 2511 | end | |
| 2512 | function sphere(bonuspeed, type, pos, scale, value, color) | |
| 2513 | local type = type | |
| 2514 | local rng = Instance.new("Part", char)
| |
| 2515 | rng.Anchored = true | |
| 2516 | rng.BrickColor = color | |
| 2517 | rng.CanCollide = false | |
| 2518 | rng.FormFactor = 3 | |
| 2519 | rng.Name = "Ring" | |
| 2520 | rng.Material = "Neon" | |
| 2521 | rng.Size = Vector3.new(1, 1, 1) | |
| 2522 | rng.Transparency = 0 | |
| 2523 | rng.TopSurface = 0 | |
| 2524 | rng.BottomSurface = 0 | |
| 2525 | rng.CFrame = pos | |
| 2526 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2527 | rngm.MeshType = "Sphere" | |
| 2528 | rngm.Scale = scale | |
| 2529 | if rainbowmode == true then | |
| 2530 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 2531 | end | |
| 2532 | local scaler2 = 1 | |
| 2533 | if type == "Add" then | |
| 2534 | scaler2 = 1 * value | |
| 2535 | elseif type == "Divide" then | |
| 2536 | scaler2 = 1 / value | |
| 2537 | end | |
| 2538 | coroutine.resume(coroutine.create(function() | |
| 2539 | for i = 0, 10 / bonuspeed, 0.1 do | |
| 2540 | swait() | |
| 2541 | if rainbowmode == true then | |
| 2542 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 2543 | end | |
| 2544 | if type == "Add" then | |
| 2545 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
| 2546 | elseif type == "Divide" then | |
| 2547 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
| 2548 | end | |
| 2549 | if chaosmode == true then | |
| 2550 | rng.BrickColor = BrickColor.random() | |
| 2551 | end | |
| 2552 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
| 2553 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
| 2554 | end | |
| 2555 | rng:Destroy() | |
| 2556 | end)) | |
| 2557 | end | |
| 2558 | function sphereMK(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos) | |
| 2559 | local type = type | |
| 2560 | local rng = Instance.new("Part", char)
| |
| 2561 | rng.Anchored = true | |
| 2562 | rng.BrickColor = color | |
| 2563 | rng.CanCollide = false | |
| 2564 | rng.FormFactor = 3 | |
| 2565 | rng.Name = "Ring" | |
| 2566 | rng.Material = "Neon" | |
| 2567 | rng.Size = Vector3.new(1, 1, 1) | |
| 2568 | rng.Transparency = 0 | |
| 2569 | rng.TopSurface = 0 | |
| 2570 | rng.BottomSurface = 0 | |
| 2571 | rng.CFrame = pos | |
| 2572 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
| 2573 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2574 | rngm.MeshType = "Sphere" | |
| 2575 | rngm.Scale = vt(x1, y1, z1) | |
| 2576 | if rainbowmode == true then | |
| 2577 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 2578 | end | |
| 2579 | local scaler2 = 1 | |
| 2580 | local speeder = FastSpeed | |
| 2581 | if type == "Add" then | |
| 2582 | scaler2 = 1 * value | |
| 2583 | elseif type == "Divide" then | |
| 2584 | scaler2 = 1 / value | |
| 2585 | end | |
| 2586 | coroutine.resume(coroutine.create(function() | |
| 2587 | for i = 0, 10 / bonuspeed, 0.1 do | |
| 2588 | swait() | |
| 2589 | if rainbowmode == true then | |
| 2590 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 2591 | end | |
| 2592 | if type == "Add" then | |
| 2593 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
| 2594 | elseif type == "Divide" then | |
| 2595 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
| 2596 | end | |
| 2597 | if chaosmode == true then | |
| 2598 | rng.BrickColor = BrickColor.random() | |
| 2599 | end | |
| 2600 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
| 2601 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
| 2602 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
| 2603 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
| 2604 | end | |
| 2605 | rng:Destroy() | |
| 2606 | end)) | |
| 2607 | end | |
| 2608 | function sphereMKCharge(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos) | |
| 2609 | local type = type | |
| 2610 | local rng = Instance.new("Part", char)
| |
| 2611 | rng.Anchored = true | |
| 2612 | rng.BrickColor = color | |
| 2613 | rng.CanCollide = false | |
| 2614 | rng.FormFactor = 3 | |
| 2615 | rng.Name = "Ring" | |
| 2616 | rng.Material = "Neon" | |
| 2617 | rng.Size = Vector3.new(1, 1, 1) | |
| 2618 | rng.Transparency = 1 | |
| 2619 | rng.TopSurface = 0 | |
| 2620 | rng.BottomSurface = 0 | |
| 2621 | rng.CFrame = pos | |
| 2622 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
| 2623 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2624 | rngm.MeshType = "Sphere" | |
| 2625 | rngm.Scale = vt(x1, y1, z1) | |
| 2626 | if rainbowmode == true then | |
| 2627 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 2628 | end | |
| 2629 | local scaler2 = 1 | |
| 2630 | local speeder = FastSpeed | |
| 2631 | if type == "Add" then | |
| 2632 | scaler2 = 1 * value | |
| 2633 | elseif type == "Divide" then | |
| 2634 | scaler2 = 1 / value | |
| 2635 | end | |
| 2636 | coroutine.resume(coroutine.create(function() | |
| 2637 | for i = 0, 10 / bonuspeed, 0.1 do | |
| 2638 | swait() | |
| 2639 | if rainbowmode == true then | |
| 2640 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 2641 | end | |
| 2642 | if type == "Add" then | |
| 2643 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
| 2644 | elseif type == "Divide" then | |
| 2645 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
| 2646 | end | |
| 2647 | if chaosmode == true then | |
| 2648 | rng.BrickColor = BrickColor.random() | |
| 2649 | end | |
| 2650 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
| 2651 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
| 2652 | rng.Transparency = rng.Transparency - 0.01 * bonuspeed | |
| 2653 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
| 2654 | end | |
| 2655 | rng:Destroy() | |
| 2656 | end)) | |
| 2657 | end | |
| 2658 | function Blaze() | |
| 2659 | local ff = Instance.new("ForceField",char)
| |
| 2660 | local s = Instance.new("Sound",char)
| |
| 2661 | s.SoundId = "rbxassetid://289315275" | |
| 2662 | s.Pitch = 1 | |
| 2663 | s.Volume = 2.75 | |
| 2664 | s.Looped = false | |
| 2665 | s:Play() | |
| 2666 | local s2 = Instance.new("Sound",char)
| |
| 2667 | s2.SoundId = "rbxassetid://671759140" | |
| 2668 | s2.Pitch = 0.425 | |
| 2669 | s2.Volume = 1 | |
| 2670 | s2.Looped = false | |
| 2671 | s2:Play() | |
| 2672 | local spart = boll:Clone() | |
| 2673 | local spart2 = shur:Clone() | |
| 2674 | local msh = Instance.new("SpecialMesh",spart)
| |
| 2675 | msh.MeshType = "Sphere" | |
| 2676 | spart.Parent = workspace | |
| 2677 | spart.Transparency = 1 | |
| 2678 | spart.Anchored = true | |
| 2679 | spart.Position = tors.Position + vt(0,1,0) | |
| 2680 | spart.Size = spart.Size + vt(1,1,1) | |
| 2681 | for i = 0, 10 do | |
| 2682 | spart.BrickColor = tors.BrickColor | |
| 2683 | spart.Transparency = spart.Transparency + -0.05 | |
| 2684 | spart.Position = tors.Position + vt(0,1,0) | |
| 2685 | spart.Size = spart.Size + vt(3,3,3) | |
| 2686 | wait(0) | |
| 2687 | end | |
| 2688 | for i = 0, 5 do | |
| 2689 | spart.BrickColor = tors.BrickColor | |
| 2690 | spart.Transparency = spart.Transparency + -0.05 | |
| 2691 | spart.Position = tors.Position + vt(0,1,0) | |
| 2692 | spart.Size = spart.Size + vt(2.5,2.5,2.5) | |
| 2693 | wait(0) | |
| 2694 | end | |
| 2695 | for i = 0, 5 do | |
| 2696 | spart.BrickColor = tors.BrickColor | |
| 2697 | spart.Transparency = spart.Transparency + -0.05 | |
| 2698 | spart.Position = tors.Position + vt(0,1,0) | |
| 2699 | spart.Size = spart.Size + vt(1,1,1) | |
| 2700 | wait(0) | |
| 2701 | end | |
| 2702 | for i = 0, 10 do | |
| 2703 | spart.BrickColor = tors.BrickColor | |
| 2704 | wait(0.1) | |
| 2705 | end | |
| 2706 | for i = 0, 20 do | |
| 2707 | spart.BrickColor = tors.BrickColor | |
| 2708 | spart.Transparency = spart.Transparency + 0.05 | |
| 2709 | spart.Position = tors.Position + vt(0,1,0) | |
| 2710 | spart.Size = spart.Size + vt(-5,-5,-5) | |
| 2711 | wait(0) | |
| 2712 | end | |
| 2713 | local sp = spart:Clone() | |
| 2714 | sp.Parent = workspace | |
| 2715 | sp.Position = spart.Position | |
| 2716 | local sp2 = sp:Clone() | |
| 2717 | sp2.Parent = workspace | |
| 2718 | sp2.Transparency = 0.5 | |
| 2719 | local msh2 = sp2.Mesh | |
| 2720 | msh2.Scale = vt(1250,1250,1250) | |
| 2721 | wit = tors.BrickColor.Color | |
| 2722 | local glowz = Instance.new("ParticleEmitter")
| |
| 2723 | glowz.LightEmission = 0.75 | |
| 2724 | glowz.Parent = sp2 | |
| 2725 | glowz.Texture = "rbxassetid://284205403" | |
| 2726 | glowz.Color = ColorSequence.new(wit) | |
| 2727 | glowz.Size = NumberSequence.new(50) | |
| 2728 | glowz.Speed = NumberRange.new(425,450) | |
| 2729 | glowz.LockedToPart = false | |
| 2730 | glowz.Transparency = NumberSequence.new(0.75) | |
| 2731 | glowz.RotSpeed = NumberRange.new(-2000,2000) | |
| 2732 | glowz.Lifetime = NumberRange.new(1) | |
| 2733 | glowz.Rate = 50000 | |
| 2734 | glowz.VelocitySpread = 9001 | |
| 2735 | spart2.Parent = workspace | |
| 2736 | spart2.Mesh.Scale = vt(25, 90000, 25) | |
| 2737 | spart2.Position = tors.Position | |
| 2738 | local seen = Instance.new("Sound",char)
| |
| 2739 | seen.SoundId = "rbxassetid://445796828" | |
| 2740 | seen.Pitch = 0.75 | |
| 2741 | seen.Volume = 1.75 | |
| 2742 | seen.Looped = true | |
| 2743 | seen:Play() | |
| 2744 | local sen = Instance.new("Sound",char)
| |
| 2745 | sen.SoundId = "rbxassetid://289315275" | |
| 2746 | sen.Pitch = 0.98 | |
| 2747 | sen.Volume = 2.65 | |
| 2748 | sen.Looped = false | |
| 2749 | sen:Play() | |
| 2750 | local tick = Instance.new("Sound",char)
| |
| 2751 | tick.SoundId = "rbxassetid://446876721" | |
| 2752 | tick.Volume = 5 | |
| 2753 | tick.Pitch = 0.5 | |
| 2754 | tick:Play() | |
| 2755 | local seena = Instance.new("Sound",char)
| |
| 2756 | seena.SoundId = "rbxassetid://300916057" | |
| 2757 | seena.Pitch = 0.5 | |
| 2758 | seena.Volume = 2.5 | |
| 2759 | seena.Looped = false | |
| 2760 | seena:Play() | |
| 2761 | spart.Transparency = 0 | |
| 2762 | ExplodeMass(1000,sp) | |
| 2763 | for i = 0, 450 do | |
| 2764 | spart2.Position = spart.Position + vt(math.random(-1,1),0,math.random(-1,1)) | |
| 2765 | sp2.Position = spart.Position | |
| 2766 | spart2.Mesh.Scale = spart2.Mesh.Scale + vt(0.035, 0, 0.035) | |
| 2767 | spart2.BrickColor = tors.BrickColor | |
| 2768 | msh2.Scale = msh2.Scale + vt(3.5,3.5,3.5) | |
| 2769 | msh.Scale = msh.Scale + vt(50,50,50) | |
| 2770 | sp2.Transparency = sp2.Transparency + 0.0005 | |
| 2771 | spart.Transparency = spart.Transparency + 0.0025 | |
| 2772 | spart2.Transparency = spart2.Transparency + 0.0025 | |
| 2773 | wait(0) | |
| 2774 | end | |
| 2775 | spart:Destroy() | |
| 2776 | seena:Destroy() | |
| 2777 | ff:Destroy() | |
| 2778 | seen:Destroy() | |
| 2779 | sen:Destroy() | |
| 2780 | tick:Destroy() | |
| 2781 | spart2:Destroy() | |
| 2782 | s:Destroy() | |
| 2783 | sp:Destroy() | |
| 2784 | sp2:Destroy() | |
| 2785 | s2:Destroy() | |
| 2786 | end | |
| 2787 | function dmg(dude) | |
| 2788 | if dude.Name ~= Character then | |
| 2789 | local bgf = Instance.new("BodyGyro", dude.Head)
| |
| 2790 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0) | |
| 2791 | local val = Instance.new("BoolValue", dude)
| |
| 2792 | val.Name = "IsHit" | |
| 2793 | local ds = coroutine.wrap(function() | |
| 2794 | dude:WaitForChild("Head"):BreakJoints()
| |
| 2795 | wait(0.5) | |
| 2796 | targetted = nil | |
| 2797 | CFuncs.Sound.Create("rbxassetid://62339698", char, 0.5, 0.3)
| |
| 2798 | coroutine.resume(coroutine.create(function() | |
| 2799 | for i, v in pairs(dude:GetChildren()) do | |
| 2800 | if v:IsA("Accessory") then
| |
| 2801 | v:Destroy() | |
| 2802 | end | |
| 2803 | if v:IsA("Humanoid") then
| |
| 2804 | v:Destroy() | |
| 2805 | end | |
| 2806 | if v:IsA("CharacterMesh") then
| |
| 2807 | v:Destroy() | |
| 2808 | end | |
| 2809 | if v:IsA("Model") then
| |
| 2810 | v:Destroy() | |
| 2811 | end | |
| 2812 | if v:IsA("Part") or v:IsA("MeshPart") then
| |
| 2813 | for x, o in pairs(v:GetChildren()) do | |
| 2814 | if o:IsA("Decal") then
| |
| 2815 | o:Destroy() | |
| 2816 | end | |
| 2817 | end | |
| 2818 | coroutine.resume(coroutine.create(function() | |
| 2819 | v.Material = "Neon" | |
| 2820 | v.CanCollide = false | |
| 2821 | local bld = Instance.new("ParticleEmitter", v)
| |
| 2822 | bld.LightEmission = 1 | |
| 2823 | bld.Texture = "rbxassetid://284205403" | |
| 2824 | bld.Color = ColorSequence.new(Color3.new(1, 1, 1)) | |
| 2825 | bld.Rate = 50 | |
| 2826 | bld.Lifetime = NumberRange.new(1) | |
| 2827 | bld.Size = NumberSequence.new({
| |
| 2828 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
| 2829 | NumberSequenceKeypoint.new(1, 0, 0) | |
| 2830 | }) | |
| 2831 | bld.Transparency = NumberSequence.new({
| |
| 2832 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 2833 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 2834 | }) | |
| 2835 | bld.Speed = NumberRange.new(0, 0) | |
| 2836 | bld.VelocitySpread = 50000 | |
| 2837 | bld.Rotation = NumberRange.new(-500, 500) | |
| 2838 | bld.RotSpeed = NumberRange.new(-500, 500) | |
| 2839 | local sbs = Instance.new("BodyPosition", v)
| |
| 2840 | sbs.P = 3000 | |
| 2841 | sbs.D = 1000 | |
| 2842 | sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
| 2843 | sbs.position = v.Position + Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) | |
| 2844 | v.Color = Color3.new(1, 1, 1) | |
| 2845 | coroutine.resume(coroutine.create(function() | |
| 2846 | for i = 0, 49 do | |
| 2847 | swait(1) | |
| 2848 | v.Transparency = v.Transparency + 0.02 | |
| 2849 | end | |
| 2850 | CFuncs.Sound.Create("rbxassetid://1192402877", v, 0.25, 1)
| |
| 2851 | bld.Speed = NumberRange.new(1, 5) | |
| 2852 | bld.Acceleration = vt(0, 10, 0) | |
| 2853 | wait(0.5) | |
| 2854 | bld.Enabled = false | |
| 2855 | wait(3) | |
| 2856 | v:Destroy() | |
| 2857 | dude:Destroy() | |
| 2858 | end)) | |
| 2859 | end)) | |
| 2860 | end | |
| 2861 | end | |
| 2862 | end)) | |
| 2863 | end) | |
| 2864 | ds() | |
| 2865 | end | |
| 2866 | end | |
| 2867 | function FindNearestHead(Position, Distance, SinglePlayer) | |
| 2868 | if SinglePlayer then | |
| 2869 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
| 2870 | end | |
| 2871 | local List = {}
| |
| 2872 | for i, v in pairs(workspace:GetChildren()) do | |
| 2873 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
| |
| 2874 | table.insert(List, v) | |
| 2875 | end | |
| 2876 | end | |
| 2877 | return List | |
| 2878 | end | |
| 2879 | function FaceMouse() | |
| 2880 | Cam = workspace.CurrentCamera | |
| 2881 | return {
| |
| 2882 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
| 2883 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
| 2884 | } | |
| 2885 | end | |
| 2886 | function FaceMouse2() | |
| 2887 | Cam = workspace.CurrentCamera | |
| 2888 | return {
| |
| 2889 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)), | |
| 2890 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
| 2891 | } | |
| 2892 | end | |
| 2893 | local ModeOfGlitch = 1 | |
| 2894 | local storehumanoidWS = 16 | |
| 2895 | function ExtinctiveHeartbreak() | |
| 2896 | local targetted | |
| 2897 | if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 2898 | targetted = mouse.Target.Parent | |
| 2899 | end | |
| 2900 | if targetted ~= nil then | |
| 2901 | attack = true | |
| 2902 | CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
| |
| 2903 | for i = 0, 9 do | |
| 2904 | sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0)
| |
| 2905 | end | |
| 2906 | sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
| |
| 2907 | local originalpos = root.CFrame | |
| 2908 | RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0, -2, 2) | |
| 2909 | for i = 0, 9 do | |
| 2910 | sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0)
| |
| 2911 | end | |
| 2912 | hum.WalkSpeed = 0 | |
| 2913 | targetted.Head.Anchored = true | |
| 2914 | sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
| |
| 2915 | for i = 0, 2, 0.1 do | |
| 2916 | swait() | |
| 2917 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.4) | |
| 2918 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.4) | |
| 2919 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.4) | |
| 2920 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8) | |
| 2921 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.4) | |
| 2922 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.4) | |
| 2923 | end | |
| 2924 | coroutine.resume(coroutine.create(function() | |
| 2925 | bld = Instance.new("ParticleEmitter", targetted:WaitForChild("Torso"))
| |
| 2926 | bld.LightEmission = 0.1 | |
| 2927 | bld.Texture = "rbxassetid://284205403" | |
| 2928 | bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0)) | |
| 2929 | bld.Rate = 500 | |
| 2930 | bld.Lifetime = NumberRange.new(1) | |
| 2931 | bld.Size = NumberSequence.new({
| |
| 2932 | NumberSequenceKeypoint.new(0, 2, 0), | |
| 2933 | NumberSequenceKeypoint.new(1, 0, 0) | |
| 2934 | }) | |
| 2935 | bld.Acceleration = vt(0, -25, 0) | |
| 2936 | bld.Transparency = NumberSequence.new({
| |
| 2937 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 2938 | NumberSequenceKeypoint.new(1, 0, 0) | |
| 2939 | }) | |
| 2940 | bld.Speed = NumberRange.new(10, 50) | |
| 2941 | bld.EmissionDirection = "Front" | |
| 2942 | bld.VelocitySpread = 25 | |
| 2943 | bld.Rotation = NumberRange.new(-500, 500) | |
| 2944 | bld.RotSpeed = NumberRange.new(-500, 500) | |
| 2945 | end)) | |
| 2946 | coroutine.resume(coroutine.create(function() | |
| 2947 | bld = Instance.new("ParticleEmitter", targetted:WaitForChild("UpperTorso"))
| |
| 2948 | bld.LightEmission = 0.1 | |
| 2949 | bld.Texture = "rbxassetid://284205403" | |
| 2950 | bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0)) | |
| 2951 | bld.Rate = 500 | |
| 2952 | bld.Lifetime = NumberRange.new(1) | |
| 2953 | bld.Size = NumberSequence.new({
| |
| 2954 | NumberSequenceKeypoint.new(0, 2, 0), | |
| 2955 | NumberSequenceKeypoint.new(1, 0, 0) | |
| 2956 | }) | |
| 2957 | bld.Acceleration = vt(0, -25, 0) | |
| 2958 | bld.Transparency = NumberSequence.new({
| |
| 2959 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 2960 | NumberSequenceKeypoint.new(1, 0, 0) | |
| 2961 | }) | |
| 2962 | bld.Speed = NumberRange.new(10, 50) | |
| 2963 | bld.EmissionDirection = "Front" | |
| 2964 | bld.VelocitySpread = 25 | |
| 2965 | bld.Rotation = NumberRange.new(-500, 500) | |
| 2966 | bld.RotSpeed = NumberRange.new(-500, 500) | |
| 2967 | end)) | |
| 2968 | CameraEnshaking(5, 5) | |
| 2969 | game:GetService("Debris"):AddItem(bld, 3)
| |
| 2970 | dmg(targetted) | |
| 2971 | CFuncs.Sound.Create("rbxassetid://429400881", targetted.Head, 1, 1)
| |
| 2972 | for i = 0, 1, 0.1 do | |
| 2973 | swait() | |
| 2974 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.8) | |
| 2975 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.8) | |
| 2976 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0.25, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.8) | |
| 2977 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(80)), 0.8) | |
| 2978 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8) | |
| 2979 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(90), math.rad(0), math.rad(-80)), 0.8) | |
| 2980 | end | |
| 2981 | CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
| |
| 2982 | for i = 0, 9 do | |
| 2983 | sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0)
| |
| 2984 | end | |
| 2985 | sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
| |
| 2986 | root.CFrame = originalpos | |
| 2987 | for i = 0, 9 do | |
| 2988 | sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0)
| |
| 2989 | end | |
| 2990 | sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
| |
| 2991 | bld.Enabled = false | |
| 2992 | attack = false | |
| 2993 | hum.WalkSpeed = storehumanoidWS | |
| 2994 | end | |
| 2995 | end | |
| 2996 | function PureBomb() | |
| 2997 | attack = true | |
| 2998 | local orb = Instance.new("Part", char)
| |
| 2999 | orb.Anchored = true | |
| 3000 | orb.BrickColor = BrickColor.new("Toothpaste")
| |
| 3001 | orb.CanCollide = false | |
| 3002 | orb.FormFactor = 3 | |
| 3003 | orb.Name = "Ring" | |
| 3004 | orb.Material = "Neon" | |
| 3005 | orb.Size = Vector3.new(1, 1, 1) | |
| 3006 | orb.Transparency = 0 | |
| 3007 | orb.TopSurface = 0 | |
| 3008 | orb.BottomSurface = 0 | |
| 3009 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 3010 | orbm.MeshType = "Sphere" | |
| 3011 | orbm.Name = "SizeMesh" | |
| 3012 | orbm.Scale = vt(0, 0, 0) | |
| 3013 | local scaled = 0.1 | |
| 3014 | local posid = 0 | |
| 3015 | CFuncs.Sound.Create("rbxassetid://136007472", orb, 1, 1)
| |
| 3016 | for i = 0, 5, 0.1 do | |
| 3017 | swait() | |
| 3018 | scaled = scaled - 0.001 | |
| 3019 | posid = posid - scaled | |
| 3020 | orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0) | |
| 3021 | orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled) | |
| 3022 | sphereMKCharge(5, -0.25, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, BrickColor.new("Toothpaste"), 10)
| |
| 3023 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-2 - 1 * math.cos(sine / 32))), 0.1) | |
| 3024 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-3 + 1 * math.cos(sine / 32)), math.rad(0), math.rad(-10)), 0.1) | |
| 3025 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 3026 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 3027 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(180), math.rad(20), math.rad(0)), 0.1) | |
| 3028 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30 + 5 * math.cos(sine / 30)), math.rad(-20)), 0.1) | |
| 3029 | end | |
| 3030 | for i = 0, 2, 0.1 do | |
| 3031 | swait() | |
| 3032 | orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0) | |
| 3033 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-2 - 1 * math.cos(sine / 32))), 0.4) | |
| 3034 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-3 + 1 * math.cos(sine / 32)), math.rad(0), math.rad(-10)), 0.4) | |
| 3035 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.4) | |
| 3036 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(20)), 0.4) | |
| 3037 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(220), math.rad(20), math.rad(0)), 0.4) | |
| 3038 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30 + 5 * math.cos(sine / 30)), math.rad(-20)), 0.4) | |
| 3039 | end | |
| 3040 | coroutine.resume(coroutine.create(function() | |
| 3041 | orb.Anchored = false | |
| 3042 | CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
| |
| 3043 | local a = Instance.new("Part", workspace)
| |
| 3044 | a.Name = "Direction" | |
| 3045 | a.Anchored = true | |
| 3046 | a.BrickColor = bc("Bright red")
| |
| 3047 | a.Material = "Neon" | |
| 3048 | a.Transparency = 1 | |
| 3049 | a.CanCollide = false | |
| 3050 | local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500) | |
| 3051 | local ignore = orb | |
| 3052 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 3053 | a.BottomSurface = 10 | |
| 3054 | a.TopSurface = 10 | |
| 3055 | local distance = (orb.CFrame.p - position).magnitude | |
| 3056 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 3057 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
| 3058 | orb.CFrame = a.CFrame | |
| 3059 | a:Destroy() | |
| 3060 | local bv = Instance.new("BodyVelocity")
| |
| 3061 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
| 3062 | bv.velocity = orb.CFrame.lookVector * 125 | |
| 3063 | bv.Parent = orb | |
| 3064 | local hitted = false | |
| 3065 | game:GetService("Debris"):AddItem(orb, 15)
| |
| 3066 | wait() | |
| 3067 | local hit = orb.Touched:connect(function(hit) | |
| 3068 | if hitted == false then | |
| 3069 | hitted = true | |
| 3070 | CameraEnshaking(10, 2.5) | |
| 3071 | CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
| |
| 3072 | MagniDamage(orb, 65, 65, 90, 0, "Normal") | |
| 3073 | sphere(1, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickColor.new("Toothpaste"))
| |
| 3074 | sphere(2, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickColor.new("Toothpaste"))
| |
| 3075 | for i = 0, 9 do | |
| 3076 | sphereMK(1, 2.5, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Toothpaste"), 0)
| |
| 3077 | sphereMK(2, 5, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Toothpaste"), 0)
| |
| 3078 | end | |
| 3079 | orb.Anchored = true | |
| 3080 | orb.Transparency = 1 | |
| 3081 | wait(8) | |
| 3082 | orb:Destroy() | |
| 3083 | end | |
| 3084 | end) | |
| 3085 | end)) | |
| 3086 | for i = 0, 1, 0.1 do | |
| 3087 | swait() | |
| 3088 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-2 - 1 * math.cos(sine / 32))), 0.4) | |
| 3089 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-3 + 1 * math.cos(sine / 32)), math.rad(0), math.rad(-10)), 0.4) | |
| 3090 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.4) | |
| 3091 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.4) | |
| 3092 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(60), math.rad(20), math.rad(50)), 0.4) | |
| 3093 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30 + 5 * math.cos(sine / 30)), math.rad(-20)), 0.4) | |
| 3094 | end | |
| 3095 | attack = false | |
| 3096 | end | |
| 3097 | function ChaosGroundStrike() | |
| 3098 | attack = true | |
| 3099 | for i = 0, 2, 0.1 do | |
| 3100 | swait() | |
| 3101 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
| 3102 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
| 3103 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
| 3104 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
| 3105 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2) | |
| 3106 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2) | |
| 3107 | end | |
| 3108 | CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1)
| |
| 3109 | CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1)
| |
| 3110 | CameraEnshaking(4, 12) | |
| 3111 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do | |
| 3112 | if v:FindFirstChild("Head") then
| |
| 3113 | dmg(v) | |
| 3114 | end | |
| 3115 | end | |
| 3116 | sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, BrickColor.random()) | |
| 3117 | sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, BrickColor.random()) | |
| 3118 | sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100, 0.1, 100), 0.01, BrickColor.random()) | |
| 3119 | for i = 0, 2, 0.1 do | |
| 3120 | swait() | |
| 3121 | sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-52.5, 52.5), -5, math.random(-52.5, 52.5)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0) | |
| 3122 | sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-52.5, 52.5), -5, math.random(-52.5, 52.5)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0) | |
| 3123 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4) | |
| 3124 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4) | |
| 3125 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
| 3126 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
| 3127 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4) | |
| 3128 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4) | |
| 3129 | end | |
| 3130 | attack = false | |
| 3131 | end | |
| 3132 | function ChaosBegone() | |
| 3133 | attack = true | |
| 3134 | chatfunc("WHY WONT YOU PEOPLE...", BrickColor.random().Color)
| |
| 3135 | for i = 0, 10, 0.1 do | |
| 3136 | swait() | |
| 3137 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
| 3138 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
| 3139 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
| 3140 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
| 3141 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2) | |
| 3142 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2) | |
| 3143 | end | |
| 3144 | chatfunc("DIE!!", BrickColor.random().Color)
| |
| 3145 | CFuncs.Sound.Create("rbxassetid://438666141", char, 7.5, 1)
| |
| 3146 | CFuncs.Sound.Create("rbxassetid://1208650519", char, 7.5, 1)
| |
| 3147 | CameraEnshaking(5, 25) | |
| 3148 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do | |
| 3149 | if v:FindFirstChild("Head") then
| |
| 3150 | dmg(v) | |
| 3151 | end | |
| 3152 | end | |
| 3153 | sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random()) | |
| 3154 | sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random()) | |
| 3155 | sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random()) | |
| 3156 | for i = 0, 3, 0.1 do | |
| 3157 | swait() | |
| 3158 | sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0) | |
| 3159 | sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0) | |
| 3160 | sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0) | |
| 3161 | sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0) | |
| 3162 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4) | |
| 3163 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4) | |
| 3164 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
| 3165 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
| 3166 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4) | |
| 3167 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4) | |
| 3168 | end | |
| 3169 | attack = false | |
| 3170 | end | |
| 3171 | function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon) | |
| 3172 | local orb = Instance.new("Part", char)
| |
| 3173 | orb.Anchored = true | |
| 3174 | orb.BrickColor = color | |
| 3175 | orb.CanCollide = false | |
| 3176 | orb.FormFactor = 3 | |
| 3177 | orb.Name = "Ring" | |
| 3178 | orb.Material = "Neon" | |
| 3179 | orb.Size = Vector3.new(1, 1, 1) | |
| 3180 | orb.Transparency = 0 | |
| 3181 | orb.TopSurface = 0 | |
| 3182 | orb.BottomSurface = 0 | |
| 3183 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 3184 | orbm.MeshType = "Sphere" | |
| 3185 | orb.CFrame = positted | |
| 3186 | orbm.Name = "SizeMesh" | |
| 3187 | orbm.Scale = vt(1, 1, 1) | |
| 3188 | CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1)
| |
| 3189 | sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor) | |
| 3190 | coroutine.resume(coroutine.create(function() | |
| 3191 | wait(timer) | |
| 3192 | CameraEnshaking(3, ShakePower) | |
| 3193 | orb.Transparency = 1 | |
| 3194 | MagniDamage(orb, 3.5 * MagniBoost, min, max, 0, "Normal") | |
| 3195 | sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor) | |
| 3196 | CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7)
| |
| 3197 | wait(3) | |
| 3198 | orb:Destroy() | |
| 3199 | end)) | |
| 3200 | end | |
| 3201 | function orb_spawn(positted, timer) | |
| 3202 | local randomcol = math.random(1, 2) | |
| 3203 | local orb = Instance.new("Part", char)
| |
| 3204 | orb.Anchored = true | |
| 3205 | if randomcol == 1 then | |
| 3206 | orb.BrickColor = BrickColor.new("White")
| |
| 3207 | elseif randomcol == 2 then | |
| 3208 | orb.BrickColor = BrickColor.new("Really black")
| |
| 3209 | end | |
| 3210 | orb.CanCollide = false | |
| 3211 | orb.FormFactor = 3 | |
| 3212 | orb.Name = "Ring" | |
| 3213 | orb.Material = "Neon" | |
| 3214 | orb.Size = Vector3.new(1, 1, 1) | |
| 3215 | orb.Transparency = 0 | |
| 3216 | orb.TopSurface = 0 | |
| 3217 | orb.BottomSurface = 0 | |
| 3218 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 3219 | orbm.MeshType = "Sphere" | |
| 3220 | orb.CFrame = positted | |
| 3221 | orbm.Name = "SizeMesh" | |
| 3222 | orbm.Scale = vt(1, 1, 1) | |
| 3223 | CFuncs.Sound.Create("rbxassetid://183763506", orb, 1.5, 1)
| |
| 3224 | sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.025, orb.BrickColor) | |
| 3225 | for i = 0, 2 do | |
| 3226 | sphereMK(5, 0.15, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1.5, 1.5, 7.5, -0.015, orb.BrickColor, 0) | |
| 3227 | end | |
| 3228 | coroutine.resume(coroutine.create(function() | |
| 3229 | wait(timer) | |
| 3230 | CameraEnshaking(3, 2) | |
| 3231 | orb.Transparency = 1 | |
| 3232 | MagniDamage(orb, 17.5, 10, 50, 0, "Normal") | |
| 3233 | sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.5, orb.BrickColor) | |
| 3234 | for i = 0, 4 do | |
| 3235 | sphereMK(5, 0.65, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2.5, 2.5, 15, -0.025, orb.BrickColor, 0) | |
| 3236 | end | |
| 3237 | CFuncs.Sound.Create("rbxassetid://192410089", orb, 2, 0.7)
| |
| 3238 | wait(3) | |
| 3239 | orb:Destroy() | |
| 3240 | end)) | |
| 3241 | end | |
| 3242 | function scattercorrupt() | |
| 3243 | attack = true | |
| 3244 | local rot = 0 | |
| 3245 | local randomrotations = math.random(1, 2) | |
| 3246 | local lookv = 2.5 | |
| 3247 | local power = 5 | |
| 3248 | sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Royal purple"))
| |
| 3249 | sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple"))
| |
| 3250 | for i = 0, 9 do | |
| 3251 | sphereMK(1, 1.5, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 10, 10, 45, -0.1, BrickColor.new("Royal purple"), 0)
| |
| 3252 | end | |
| 3253 | CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6)
| |
| 3254 | CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5)
| |
| 3255 | CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1)
| |
| 3256 | CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75)
| |
| 3257 | CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5)
| |
| 3258 | local hite = Instance.new("Part", char)
| |
| 3259 | hite.Anchored = true | |
| 3260 | hite.CanCollide = false | |
| 3261 | hite.FormFactor = 3 | |
| 3262 | hite.Name = "Ring" | |
| 3263 | hite.Material = "Neon" | |
| 3264 | hite.Size = Vector3.new(1, 1, 1) | |
| 3265 | hite.Transparency = 1 | |
| 3266 | hite.TopSurface = 0 | |
| 3267 | hite.BottomSurface = 0 | |
| 3268 | hite.CFrame = root.CFrame * CFrame.new(0, -2.5, 0) | |
| 3269 | local rem = Instance.new("Part", char)
| |
| 3270 | rem.Anchored = true | |
| 3271 | rem.CanCollide = false | |
| 3272 | rem.FormFactor = 3 | |
| 3273 | rem.Name = "Ring" | |
| 3274 | rem.Material = "Neon" | |
| 3275 | rem.Size = Vector3.new(1, 1, 1) | |
| 3276 | rem.Transparency = 1 | |
| 3277 | rem.TopSurface = 0 | |
| 3278 | rem.BottomSurface = 0 | |
| 3279 | rem.CFrame = hite.CFrame | |
| 3280 | local rem2 = rem:Clone() | |
| 3281 | rem2.Parent = char | |
| 3282 | rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 3283 | local rem3 = rem:Clone() | |
| 3284 | rem3.Parent = char | |
| 3285 | rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0) | |
| 3286 | local rem4 = rem:Clone() | |
| 3287 | rem4.Parent = char | |
| 3288 | rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0) | |
| 3289 | hite:Destroy() | |
| 3290 | coroutine.resume(coroutine.create(function() | |
| 3291 | for i = 0, 24 do | |
| 3292 | swait(1) | |
| 3293 | if randomrotations == 1 then | |
| 3294 | rot = rot + 1 | |
| 3295 | elseif randomrotations == 2 then | |
| 3296 | rot = rot - 1 | |
| 3297 | end | |
| 3298 | power = power + 0.5 | |
| 3299 | lookv = lookv + 7.5 | |
| 3300 | rem.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(rot), 0) | |
| 3301 | rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 3302 | rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0) | |
| 3303 | rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0) | |
| 3304 | orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
| |
| 3305 | orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
| |
| 3306 | orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
| |
| 3307 | orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
| |
| 3308 | end | |
| 3309 | end)) | |
| 3310 | attack = false | |
| 3311 | end | |
| 3312 | function deadworld() | |
| 3313 | hum.WalkSpeed = 0 | |
| 3314 | attack = true | |
| 3315 | chatfunc("You... you will regret this!",Color3.new(0.5,0,0))
| |
| 3316 | for i = 0,10,0.1 do | |
| 3317 | swait() | |
| 3318 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1) | |
| 3319 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1) | |
| 3320 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.1) | |
| 3321 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 15 * math.cos(sine / 1))),.1) | |
| 3322 | RW.C0=clerp(RW.C0,cf(1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.1) | |
| 3323 | LW.C0=clerp(LW.C0,cf(-1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0 + 5 * math.cos(sine / 1)),math.rad(50 - 5 * math.cos(sine / 1))),.1) | |
| 3324 | end | |
| 3325 | coroutine.resume(coroutine.create(function() | |
| 3326 | CFuncs["Sound"].Create("rbxassetid://1213175909", char, 1,1)
| |
| 3327 | sphere(3,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
| |
| 3328 | sphere(6,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
| |
| 3329 | sphere(9,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
| |
| 3330 | coroutine.resume(coroutine.create(function() | |
| 3331 | for i = 0, 9 do | |
| 3332 | swait(3) | |
| 3333 | sphere(1,"Add",root.CFrame*CFrame.new(math.random(-75,75),math.random(-75,75),math.random(-75,75)),vt(0,0,0),2,BrickColor.new("Really red"))
| |
| 3334 | end | |
| 3335 | end)) | |
| 3336 | CFuncs["Sound"].Create("rbxassetid://579687077", char, 5,1)
| |
| 3337 | CFuncs["Sound"].Create("rbxassetid://239000203", char, 1,1)
| |
| 3338 | local blastpitch = 1 | |
| 3339 | for i = 0,2 do | |
| 3340 | wait(1.5) | |
| 3341 | sphere(3,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
| |
| 3342 | sphere(6,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
| |
| 3343 | sphere(9,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
| |
| 3344 | coroutine.resume(coroutine.create(function() | |
| 3345 | for i = 0, 9 do | |
| 3346 | swait(3) | |
| 3347 | sphere(1,"Add",root.CFrame*CFrame.new(math.random(-75,75),math.random(-75,75),math.random(-75,75)),vt(0,0,0),2,BrickColor.new("Really red"))
| |
| 3348 | end | |
| 3349 | end)) | |
| 3350 | blastpitch = blastpitch - 0.15 | |
| 3351 | CFuncs["Sound"].Create("rbxassetid://579687077", char, 1,blastpitch)
| |
| 3352 | end | |
| 3353 | wait(2) | |
| 3354 | for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 250000000)) do | |
| 3355 | hum.Health = math.huge | |
| 3356 | if v:FindFirstChild("Head") then
| |
| 3357 | dmg(v) | |
| 3358 | end | |
| 3359 | end | |
| 3360 | CFuncs["Sound"].Create("rbxassetid://239000203", char, 2,0.75)
| |
| 3361 | CFuncs["Sound"].Create("rbxassetid://579687077", char, 2,0.5)
| |
| 3362 | sphere(1,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson"))
| |
| 3363 | sphere(2,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson"))
| |
| 3364 | sphere(3,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson"))
| |
| 3365 | coroutine.resume(coroutine.create(function() | |
| 3366 | for i = 0, 49 do | |
| 3367 | swait(3) | |
| 3368 | sphere(1,"Add",root.CFrame*CFrame.new(math.random(-175,175),math.random(-175,175),math.random(-175,175)),vt(0,0,0),2,BrickColor.new("Really red"))
| |
| 3369 | sphere(1,"Add",root.CFrame*CFrame.new(math.random(-375,375),math.random(-375,375),math.random(-375,375)),vt(0,0,0),8,BrickColor.new("Really red"))
| |
| 3370 | end | |
| 3371 | end)) | |
| 3372 | end)) | |
| 3373 | attack = false | |
| 3374 | hum.WalkSpeed = 30 | |
| 3375 | end | |
| 3376 | function yinyangi() | |
| 3377 | attack = true | |
| 3378 | for i = 0, 2, 0.1 do | |
| 3379 | swait() | |
| 3380 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.2) | |
| 3381 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.2) | |
| 3382 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(75), math.rad(0), math.rad(0)), 0.2) | |
| 3383 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
| 3384 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2) | |
| 3385 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
| 3386 | end | |
| 3387 | local bv = Instance.new("BodyVelocity")
| |
| 3388 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
| 3389 | bv.velocity = root.CFrame.lookVector * 175 | |
| 3390 | bv.Parent = root | |
| 3391 | for Rotations = 0, 9 do | |
| 3392 | for i = 0, 1, 0.5 do | |
| 3393 | swait() | |
| 3394 | bv.velocity = root.CFrame.lookVector * 175 | |
| 3395 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5) | |
| 3396 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.5) | |
| 3397 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.5) | |
| 3398 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5) | |
| 3399 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
| 3400 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
| 3401 | end | |
| 3402 | orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5) | |
| 3403 | for i = 0, 1, 0.5 do | |
| 3404 | swait() | |
| 3405 | bv.velocity = root.CFrame.lookVector * 175 | |
| 3406 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5) | |
| 3407 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.5) | |
| 3408 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(180)), 0.5) | |
| 3409 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5) | |
| 3410 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
| 3411 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
| 3412 | end | |
| 3413 | orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5) | |
| 3414 | for i = 0, 1, 0.5 do | |
| 3415 | swait() | |
| 3416 | bv.velocity = root.CFrame.lookVector * 175 | |
| 3417 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5) | |
| 3418 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.5) | |
| 3419 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(270)), 0.5) | |
| 3420 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5) | |
| 3421 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
| 3422 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
| 3423 | end | |
| 3424 | orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5) | |
| 3425 | for i = 0, 1, 0.5 do | |
| 3426 | swait() | |
| 3427 | bv.velocity = root.CFrame.lookVector * 175 | |
| 3428 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5) | |
| 3429 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.5) | |
| 3430 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(360)), 0.5) | |
| 3431 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5) | |
| 3432 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
| 3433 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
| 3434 | end | |
| 3435 | orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5) | |
| 3436 | end | |
| 3437 | bv:Destroy() | |
| 3438 | attack = false | |
| 3439 | end | |
| 3440 | function Wip() | |
| 3441 | attack = true | |
| 3442 | local rngb = Instance.new("Part", char)
| |
| 3443 | rngb.Anchored = true | |
| 3444 | rngb.BrickColor = origcolor | |
| 3445 | rngb.CanCollide = false | |
| 3446 | rngb.FormFactor = 3 | |
| 3447 | rngb.Name = "Ring" | |
| 3448 | rngb.Material = "Neon" | |
| 3449 | rngb.Size = Vector3.new(1, 0.05, 1) | |
| 3450 | rngb.Transparency = 1 | |
| 3451 | rngb.TopSurface = 0 | |
| 3452 | rngb.BottomSurface = 0 | |
| 3453 | local rngmb = Instance.new("SpecialMesh", rngb)
| |
| 3454 | rngmb.MeshType = "Brick" | |
| 3455 | rngmb.Name = "SizeMesh" | |
| 3456 | rngmb.Scale = vt(0, 1, 0) | |
| 3457 | local orb = rngb:Clone() | |
| 3458 | orb.Parent = char | |
| 3459 | orb.Transparency = 0 | |
| 3460 | orb.BrickColor = BrickColor.new("White")
| |
| 3461 | orb.Size = vt(1, 1, 1) | |
| 3462 | local orbmish = orb.SizeMesh | |
| 3463 | orbmish.Scale = vt(0, 0, 0) | |
| 3464 | orbmish.MeshType = "Sphere" | |
| 3465 | local orbe = rngb:Clone() | |
| 3466 | orbe.Parent = char | |
| 3467 | orbe.Transparency = 0.5 | |
| 3468 | orbe.BrickColor = BrickColor.new("New Yeller")
| |
| 3469 | orbe.Size = vt(1, 1, 1) | |
| 3470 | local orbmish2 = orbe.SizeMesh | |
| 3471 | orbmish2.Scale = vt(0, 0, 0) | |
| 3472 | orbmish2.MeshType = "Sphere" | |
| 3473 | orbe.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 3474 | rngb:Destroy() | |
| 3475 | for i = 0, 5, 0.1 do | |
| 3476 | swait() | |
| 3477 | if rainbowmode == true then | |
| 3478 | orbe.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 3479 | end | |
| 3480 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5 | |
| 3481 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5 | |
| 3482 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3) | |
| 3483 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3) | |
| 3484 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
| 3485 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
| 3486 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-0.5), math.rad(0), math.rad(0)), 0.3) | |
| 3487 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(10), math.rad(0)), 0.3) | |
| 3488 | RootPart.CFrame = FaceMouse()[1] | |
| 3489 | end | |
| 3490 | orbe.Transparency = 1 | |
| 3491 | orb.Transparency = 1 | |
| 3492 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5 | |
| 3493 | CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
| |
| 3494 | local a = Instance.new("Part", Character)
| |
| 3495 | a.Name = "Direction" | |
| 3496 | a.Anchored = true | |
| 3497 | a.BrickColor = bc("White")
| |
| 3498 | a.Material = "Neon" | |
| 3499 | a.Transparency = 0 | |
| 3500 | a.Shape = "Cylinder" | |
| 3501 | a.CanCollide = false | |
| 3502 | local a2 = Instance.new("Part", Character)
| |
| 3503 | a2.Name = "Direction" | |
| 3504 | a2.Anchored = true | |
| 3505 | a2.BrickColor = bc("New Yeller")
| |
| 3506 | a2.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 3507 | a2.Material = "Neon" | |
| 3508 | a2.Transparency = 0.5 | |
| 3509 | a2.Shape = "Cylinder" | |
| 3510 | a2.CanCollide = false | |
| 3511 | local ba = Instance.new("Part", Character)
| |
| 3512 | ba.Name = "HitDirect" | |
| 3513 | ba.Anchored = true | |
| 3514 | ba.BrickColor = bc("Really black")
| |
| 3515 | ba.Material = "Neon" | |
| 3516 | ba.Transparency = 1 | |
| 3517 | ba.CanCollide = false | |
| 3518 | local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
| 3519 | local ignore = Character | |
| 3520 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 3521 | a.BottomSurface = 10 | |
| 3522 | a.TopSurface = 10 | |
| 3523 | a2.BottomSurface = 10 | |
| 3524 | a2.TopSurface = 10 | |
| 3525 | local distance = (orb.CFrame.p - position).magnitude | |
| 3526 | a.Size = Vector3.new(distance, 1, 1) | |
| 3527 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 3528 | a2.Size = Vector3.new(distance, 1, 1) | |
| 3529 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 3530 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 3531 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 3532 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 3533 | game:GetService("Debris"):AddItem(a, 20)
| |
| 3534 | game:GetService("Debris"):AddItem(a2, 20)
| |
| 3535 | game:GetService("Debris"):AddItem(ba, 20)
| |
| 3536 | local msh = Instance.new("SpecialMesh", a)
| |
| 3537 | msh.MeshType = "Cylinder" | |
| 3538 | msh.Scale = vt(1, 25, 25) | |
| 3539 | local msh2 = Instance.new("SpecialMesh", a2)
| |
| 3540 | msh2.MeshType = "Cylinder" | |
| 3541 | msh2.Scale = vt(1, 30, 30) | |
| 3542 | for i = 0, 10, 0.1 do | |
| 3543 | swait() | |
| 3544 | CameraEnshaking(1, 5) | |
| 3545 | a2.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 3546 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
| 3547 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
| 3548 | ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
| 3549 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 3550 | distance = (orb.CFrame.p - position).magnitude | |
| 3551 | if typrot == 1 then | |
| 3552 | rotation = rotation + 2.5 | |
| 3553 | elseif typrot == 2 then | |
| 3554 | rotation = rotation - 2.5 | |
| 3555 | end | |
| 3556 | RootPart.CFrame = FaceMouse()[1] | |
| 3557 | a.Size = Vector3.new(distance, 1, 1) | |
| 3558 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 3559 | a2.Size = Vector3.new(distance, 1, 1) | |
| 3560 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 3561 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 3562 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 3563 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 3564 | msh.Scale = msh.Scale - vt(0, 0.25, 0.25) | |
| 3565 | msh2.Scale = msh2.Scale - vt(0, 0.3, 0.3) | |
| 3566 | sphereMK(5, 1.5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 15, 15, 25, -0.15, MAINRUINCOLOR, 0) | |
| 3567 | sphereMK(5, 1.5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 15, 15, 25, -0.15, MAINRUINCOLOR, 0) | |
| 3568 | MagniDamage(ba, 30, 500, 60000, 0, "Normal") | |
| 3569 | end | |
| 3570 | a:Destroy() | |
| 3571 | a2:Destroy() | |
| 3572 | ba:Destroy() | |
| 3573 | orb:Destroy() | |
| 3574 | orbe:Destroy() | |
| 3575 | attack = false | |
| 3576 | end | |
| 3577 | function UniversalSpark() | |
| 3578 | attack = true | |
| 3579 | local rngb = Instance.new("Part", char)
| |
| 3580 | rngb.Anchored = true | |
| 3581 | rngb.BrickColor = origcolor | |
| 3582 | rngb.CanCollide = false | |
| 3583 | rngb.FormFactor = 3 | |
| 3584 | rngb.Name = "Ring" | |
| 3585 | rngb.Material = "Neon" | |
| 3586 | rngb.Size = Vector3.new(1, 0.05, 1) | |
| 3587 | rngb.Transparency = 1 | |
| 3588 | rngb.TopSurface = 0 | |
| 3589 | rngb.BottomSurface = 0 | |
| 3590 | local rngmb = Instance.new("SpecialMesh", rngb)
| |
| 3591 | rngmb.MeshType = "Brick" | |
| 3592 | rngmb.Name = "SizeMesh" | |
| 3593 | rngmb.Scale = vt(0, 1, 0) | |
| 3594 | local orb = rngb:Clone() | |
| 3595 | orb.Parent = char | |
| 3596 | orb.Transparency = 0 | |
| 3597 | orb.BrickColor = BrickColor.new("White")
| |
| 3598 | orb.Size = vt(1, 1, 1) | |
| 3599 | local orbmish = orb.SizeMesh | |
| 3600 | orbmish.Scale = vt(0, 0, 0) | |
| 3601 | orbmish.MeshType = "Sphere" | |
| 3602 | local orbe = rngb:Clone() | |
| 3603 | orbe.Parent = char | |
| 3604 | orbe.Transparency = 0.5 | |
| 3605 | orbe.BrickColor = BrickColor.new("New Yeller")
| |
| 3606 | orbe.Size = vt(1, 1, 1) | |
| 3607 | local orbmish2 = orbe.SizeMesh | |
| 3608 | orbmish2.Scale = vt(0, 0, 0) | |
| 3609 | orbmish2.MeshType = "Sphere" | |
| 3610 | orbe.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 3611 | rngb:Destroy() | |
| 3612 | for i = 0, 5, 0.1 do | |
| 3613 | swait() | |
| 3614 | if rainbowmode == true then | |
| 3615 | orbe.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 3616 | end | |
| 3617 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5 | |
| 3618 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5 | |
| 3619 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3) | |
| 3620 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3) | |
| 3621 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
| 3622 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
| 3623 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-0.5), math.rad(0), math.rad(0)), 0.3) | |
| 3624 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(10), math.rad(0)), 0.3) | |
| 3625 | RootPart.CFrame = FaceMouse()[1] | |
| 3626 | end | |
| 3627 | orbe.Transparency = 1 | |
| 3628 | orb.Transparency = 1 | |
| 3629 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5 | |
| 3630 | CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
| |
| 3631 | CFuncs.Sound.Create("rbxassetid://741272936", char, 0.75, 1)
| |
| 3632 | CFuncs.Sound.Create("rbxassetid://1192402877", char, 1, 1)
| |
| 3633 | CFuncs.Sound.Create("rbxassetid://1208650519", char, 0.75, 1)
| |
| 3634 | CFuncs.Sound.Create("rbxassetid://164881112", char, 0.75, 1)
| |
| 3635 | CFuncs.Sound.Create("rbxassetid://429123896", char, 1, 0.85)
| |
| 3636 | CFuncs.Sound.Create("rbxassetid://164178927", char, 1, 1)
| |
| 3637 | local xd = Instance.new("Sound", char)
| |
| 3638 | xd.SoundId = "rbxassetid://445796828" | |
| 3639 | xd.Pitch = 0.75 | |
| 3640 | xd.Looped = true | |
| 3641 | xd.Volume = 1.25 | |
| 3642 | xd:Play() | |
| 3643 | local a = Instance.new("Part", Character)
| |
| 3644 | a.Name = "Direction" | |
| 3645 | a.Anchored = true | |
| 3646 | a.BrickColor = bc("Alder")
| |
| 3647 | a.Color = MAINRUINCOLOR.Color | |
| 3648 | a.Material = "Neon" | |
| 3649 | a.Transparency = 0.5 | |
| 3650 | a.Shape = "Cylinder" | |
| 3651 | a.CanCollide = false | |
| 3652 | local a2 = Instance.new("Part", Character)
| |
| 3653 | a2.Name = "Direction" | |
| 3654 | a2.Anchored = true | |
| 3655 | a2.BrickColor = bc("New Yeller")
| |
| 3656 | a2.Color = MAINRUINCOLOR.Color | |
| 3657 | a2.Material = "Neon" | |
| 3658 | a2.Transparency = 0.5 | |
| 3659 | a2.Shape = "Cylinder" | |
| 3660 | a2.CanCollide = false | |
| 3661 | local ba = Instance.new("Part", Character)
| |
| 3662 | ba.Name = "HitDirect" | |
| 3663 | ba.Anchored = true | |
| 3664 | ba.BrickColor = bc("Really black")
| |
| 3665 | ba.Material = "Neon" | |
| 3666 | ba.Transparency = 1 | |
| 3667 | ba.CanCollide = false | |
| 3668 | local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
| 3669 | local ignore = Character | |
| 3670 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 3671 | a.BottomSurface = 10 | |
| 3672 | a.TopSurface = 10 | |
| 3673 | a2.BottomSurface = 10 | |
| 3674 | a2.TopSurface = 10 | |
| 3675 | local distance = (orb.CFrame.p - position).magnitude | |
| 3676 | a.Size = Vector3.new(distance, 1, 1) | |
| 3677 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 3678 | a2.Size = Vector3.new(distance, 1, 1) | |
| 3679 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 3680 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 3681 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 3682 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 3683 | game:GetService("Debris"):AddItem(a, 60)
| |
| 3684 | game:GetService("Debris"):AddItem(a2, 60)
| |
| 3685 | game:GetService("Debris"):AddItem(ba, 60)
| |
| 3686 | local outerscale = 0 | |
| 3687 | local msh = Instance.new("SpecialMesh", a)
| |
| 3688 | msh.MeshType = "Cylinder" | |
| 3689 | msh.Scale = vt(1, 0, 0) | |
| 3690 | local msh2 = Instance.new("SpecialMesh", a2)
| |
| 3691 | msh2.MeshType = "Cylinder" | |
| 3692 | msh2.Scale = vt(1, 0, 0) | |
| 3693 | for i = 0, 2, 0.1 do | |
| 3694 | swait() | |
| 3695 | CameraEnshaking(1, 1) | |
| 3696 | msh2.Scale = msh2.Scale + vt(0, outerscale * 20, outerscale * 20) | |
| 3697 | msh.Scale = msh.Scale + vt(0, outerscale * 15, outerscale * 15) | |
| 3698 | outerscale = outerscale - 0.015 | |
| 3699 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
| 3700 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
| 3701 | ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
| 3702 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 3703 | distance = (orb.CFrame.p - position).magnitude | |
| 3704 | if typrot == 1 then | |
| 3705 | rotation = rotation + 2.5 | |
| 3706 | elseif typrot == 2 then | |
| 3707 | rotation = rotation - 2.5 | |
| 3708 | end | |
| 3709 | RootPart.CFrame = FaceMouse()[1] | |
| 3710 | a.Size = Vector3.new(distance, 1, 1) | |
| 3711 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 3712 | a2.Size = Vector3.new(distance, 1, 1) | |
| 3713 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 3714 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 3715 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 3716 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 3717 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
| 3718 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
| 3719 | MagniDamage(ba, 100, 500, 60000, 0, "Normal") | |
| 3720 | end | |
| 3721 | for z = 0, 2 do | |
| 3722 | for i = 0, 4, 0.1 do | |
| 3723 | swait() | |
| 3724 | CameraEnshaking(1, 1) | |
| 3725 | msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale) | |
| 3726 | msh.Scale = msh.Scale - vt(0, outerscale, outerscale) | |
| 3727 | outerscale = outerscale + 0.015 | |
| 3728 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
| 3729 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
| 3730 | ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
| 3731 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 3732 | distance = (orb.CFrame.p - position).magnitude | |
| 3733 | if typrot == 1 then | |
| 3734 | rotation = rotation + 2.5 | |
| 3735 | elseif typrot == 2 then | |
| 3736 | rotation = rotation - 2.5 | |
| 3737 | end | |
| 3738 | RootPart.CFrame = FaceMouse()[1] | |
| 3739 | a.Size = Vector3.new(distance, 1, 1) | |
| 3740 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 3741 | a2.Size = Vector3.new(distance, 1, 1) | |
| 3742 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 3743 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 3744 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 3745 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 3746 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
| 3747 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
| 3748 | MagniDamage(ba, 100, 500, 60000, 0, "Normal") | |
| 3749 | end | |
| 3750 | for i = 0, 4, 0.1 do | |
| 3751 | swait() | |
| 3752 | CameraEnshaking(1, 1) | |
| 3753 | msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale) | |
| 3754 | msh.Scale = msh.Scale - vt(0, outerscale, outerscale) | |
| 3755 | outerscale = outerscale - 0.015 | |
| 3756 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
| 3757 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
| 3758 | ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
| 3759 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 3760 | distance = (orb.CFrame.p - position).magnitude | |
| 3761 | if typrot == 1 then | |
| 3762 | rotation = rotation + 2.5 | |
| 3763 | elseif typrot == 2 then | |
| 3764 | rotation = rotation - 2.5 | |
| 3765 | end | |
| 3766 | RootPart.CFrame = FaceMouse()[1] | |
| 3767 | a.Size = Vector3.new(distance, 1, 1) | |
| 3768 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 3769 | a2.Size = Vector3.new(distance, 1, 1) | |
| 3770 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 3771 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 3772 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 3773 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 3774 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
| 3775 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
| 3776 | MagniDamage(ba, 100, 500, 60000, 0, "Normal") | |
| 3777 | end | |
| 3778 | end | |
| 3779 | for i = 0, 4, 0.1 do | |
| 3780 | swait() | |
| 3781 | CameraEnshaking(1, 1) | |
| 3782 | msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale) | |
| 3783 | msh.Scale = msh.Scale - vt(0, outerscale, outerscale) | |
| 3784 | xd.Volume = xd.Volume - 0.025 | |
| 3785 | a.Transparency = a.Transparency + 0.025 | |
| 3786 | a2.Transparency = a2.Transparency + 0.025 | |
| 3787 | outerscale = outerscale - 0.015 | |
| 3788 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
| 3789 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
| 3790 | ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
| 3791 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 3792 | distance = (orb.CFrame.p - position).magnitude | |
| 3793 | if typrot == 1 then | |
| 3794 | rotation = rotation + 2.5 | |
| 3795 | elseif typrot == 2 then | |
| 3796 | rotation = rotation - 2.5 | |
| 3797 | end | |
| 3798 | RootPart.CFrame = FaceMouse()[1] | |
| 3799 | a.Size = Vector3.new(distance, 1, 1) | |
| 3800 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 3801 | a2.Size = Vector3.new(distance, 1, 1) | |
| 3802 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 3803 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 3804 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 3805 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 3806 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
| 3807 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
| 3808 | MagniDamage(ba, 100, 500, 60000, 0, "Normal") | |
| 3809 | end | |
| 3810 | xd:Destroy() | |
| 3811 | a:Destroy() | |
| 3812 | a2:Destroy() | |
| 3813 | ba:Destroy() | |
| 3814 | orb:Destroy() | |
| 3815 | orbe:Destroy() | |
| 3816 | attack = false | |
| 3817 | end | |
| 3818 | function resetmode() | |
| 3819 | rainbowmode = false | |
| 3820 | chaosmode = false | |
| 3821 | RecolorTextAndRename("Singularity", Color3.new(0, 0, 0), Color3.new(1, 0, 0))
| |
| 3822 | ModeOfGlitch = 1 | |
| 3823 | storehumanoidWS = 16 | |
| 3824 | for i, v in pairs(mw2:GetChildren()) do | |
| 3825 | if v:IsA("Part") then
| |
| 3826 | v.BrickColor = BrickColor.new("Really red")
| |
| 3827 | v.Material = "Neon" | |
| 3828 | end | |
| 3829 | end | |
| 3830 | for i, v in pairs(mw1:GetChildren()) do | |
| 3831 | if v:IsA("Part") then
| |
| 3832 | v.Transparency = 1 | |
| 3833 | v.BrickColor = BrickColor.new("Really red")
| |
| 3834 | v.Material = "Neon" | |
| 3835 | end | |
| 3836 | end | |
| 3837 | MAINRUINCOLOR = BrickColor.new("Really red")
| |
| 3838 | hum.WalkSpeed = 16 | |
| 3839 | newTheme("rbxassetid://415898123", 0, 1, 10)
| |
| 3840 | for i, v in pairs(m:GetChildren()) do | |
| 3841 | if v:IsA("Part") then
| |
| 3842 | v.BrickColor = BrickColor.new("Really black")
| |
| 3843 | v.Material = "Glass" | |
| 3844 | end | |
| 3845 | end | |
| 3846 | for i, v in pairs(m2:GetChildren()) do | |
| 3847 | if v:IsA("Part") then
| |
| 3848 | v.BrickColor = BrickColor.new("Crimson")
| |
| 3849 | v.Material = "Granite" | |
| 3850 | end | |
| 3851 | end | |
| 3852 | for i, v in pairs(m3:GetChildren()) do | |
| 3853 | if v:IsA("Part") then
| |
| 3854 | v.BrickColor = BrickColor.new("Really red")
| |
| 3855 | v.Material = "Neon" | |
| 3856 | end | |
| 3857 | end | |
| 3858 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 3859 | if v:IsA("Part") then
| |
| 3860 | v.Transparency = 1 | |
| 3861 | v.BrickColor = BrickColor.new("White")
| |
| 3862 | v.Material = "Neon" | |
| 3863 | end | |
| 3864 | end | |
| 3865 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 3866 | if v:IsA("Part") then
| |
| 3867 | v.Transparency = 1 | |
| 3868 | v.BrickColor = BrickColor.new("White")
| |
| 3869 | v.Material = "Neon" | |
| 3870 | end | |
| 3871 | end | |
| 3872 | end | |
| 3873 | function attackone() | |
| 3874 | attack = true | |
| 3875 | for i = 0, 1, 0.1 do | |
| 3876 | swait() | |
| 3877 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.2) | |
| 3878 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40)), 0.2) | |
| 3879 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2) | |
| 3880 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2) | |
| 3881 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), -0.75) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(20)), 0.2) | |
| 3882 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(10)), 0.2) | |
| 3883 | end | |
| 3884 | CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1.1)
| |
| 3885 | local hitb = Instance.new("Part", char)
| |
| 3886 | hitb.Anchored = true | |
| 3887 | hitb.CanCollide = false | |
| 3888 | hitb.FormFactor = 3 | |
| 3889 | hitb.Name = "Ring" | |
| 3890 | hitb.Material = "Neon" | |
| 3891 | hitb.Size = Vector3.new(1, 1, 1) | |
| 3892 | hitb.Transparency = 1 | |
| 3893 | hitb.TopSurface = 0 | |
| 3894 | hitb.BottomSurface = 0 | |
| 3895 | hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2 | |
| 3896 | MagniDamage(hitb, 3, 10, 30, 0, "Normal") | |
| 3897 | hitb:Destroy() | |
| 3898 | for i = 0, 1, 0.1 do | |
| 3899 | swait() | |
| 3900 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(70)), 0.4) | |
| 3901 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-70)), 0.4) | |
| 3902 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4) | |
| 3903 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4) | |
| 3904 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), -0.75) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-40)), 0.4) | |
| 3905 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-10)), 0.4) | |
| 3906 | end | |
| 3907 | attack = false | |
| 3908 | end | |
| 3909 | function attacktwo() | |
| 3910 | attack = true | |
| 3911 | for i = 0, 1, 0.1 do | |
| 3912 | swait() | |
| 3913 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.2) | |
| 3914 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2) | |
| 3915 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2) | |
| 3916 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2) | |
| 3917 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), -0.75) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(20)), 0.2) | |
| 3918 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(10)), 0.2) | |
| 3919 | end | |
| 3920 | CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1)
| |
| 3921 | local hitb = Instance.new("Part", char)
| |
| 3922 | hitb.Anchored = true | |
| 3923 | hitb.CanCollide = false | |
| 3924 | hitb.FormFactor = 3 | |
| 3925 | hitb.Name = "Ring" | |
| 3926 | hitb.Material = "Neon" | |
| 3927 | hitb.Size = Vector3.new(1, 1, 1) | |
| 3928 | hitb.Transparency = 1 | |
| 3929 | hitb.TopSurface = 0 | |
| 3930 | hitb.BottomSurface = 0 | |
| 3931 | hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2 | |
| 3932 | MagniDamage(hitb, 3, 10, 30, 0, "Normal") | |
| 3933 | hitb:Destroy() | |
| 3934 | for i = 0, 1, 0.1 do | |
| 3935 | swait() | |
| 3936 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-70)), 0.4) | |
| 3937 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(70)), 0.4) | |
| 3938 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4) | |
| 3939 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4) | |
| 3940 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-40)), 0.4) | |
| 3941 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-10)), 0.4) | |
| 3942 | end | |
| 3943 | attack = false | |
| 3944 | end | |
| 3945 | function attackthree() | |
| 3946 | attack = true | |
| 3947 | for i = 0, 1, 0.1 do | |
| 3948 | swait() | |
| 3949 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3) | |
| 3950 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3) | |
| 3951 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3) | |
| 3952 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
| 3953 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-0.5), math.rad(0), math.rad(0)), 0.3) | |
| 3954 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(10), math.rad(0)), 0.3) | |
| 3955 | end | |
| 3956 | local distlook = 5 | |
| 3957 | for i = 0, 4 do | |
| 3958 | swait(2) | |
| 3959 | CameraEnshaking(2, 3) | |
| 3960 | local hite = Instance.new("Part", char)
| |
| 3961 | hite.Anchored = true | |
| 3962 | hite.CanCollide = false | |
| 3963 | hite.FormFactor = 3 | |
| 3964 | hite.Name = "Ring" | |
| 3965 | hite.Material = "Neon" | |
| 3966 | hite.Size = Vector3.new(1, 1, 1) | |
| 3967 | hite.Transparency = 1 | |
| 3968 | hite.TopSurface = 0 | |
| 3969 | hite.BottomSurface = 0 | |
| 3970 | hite.CFrame = root.CFrame + root.CFrame.lookVector * distlook | |
| 3971 | sphere(3, "Add", hite.CFrame, vt(0, 0, 0), 0.15, MAINRUINCOLOR) | |
| 3972 | sphere(6, "Add", hite.CFrame, vt(0, 0, 0), 0.3, MAINRUINCOLOR) | |
| 3973 | MagniDamage(hite, 10, 15, 35, 0, "Normal") | |
| 3974 | for i = 0, 2 do | |
| 3975 | sphereMK(2, 0.2, "Add", rarm.CFrame * CFrame.Angles(math.rad(-90 + math.random(-20, 20)), math.rad(math.random(-20, 20)), math.rad(math.random(-20, 20))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0) | |
| 3976 | sphereMK(3, 0.2, "Add", hite.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0) | |
| 3977 | sphereMK(6, 0.35, "Add", hite.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0) | |
| 3978 | end | |
| 3979 | CFuncs.Sound.Create("rbxassetid://183763506", hite, 2.5, 1)
| |
| 3980 | CFuncs.Sound.Create("rbxassetid://178452221", hite, 0.25, 0.6)
| |
| 3981 | game:GetService("Debris"):AddItem(hite, 5)
| |
| 3982 | distlook = distlook + 10 | |
| 3983 | end | |
| 3984 | attack = false | |
| 3985 | end | |
| 3986 | local attacktype = 1 | |
| 3987 | mouse.Button1Down:connect(function() | |
| 3988 | if attack == false and attacktype == 1 then | |
| 3989 | attacktype = 2 | |
| 3990 | attackone() | |
| 3991 | elseif attack == false and attacktype == 2 then | |
| 3992 | attacktype = 3 | |
| 3993 | attacktwo() | |
| 3994 | elseif attack == false and attacktype == 3 then | |
| 3995 | attacktype = 1 | |
| 3996 | attackthree() | |
| 3997 | elseif attack == false and attacktype == 4 then | |
| 3998 | attacktype = 1 | |
| 3999 | end | |
| 4000 | end) | |
| 4001 | mouse.KeyDown:connect(function(k) | |
| 4002 | if k == "q" and attack == false and ModeOfGlitch ~= 2 then | |
| 4003 | ModeOfGlitch = 2 | |
| 4004 | storehumanoidWS = 16 | |
| 4005 | hum.WalkSpeed = 16 | |
| 4006 | rainbowmode = false | |
| 4007 | chaosmode = false | |
| 4008 | RecolorTextAndRename("Purity", Color3.new(1, 1, 1), Color3.new(0, 1, 1))
| |
| 4009 | newTheme("rbxassetid://1119453744", 20.25, 1, 1)
| |
| 4010 | MAINRUINCOLOR = BrickColor.new("Toothpaste")
| |
| 4011 | for i, v in pairs(mw2:GetChildren()) do | |
| 4012 | if v:IsA("Part") then
| |
| 4013 | v.BrickColor = MAINRUINCOLOR | |
| 4014 | v.Material = "Neon" | |
| 4015 | end | |
| 4016 | end | |
| 4017 | for i, v in pairs(mw1:GetChildren()) do | |
| 4018 | if v:IsA("Part") then
| |
| 4019 | v.Transparency = 1 | |
| 4020 | v.BrickColor = MAINRUINCOLOR | |
| 4021 | v.Material = "Neon" | |
| 4022 | end | |
| 4023 | end | |
| 4024 | for i, v in pairs(m:GetChildren()) do | |
| 4025 | if v:IsA("Part") then
| |
| 4026 | v.BrickColor = BrickColor.new("White")
| |
| 4027 | v.Material = "Ice" | |
| 4028 | end | |
| 4029 | end | |
| 4030 | for i, v in pairs(m2:GetChildren()) do | |
| 4031 | if v:IsA("Part") then
| |
| 4032 | v.BrickColor = BrickColor.new("Pastel light blue")
| |
| 4033 | v.Material = "Glass" | |
| 4034 | end | |
| 4035 | end | |
| 4036 | for i, v in pairs(m3:GetChildren()) do | |
| 4037 | if v:IsA("Part") then
| |
| 4038 | v.BrickColor = BrickColor.new("Toothpaste")
| |
| 4039 | v.Material = "Neon" | |
| 4040 | end | |
| 4041 | end | |
| 4042 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 4043 | if v:IsA("Part") then
| |
| 4044 | v.Transparency = 1 | |
| 4045 | v.BrickColor = BrickColor.new("White")
| |
| 4046 | v.Material = "Neon" | |
| 4047 | end | |
| 4048 | end | |
| 4049 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 4050 | if v:IsA("Part") then
| |
| 4051 | v.Transparency = 1 | |
| 4052 | v.BrickColor = BrickColor.new("White")
| |
| 4053 | v.Material = "Neon" | |
| 4054 | end | |
| 4055 | end | |
| 4056 | elseif k == "q" and attack == false and ModeOfGlitch == 2 then | |
| 4057 | resetmode() | |
| 4058 | end | |
| 4059 | if k == "e" and attack == false and ModeOfGlitch ~= 3 then | |
| 4060 | ModeOfGlitch = 3 | |
| 4061 | storehumanoidWS = 16 | |
| 4062 | hum.WalkSpeed = 16 | |
| 4063 | rainbowmode = false | |
| 4064 | chaosmode = false | |
| 4065 | RecolorTextAndRename("Corruption", Color3.new(0, 0, 0), Color3.new(0.35, 0, 1))
| |
| 4066 | newTheme("rbxassetid://1509634377", 58.15, 1,2)
| |
| 4067 | MAINRUINCOLOR = BrickColor.new("Royal purple")
| |
| 4068 | for i, v in pairs(mw2:GetChildren()) do | |
| 4069 | if v:IsA("Part") then
| |
| 4070 | v.BrickColor = MAINRUINCOLOR | |
| 4071 | v.Material = "Neon" | |
| 4072 | end | |
| 4073 | end | |
| 4074 | for i, v in pairs(mw1:GetChildren()) do | |
| 4075 | if v:IsA("Part") then
| |
| 4076 | v.Transparency = 1 | |
| 4077 | v.BrickColor = MAINRUINCOLOR | |
| 4078 | v.Material = "Neon" | |
| 4079 | end | |
| 4080 | end | |
| 4081 | for i, v in pairs(m:GetChildren()) do | |
| 4082 | if v:IsA("Part") then
| |
| 4083 | v.BrickColor = BrickColor.new("Black")
| |
| 4084 | v.Material = "Ice" | |
| 4085 | end | |
| 4086 | end | |
| 4087 | for i, v in pairs(m2:GetChildren()) do | |
| 4088 | if v:IsA("Part") then
| |
| 4089 | v.BrickColor = BrickColor.new("Dark indigo")
| |
| 4090 | v.Material = "Glass" | |
| 4091 | end | |
| 4092 | end | |
| 4093 | for i, v in pairs(m3:GetChildren()) do | |
| 4094 | if v:IsA("Part") then
| |
| 4095 | v.BrickColor = BrickColor.new("Royal purple")
| |
| 4096 | v.Material = "Neon" | |
| 4097 | end | |
| 4098 | end | |
| 4099 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 4100 | if v:IsA("Part") then
| |
| 4101 | v.Transparency = 1 | |
| 4102 | v.BrickColor = BrickColor.new("White")
| |
| 4103 | v.Material = "Neon" | |
| 4104 | end | |
| 4105 | end | |
| 4106 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 4107 | if v:IsA("Part") then
| |
| 4108 | v.Transparency = 1 | |
| 4109 | v.BrickColor = BrickColor.new("White")
| |
| 4110 | v.Material = "Neon" | |
| 4111 | end | |
| 4112 | end | |
| 4113 | elseif k == "e" and attack == false and ModeOfGlitch == 3 then | |
| 4114 | resetmode() | |
| 4115 | end | |
| 4116 | if k == "r" and attack == false and ModeOfGlitch ~= 4 then | |
| 4117 | ModeOfGlitch = 4 | |
| 4118 | storehumanoidWS = 16 | |
| 4119 | hum.WalkSpeed = 16 | |
| 4120 | rainbowmode = false | |
| 4121 | chaosmode = true | |
| 4122 | RecolorTextAndRename("HATRED", Color3.new(0, 0, 0), BrickColor.random().Color)
| |
| 4123 | newTheme("rbxassetid://415898123", 0, 1, 10)
| |
| 4124 | MAINRUINCOLOR = BrickColor.new("Black")
| |
| 4125 | for i, v in pairs(mw2:GetChildren()) do | |
| 4126 | if v:IsA("Part") then
| |
| 4127 | v.BrickColor = MAINRUINCOLOR | |
| 4128 | v.Material = "Neon" | |
| 4129 | end | |
| 4130 | end | |
| 4131 | for i, v in pairs(mw1:GetChildren()) do | |
| 4132 | if v:IsA("Part") then
| |
| 4133 | v.Transparency = 0.75 | |
| 4134 | v.BrickColor = BrickColor.random() | |
| 4135 | v.Material = "Neon" | |
| 4136 | end | |
| 4137 | end | |
| 4138 | for i, v in pairs(m:GetChildren()) do | |
| 4139 | if v:IsA("Part") then
| |
| 4140 | v.BrickColor = BrickColor.new("Black")
| |
| 4141 | v.Material = "Neon" | |
| 4142 | end | |
| 4143 | end | |
| 4144 | for i, v in pairs(m2:GetChildren()) do | |
| 4145 | if v:IsA("Part") then
| |
| 4146 | v.BrickColor = BrickColor.random() | |
| 4147 | v.Material = "Neon" | |
| 4148 | end | |
| 4149 | end | |
| 4150 | for i, v in pairs(m3:GetChildren()) do | |
| 4151 | if v:IsA("Part") then
| |
| 4152 | v.BrickColor = BrickColor.new("Black")
| |
| 4153 | v.Material = "Neon" | |
| 4154 | end | |
| 4155 | end | |
| 4156 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 4157 | if v:IsA("Part") then
| |
| 4158 | v.Transparency = 1 | |
| 4159 | v.BrickColor = BrickColor.new("White")
| |
| 4160 | v.Material = "Neon" | |
| 4161 | end | |
| 4162 | end | |
| 4163 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 4164 | if v:IsA("Part") then
| |
| 4165 | v.Transparency = 1 | |
| 4166 | v.BrickColor = BrickColor.new("White")
| |
| 4167 | v.Material = "Neon" | |
| 4168 | end | |
| 4169 | end | |
| 4170 | elseif k == "r" and attack == false and ModeOfGlitch == 4 then | |
| 4171 | resetmode() | |
| 4172 | end | |
| 4173 | if k == "t" and attack == false and ModeOfGlitch ~= 5 then | |
| 4174 | ModeOfGlitch = 5 | |
| 4175 | ||
| 4176 | storehumanoidWS = 16 | |
| 4177 | hum.WalkSpeed = 16 | |
| 4178 | rainbowmode = false | |
| 4179 | chaosmode = false | |
| 4180 | RecolorTextAndRename("Solitude", Color3.new(0, 0, 0), Color3.new(255, 255, 255))
| |
| 4181 | newTheme("rbxassetid://723652641", 10, 1, 3.2)
| |
| 4182 | ModeOfGlitch = 1 | |
| 4183 | MAINRUINCOLOR = BrickColor.new("Really black")
| |
| 4184 | for i, v in pairs(mw2:GetChildren()) do | |
| 4185 | if v:IsA("Part") then
| |
| 4186 | v.BrickColor = MAINRUINCOLOR | |
| 4187 | v.Material = "Neon" | |
| 4188 | end | |
| 4189 | end | |
| 4190 | for i, v in pairs(mw1:GetChildren()) do | |
| 4191 | if v:IsA("Part") then
| |
| 4192 | v.Transparency = 0 | |
| 4193 | v.BrickColor = MAINRUINCOLOR | |
| 4194 | v.Material = "Neon" | |
| 4195 | end | |
| 4196 | end | |
| 4197 | for i, v in pairs(m:GetChildren()) do | |
| 4198 | if v:IsA("Part") then
| |
| 4199 | v.BrickColor = BrickColor.new("Really black")
| |
| 4200 | v.Material = "Ice" | |
| 4201 | end | |
| 4202 | end | |
| 4203 | for i, v in pairs(m2:GetChildren()) do | |
| 4204 | if v:IsA("Part") then
| |
| 4205 | v.BrickColor = BrickColor.new("Really black")
| |
| 4206 | v.Material = "Ice" | |
| 4207 | end | |
| 4208 | end | |
| 4209 | for i, v in pairs(m3:GetChildren()) do | |
| 4210 | if v:IsA("Part") then
| |
| 4211 | v.BrickColor = BrickColor.new("Really black")
| |
| 4212 | v.Material = "Neon" | |
| 4213 | end | |
| 4214 | end | |
| 4215 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 4216 | if v:IsA("Part") then
| |
| 4217 | v.Transparency = 1 | |
| 4218 | v.BrickColor = BrickColor.new("White")
| |
| 4219 | v.Material = "Neon" | |
| 4220 | end | |
| 4221 | end | |
| 4222 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 4223 | if v:IsA("Part") then
| |
| 4224 | v.Transparency = 1 | |
| 4225 | v.BrickColor = BrickColor.new("White")
| |
| 4226 | v.Material = "Neon" | |
| 4227 | end | |
| 4228 | end | |
| 4229 | elseif k == "t" and attack == false and ModeOfGlitch == 5 then | |
| 4230 | resetmode() | |
| 4231 | end | |
| 4232 | if k == "y" and attack == false and ModeOfGlitch ~= 6 then | |
| 4233 | ModeOfGlitch = 6 | |
| 4234 | storehumanoidWS = 75 | |
| 4235 | hum.WalkSpeed = 75 | |
| 4236 | rainbowmode = false | |
| 4237 | chaosmode = false | |
| 4238 | RecolorTextAndRename("Equality", Color3.new(0, 0, 0), Color3.new(1, 1, 1))
| |
| 4239 | newTheme("rbxassetid://519067542", 0, 1, 1)
| |
| 4240 | MAINRUINCOLOR = BrickColor.new("Really black")
| |
| 4241 | for i, v in pairs(mw2:GetChildren()) do | |
| 4242 | if v:IsA("Part") then
| |
| 4243 | v.BrickColor = BrickColor.new("White")
| |
| 4244 | v.Material = "Neon" | |
| 4245 | end | |
| 4246 | end | |
| 4247 | for i, v in pairs(mw1:GetChildren()) do | |
| 4248 | if v:IsA("Part") then
| |
| 4249 | v.Transparency = 0 | |
| 4250 | v.BrickColor = BrickColor.new("Really black")
| |
| 4251 | v.Material = "Neon" | |
| 4252 | end | |
| 4253 | end | |
| 4254 | for i, v in pairs(m:GetChildren()) do | |
| 4255 | if v:IsA("Part") then
| |
| 4256 | v.BrickColor = BrickColor.new("White")
| |
| 4257 | v.Material = "Ice" | |
| 4258 | end | |
| 4259 | end | |
| 4260 | for i, v in pairs(m2:GetChildren()) do | |
| 4261 | if v:IsA("Part") then
| |
| 4262 | v.BrickColor = BrickColor.new("Really black")
| |
| 4263 | v.Material = "Ice" | |
| 4264 | end | |
| 4265 | end | |
| 4266 | for i, v in pairs(m3:GetChildren()) do | |
| 4267 | if v:IsA("Part") then
| |
| 4268 | v.BrickColor = BrickColor.new("White")
| |
| 4269 | v.Material = "Neon" | |
| 4270 | end | |
| 4271 | end | |
| 4272 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 4273 | if v:IsA("Part") then
| |
| 4274 | v.Transparency = 1 | |
| 4275 | v.BrickColor = BrickColor.new("White")
| |
| 4276 | v.Material = "Neon" | |
| 4277 | end | |
| 4278 | end | |
| 4279 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 4280 | if v:IsA("Part") then
| |
| 4281 | v.Transparency = 1 | |
| 4282 | v.BrickColor = BrickColor.new("White")
| |
| 4283 | v.Material = "Neon" | |
| 4284 | end | |
| 4285 | end | |
| 4286 | ||
| 4287 | ||
| 4288 | elseif k == "y" and attack == false and ModeOfGlitch == 6 then | |
| 4289 | resetmode() | |
| 4290 | end | |
| 4291 | if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then | |
| 4292 | ModeOfGlitch = 6127843 | |
| 4293 | storehumanoidWS = 50 | |
| 4294 | hum.WalkSpeed = 50 | |
| 4295 | rainbowmode = true | |
| 4296 | chaosmode = false | |
| 4297 | RecolorTextAndRename("StarLight", Color3.new(1, 1, 1), Color3.new(1, 1, 1))
| |
| 4298 | newTheme("rbxassetid://152539141", 0, 1, 1)
| |
| 4299 | MAINRUINCOLOR = BrickColor.new("White")
| |
| 4300 | for i, v in pairs(mw2:GetChildren()) do | |
| 4301 | if v:IsA("Part") then
| |
| 4302 | v.BrickColor = MAINRUINCOLOR | |
| 4303 | v.Material = "Neon" | |
| 4304 | end | |
| 4305 | end | |
| 4306 | for i, v in pairs(mw1:GetChildren()) do | |
| 4307 | if v:IsA("Part") then
| |
| 4308 | v.Transparency = 0 | |
| 4309 | v.BrickColor = MAINRUINCOLOR | |
| 4310 | v.Material = "Neon" | |
| 4311 | end | |
| 4312 | end | |
| 4313 | for i, v in pairs(m:GetChildren()) do | |
| 4314 | if v:IsA("Part") then
| |
| 4315 | v.BrickColor = BrickColor.new("White")
| |
| 4316 | v.Material = "Neon" | |
| 4317 | end | |
| 4318 | end | |
| 4319 | for i, v in pairs(m2:GetChildren()) do | |
| 4320 | if v:IsA("Part") then
| |
| 4321 | v.BrickColor = BrickColor.new("White")
| |
| 4322 | v.Material = "Neon" | |
| 4323 | end | |
| 4324 | end | |
| 4325 | for i, v in pairs(m3:GetChildren()) do | |
| 4326 | if v:IsA("Part") then
| |
| 4327 | v.BrickColor = BrickColor.new("White")
| |
| 4328 | v.Material = "Neon" | |
| 4329 | end | |
| 4330 | end | |
| 4331 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 4332 | if v:IsA("Part") then
| |
| 4333 | v.Transparency = 1 | |
| 4334 | v.BrickColor = BrickColor.new("White")
| |
| 4335 | v.Material = "Neon" | |
| 4336 | end | |
| 4337 | end | |
| 4338 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 4339 | if v:IsA("Part") then
| |
| 4340 | v.Transparency = 1 | |
| 4341 | v.BrickColor = BrickColor.new("White")
| |
| 4342 | v.Material = "Neon" | |
| 4343 | end | |
| 4344 | end | |
| 4345 | elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then | |
| 4346 | resetmode() | |
| 4347 | end | |
| 4348 | if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then | |
| 4349 | ModeOfGlitch = 1000000 | |
| 4350 | storehumanoidWS = 100 | |
| 4351 | hum.WalkSpeed = 100 | |
| 4352 | rainbowmode = false | |
| 4353 | chaosmode = false | |
| 4354 | RecolorTextAndRename("True Starlight", Color3.new(0.25, 0, 1), Color3.new(0.5, 0, 1))
| |
| 4355 | newTheme("rbxassetid://614032233", 0, 1, 1)
| |
| 4356 | MAINRUINCOLOR = BrickColor.new("Bright violet")
| |
| 4357 | for i, v in pairs(mw2:GetChildren()) do | |
| 4358 | if v:IsA("Part") then
| |
| 4359 | v.BrickColor = MAINRUINCOLOR | |
| 4360 | v.Material = "Neon" | |
| 4361 | end | |
| 4362 | end | |
| 4363 | for i, v in pairs(mw1:GetChildren()) do | |
| 4364 | if v:IsA("Part") then
| |
| 4365 | v.Transparency = 0 | |
| 4366 | v.BrickColor = MAINRUINCOLOR | |
| 4367 | v.Material = "Neon" | |
| 4368 | end | |
| 4369 | end | |
| 4370 | for i, v in pairs(m:GetChildren()) do | |
| 4371 | if v:IsA("Part") then
| |
| 4372 | v.Color = Color3.new(0.5, 0, 1) | |
| 4373 | v.Material = "Neon" | |
| 4374 | end | |
| 4375 | end | |
| 4376 | for i, v in pairs(m2:GetChildren()) do | |
| 4377 | if v:IsA("Part") then
| |
| 4378 | v.Color = Color3.new(0.25, 0, 1) | |
| 4379 | v.Material = "Neon" | |
| 4380 | end | |
| 4381 | end | |
| 4382 | for i, v in pairs(m3:GetChildren()) do | |
| 4383 | if v:IsA("Part") then
| |
| 4384 | v.Color = Color3.new(0.45, 0, 1) | |
| 4385 | v.Material = "Neon" | |
| 4386 | end | |
| 4387 | end | |
| 4388 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 4389 | if v:IsA("Part") then
| |
| 4390 | v.Transparency = 0 | |
| 4391 | v.Color = Color3.new(0.25, 0, 1) | |
| 4392 | v.Material = "Neon" | |
| 4393 | end | |
| 4394 | end | |
| 4395 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 4396 | if v:IsA("Part") then
| |
| 4397 | v.Transparency = 0 | |
| 4398 | v.Color = Color3.new(0.5, 0, 1) | |
| 4399 | v.Material = "Neon" | |
| 4400 | end | |
| 4401 | end | |
| 4402 | elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then | |
| 4403 | resetmode() | |
| 4404 | end | |
| 4405 | if k == "l" and toggleTag == false then | |
| 4406 | toggleTag = true | |
| 4407 | text.TextTransparency = 0 | |
| 4408 | text.TextStrokeTransparency = 0 | |
| 4409 | elseif k == "l" and toggleTag == true then | |
| 4410 | toggleTag = false | |
| 4411 | text.TextTransparency = 1 | |
| 4412 | text.TextStrokeTransparency = 1 | |
| 4413 | end | |
| 4414 | if k == "z" and attack == false and ModeOfGlitch == 1 then | |
| 4415 | ExtinctiveHeartbreak() | |
| 4416 | elseif k == "l" and attack == false and ModeOfGlitch == 1 then | |
| 4417 | deadworld() | |
| 4418 | elseif k == "z" and attack == false and ModeOfGlitch == 2 then | |
| 4419 | PureBomb() | |
| 4420 | elseif k == "l" and attack == false and ModeOfGlitch == 2 then | |
| 4421 | for i = 1, 40 do | |
| 4422 | swait() | |
| 4423 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.5, 0, 0), 0.1) | |
| 4424 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.1) | |
| 4425 | RW.C0 = clerp(RW.C0, cf(1.3, 1, 0) * euler(2.5, 0, 0) * euler(0, 0, 0.4), 0.1) | |
| 4426 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.1) | |
| 4427 | LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0) * euler(0.6, 0, 0) * euler(0, 0, -0.5), 0.1) | |
| 4428 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.1) | |
| 4429 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 0, 0.1) * euler(0, math.pi / 2, 0), 0.1) | |
| 4430 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, 0, -0.1) * euler(0, -math.pi / 2, 0), 0.1) | |
| 4431 | end | |
| 4432 | Blaze() | |
| 4433 | elseif k == "z" and attack == false and ModeOfGlitch == 3 then | |
| 4434 | scattercorrupt() | |
| 4435 | elseif k == "z" and attack == false and ModeOfGlitch == 4 then | |
| 4436 | ChaosGroundStrike() | |
| 4437 | elseif k == "z" and attack == false and ModeOfGlitch == 5 then | |
| 4438 | elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then | |
| 4439 | UniversalSpark() | |
| 4440 | elseif k == "l" and attack == false and ModeOfGlitch == 1000000 then | |
| 4441 | scattercorrupt() | |
| 4442 | wait(1) | |
| 4443 | yinyangi() | |
| 4444 | elseif k == "l" and attack == false and ModeOfGlitch == 5 then | |
| 4445 | scattercorrupt() | |
| 4446 | scattercorrupt() | |
| 4447 | elseif k == "z" and attack == false and ModeOfGlitch == 6 then | |
| 4448 | yinyangi() | |
| 4449 | elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then | |
| 4450 | Wip() | |
| 4451 | end | |
| 4452 | if k == "l" and attack == false and ModeOfGlitch == 4 then | |
| 4453 | ChaosBegone() | |
| 4454 | end | |
| 4455 | end) | |
| 4456 | coroutine.resume(coroutine.create(function() | |
| 4457 | while true do | |
| 4458 | swait(2) | |
| 4459 | if rainbowmode == true or ModeOfGlitch == 6 then | |
| 4460 | sphereMK(5, 0.15, "Add", root.CFrame * CFrame.new(math.random(-5, 5), -6, math.random(-5, 5)) * CFrame.Angles(math.rad(90), 0, 0), 1.5, 1.5, 10, -0.015, MAINRUINCOLOR, 0) | |
| 4461 | end | |
| 4462 | end | |
| 4463 | end)) | |
| 4464 | coroutine.resume(coroutine.create(function() | |
| 4465 | while true do | |
| 4466 | swait(0.5) | |
| 4467 | if ModeOfGlitch == 1000000 then | |
| 4468 | sphereMK(5, 0.5, "Add", root.CFrame * CFrame.new(math.random(-25, 25), -10, math.random(-25, 25)) * CFrame.Angles(math.rad(90 + math.random(-15, 15)), math.rad(math.random(-15, 15)), 0), 1, 1, 15, -0.01, MAINRUINCOLOR, 0) | |
| 4469 | end | |
| 4470 | end | |
| 4471 | end)) | |
| 4472 | coroutine.resume(coroutine.create(function() | |
| 4473 | while true do | |
| 4474 | swait(2) | |
| 4475 | if chaosmode == true then | |
| 4476 | RecolorTextAndRename("HATRED", Color3.new(0, 0, 0), BrickColor.random().Color)
| |
| 4477 | for i, v in pairs(mw1:GetChildren()) do | |
| 4478 | if v:IsA("Part") then
| |
| 4479 | v.Transparency = 0.75 | |
| 4480 | v.BrickColor = BrickColor.random() | |
| 4481 | v.Material = "Neon" | |
| 4482 | end | |
| 4483 | end | |
| 4484 | for i, v in pairs(m2:GetChildren()) do | |
| 4485 | if v:IsA("Part") then
| |
| 4486 | v.BrickColor = BrickColor.random() | |
| 4487 | v.Material = "Neon" | |
| 4488 | end | |
| 4489 | end | |
| 4490 | end | |
| 4491 | end | |
| 4492 | end)) | |
| 4493 | Humanoid.Name = "STARGLITCHER" | |
| 4494 | Humanoid.MaxHealth = math.huge | |
| 4495 | Humanoid.Health = math.huge | |
| 4496 | Instance.new("ForceField", char).Visible = false
| |
| 4497 | Humanoid.Animator.Parent = nil | |
| 4498 | idleanim = 0.4 | |
| 4499 | while true do | |
| 4500 | if rainbowmode == true then | |
| 4501 | RecolorTextAndRename("StarLight", Color3.new(r / 255, g / 255, b / 255), Color3.new(r / 500, g / 500, b / 500))
| |
| 4502 | MAINRUINCOLOR = BrickColor.new("White")
| |
| 4503 | for i, v in pairs(m:GetChildren()) do | |
| 4504 | if v:IsA("Part") then
| |
| 4505 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 4506 | end | |
| 4507 | end | |
| 4508 | for i, v in pairs(m2:GetChildren()) do | |
| 4509 | if v:IsA("Part") then
| |
| 4510 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 4511 | end | |
| 4512 | end | |
| 4513 | for i, v in pairs(m3:GetChildren()) do | |
| 4514 | if v:IsA("Part") then
| |
| 4515 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 4516 | end | |
| 4517 | end | |
| 4518 | for i, v in pairs(mw1:GetChildren()) do | |
| 4519 | if v:IsA("Part") then
| |
| 4520 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 4521 | v.Material = "Neon" | |
| 4522 | end | |
| 4523 | end | |
| 4524 | for i, v in pairs(mw2:GetChildren()) do | |
| 4525 | if v:IsA("Part") then
| |
| 4526 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 4527 | v.Material = "Neon" | |
| 4528 | end | |
| 4529 | end | |
| 4530 | end | |
| 4531 | CameraManager() | |
| 4532 | swait() | |
| 4533 | lwing1weld.C1 = clerp(lwing1weld.C1, cf(2, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(5 + 10 * math.cos(sine / 32)), math.rad(0), math.rad(12.5 + 5 * math.cos(sine / 32))), 0.3) | |
| 4534 | lwing2weld.C1 = clerp(lwing2weld.C1, cf(3, 1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(10 + 15 * math.cos(sine / 32)), math.rad(0), math.rad(25 + 7.5 * math.cos(sine / 32))), 0.3) | |
| 4535 | lwing3weld.C1 = clerp(lwing3weld.C1, cf(3.75, 2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(15 + 20 * math.cos(sine / 32)), math.rad(0), math.rad(37.5 + 10 * math.cos(sine / 32))), 0.3) | |
| 4536 | lwing4weld.C1 = clerp(lwing4weld.C1, cf(4.75, 3, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(20 + 25 * math.cos(sine / 32)), math.rad(0), math.rad(50 + 12.5 * math.cos(sine / 32))), 0.3) | |
| 4537 | lwing5weld.C1 = clerp(lwing5weld.C1, cf(5.75, 4, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(25 + 30 * math.cos(sine / 32)), math.rad(0), math.rad(62.5 + 15 * math.cos(sine / 32))), 0.3) | |
| 4538 | lwing6weld.C1 = clerp(lwing6weld.C1, cf(6.75, 5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(30 + 35 * math.cos(sine / 32)), math.rad(0), math.rad(75 + 17.5 * math.cos(sine / 32))), 0.3) | |
| 4539 | rwing1weld.C1 = clerp(rwing1weld.C1, cf(-2, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(5 + 10 * math.cos(sine / 32)), math.rad(0), math.rad(-12.5 - 5 * math.cos(sine / 32))), 0.3) | |
| 4540 | rwing2weld.C1 = clerp(rwing2weld.C1, cf(-3, 1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(10 + 15 * math.cos(sine / 32)), math.rad(0), math.rad(-25 - 7.5 * math.cos(sine / 32))), 0.3) | |
| 4541 | rwing3weld.C1 = clerp(rwing3weld.C1, cf(-3.75, 2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(15 + 20 * math.cos(sine / 32)), math.rad(0), math.rad(-37.5 - 10 * math.cos(sine / 32))), 0.3) | |
| 4542 | rwing4weld.C1 = clerp(rwing4weld.C1, cf(-4.75, 3, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(20 + 25 * math.cos(sine / 32)), math.rad(0), math.rad(-50 - 12.5 * math.cos(sine / 32))), 0.3) | |
| 4543 | rwing5weld.C1 = clerp(rwing5weld.C1, cf(-5.75, 4, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(25 + 30 * math.cos(sine / 32)), math.rad(0), math.rad(-62.5 - 15 * math.cos(sine / 32))), 0.3) | |
| 4544 | rwing6weld.C1 = clerp(rwing6weld.C1, cf(-6.75, 5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(30 + 35 * math.cos(sine / 32)), math.rad(0), math.rad(-75 - 17.5 * math.cos(sine / 32))), 0.3) | |
| 4545 | sine = sine + change | |
| 4546 | local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 4547 | local velderp = RootPart.Velocity.y | |
| 4548 | hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
| 4549 | if equipped == true or equipped == false then | |
| 4550 | if attack == false then | |
| 4551 | idle = idle + 1 | |
| 4552 | else | |
| 4553 | idle = 0 | |
| 4554 | end | |
| 4555 | if not (idle >= 500) or attack == false then | |
| 4556 | end | |
| 4557 | if RootPart.Velocity.y > 1 and hitfloor == nil then | |
| 4558 | Anim = "Jump" | |
| 4559 | if attack == false then | |
| 4560 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.1) | |
| 4561 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(20)), 0.1) | |
| 4562 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 25)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1) | |
| 4563 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.1) | |
| 4564 | RW.C0 = clerp(RW.C0, cf(1.45, 0.5 + 0.1 * math.cos(sine / 25), 0) * angles(math.rad(-5), math.rad(0), math.rad(25)), 0.1) | |
| 4565 | LW.C0 = clerp(LW.C0, cf(-1.45, 0.5 + 0.1 * math.cos(sine / 25), 0) * angles(math.rad(-5), math.rad(0), math.rad(-25)), 0.1) | |
| 4566 | end | |
| 4567 | elseif RootPart.Velocity.y < -1 and hitfloor == nil then | |
| 4568 | Anim = "Fall" | |
| 4569 | if attack == false then | |
| 4570 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.1) | |
| 4571 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(20)), 0.1) | |
| 4572 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 4573 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 4574 | RW.C0 = clerp(RW.C0, cf(1.45, 0.5 + 0.1 * math.cos(sine / 25), 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.1) | |
| 4575 | LW.C0 = clerp(LW.C0, cf(-1.45, 0.5 + 0.1 * math.cos(sine / 25), 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.1) | |
| 4576 | end | |
| 4577 | elseif torvel < 1 and hitfloor ~= nil then | |
| 4578 | Anim = "Idle" | |
| 4579 | if attack == false then | |
| 4580 | if ModeOfGlitch == 1 then | |
| 4581 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10 - 2.5 * math.cos(sine / 32)), math.rad(-20), math.rad(0)), 0.1) | |
| 4582 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10 + 2.5 * math.cos(sine / 32))), 0.1) | |
| 4583 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(10 - 2 * math.cos(sine / 32)), math.rad(0), math.rad(20)), 0.1) | |
| 4584 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(25 - 2.5 * math.cos(sine / 32)), math.rad(0 - 5 * math.cos(sine / 0.25)), math.rad(-20 - 5 * math.cos(sine / 0.465))), 0.1) | |
| 4585 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(10), math.rad(-20), math.rad(30 + 2.5 * math.cos(sine / 25))), 0.1) | |
| 4586 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(25)), 0.1) | |
| 4587 | elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then | |
| 4588 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-7.5), math.rad(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1) | |
| 4589 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1) | |
| 4590 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(0)), 0.1) | |
| 4591 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(0)), 0.1) | |
| 4592 | RW.C0 = clerp(RW.C0, cf(0.85, 0.5 + 0.1 * math.cos(sine / 28), -0.65) * angles(math.rad(30 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(-100 - 2.5 * math.cos(sine / 28))), 0.1) | |
| 4593 | LW.C0 = clerp(LW.C0, cf(-0.85, 0.5 + 0.1 * math.cos(sine / 28), -0.65) * angles(math.rad(40 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(90 + 2.5 * math.cos(sine / 28))), 0.1) | |
| 4594 | elseif ModeOfGlitch == 3 then | |
| 4595 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0 - 1 * math.cos(sine / 34))), 0.1) | |
| 4596 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1) | |
| 4597 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(-20)), 0.1) | |
| 4598 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(25 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(20)), 0.1) | |
| 4599 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(10), math.rad(-20), math.rad(30 + 2.5 * math.cos(sine / 25))), 0.1) | |
| 4600 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.75, 0) * angles(math.rad(170), math.rad(-20), math.rad(20)), 0.1) | |
| 4601 | elseif ModeOfGlitch == 4 then | |
| 4602 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.025 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-1.5), math.rad(0), math.rad(20)), 0.1) | |
| 4603 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.025 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-1.5), math.rad(0), math.rad(-20)), 0.1) | |
| 4604 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.025 * math.cos(sine / 32)) * angles(math.rad(20 - 0.5 * math.cos(sine / 32)), math.rad(0), math.rad(0)), 0.1) | |
| 4605 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(30 - 5 * math.cos(sine / 0.5265)), math.rad(0 - 5 * math.cos(sine / 0.25)), math.rad(0 - 5 * math.cos(sine / 0.465))), 0.1) | |
| 4606 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)), math.rad(0 + 2.5 * math.cos(sine / 0.123)), math.rad(5 + 2.5 * math.cos(sine / 0.6))), 0.1) | |
| 4607 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)), math.rad(0 + 2.5 * math.cos(sine / 0.664)), math.rad(-5 + 2.5 * math.cos(sine / 0.23))), 0.1) | |
| 4608 | elseif ModeOfGlitch == 5 then | |
| 4609 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1) | |
| 4610 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1) | |
| 4611 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(0)), 0.1) | |
| 4612 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(0)), 0.1) | |
| 4613 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + 0.1 * math.cos(sine / 28), 0.45) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.1) | |
| 4614 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + 0.1 * math.cos(sine / 28), 0.45) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.1) | |
| 4615 | elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then | |
| 4616 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-10)), 0.1) | |
| 4617 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(10)), 0.1) | |
| 4618 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(0 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(0)), 0.1) | |
| 4619 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15), math.rad(0), math.rad(0)), 0.1) | |
| 4620 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20 + 2.5 * math.cos(sine / 28))), 0.1) | |
| 4621 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20 - 2.5 * math.cos(sine / 28))), 0.1) | |
| 4622 | end | |
| 4623 | end | |
| 4624 | elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then | |
| 4625 | Anim = "Walk" | |
| 4626 | if attack == false then | |
| 4627 | if ModeOfGlitch == 1 then | |
| 4628 | RH.C0 = clerp(RH.C0, cf(1, -0.85, -0.15 - 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1) | |
| 4629 | LH.C0 = clerp(LH.C0, cf(-1, -0.85, -0.15 + 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1) | |
| 4630 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.15 - 0.1 * math.cos(sine / 4)) * angles(math.rad(5), math.rad(0), math.rad(0 - 5 * math.cos(sine / 8))), 0.1) | |
| 4631 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(25 - 5 * math.cos(sine / 0.325)), math.rad(0 - 5 * math.cos(sine / 0.25)), math.rad(0 + 5 * math.cos(sine / 8))), 0.1) | |
| 4632 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0 - 45 * math.cos(sine / 8)), math.rad(0), math.rad(10 - 10 * math.cos(sine / 4))), 0.1) | |
| 4633 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(25)), 0.1) | |
| 4634 | elseif ModeOfGlitch == 4 then | |
| 4635 | RH.C0 = clerp(RH.C0, cf(1, -0.85, -0.15 - 0.15 * math.cos(sine / 8)) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 12)), math.rad(5 + 25 * math.cos(sine / 12))), 0.1) | |
| 4636 | LH.C0 = clerp(LH.C0, cf(-1, -0.85, -0.15 + 0.15 * math.cos(sine / 8)) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 12)), math.rad(-5 + 25 * math.cos(sine / 12))), 0.1) | |
| 4637 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.15 - 0.1 * math.cos(sine / 8)) * angles(math.rad(12.5), math.rad(0), math.rad(0 - 5 * math.cos(sine / 12))), 0.1) | |
| 4638 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(30 - 5 * math.cos(sine / 0.5265)), math.rad(0 - 5 * math.cos(sine / 0.25)), math.rad(0 - 5 * math.cos(sine / 0.465))), 0.1) | |
| 4639 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(10 - 15 * math.cos(sine / 12)), math.rad(0 + 2.5 * math.cos(sine / 0.123)), math.rad(5 + 2.5 * math.cos(sine / 0.6))), 0.1) | |
| 4640 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(10 + 15 * math.cos(sine / 12)), math.rad(0 + 2.5 * math.cos(sine / 0.664)), math.rad(-5 + 2.5 * math.cos(sine / 0.23))), 0.1) | |
| 4641 | elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 then | |
| 4642 | RH.C0 = clerp(RH.C0, cf(1, -0.85, -0.15 - 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1) | |
| 4643 | LH.C0 = clerp(LH.C0, cf(-1, -0.85, -0.15 + 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1) | |
| 4644 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.15 - 0.1 * math.cos(sine / 4)) * angles(math.rad(5), math.rad(0), math.rad(0 - 5 * math.cos(sine / 8))), 0.1) | |
| 4645 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10 + 2.5 * math.cos(sine / 100)), math.rad(0), math.rad(0 + 5 * math.cos(sine / 8))), 0.1) | |
| 4646 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0 - 45 * math.cos(sine / 8)), math.rad(0), math.rad(10 - 10 * math.cos(sine / 4))), 0.1) | |
| 4647 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0 + 45 * math.cos(sine / 8)), math.rad(0), math.rad(-10 + 10 * math.cos(sine / 4))), 0.1) | |
| 4648 | end | |
| 4649 | end | |
| 4650 | elseif torvel >= 22 and hitfloor ~= nil then | |
| 4651 | Anim = "Run" | |
| 4652 | if attack == false then | |
| 4653 | if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 then | |
| 4654 | RH.C0 = clerp(RH.C0, cf(1, -0.75 - 0.25 * math.cos(sine / 3), -0.25 - 0.25 * math.cos(sine / 3)) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0 + 95 * math.cos(sine / 6))), 0.1) | |
| 4655 | LH.C0 = clerp(LH.C0, cf(-1, -0.75 + 0.25 * math.cos(sine / 3), -0.25 + 0.25 * math.cos(sine / 3)) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0 + 95 * math.cos(sine / 6))), 0.1) | |
| 4656 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.125 + 0.125 * math.cos(sine / 3)) * angles(math.rad(20), math.rad(0), math.rad(0 - 15 * math.cos(sine / 6))), 0.1) | |
| 4657 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10 + 2.5 * math.cos(sine / 100)), math.rad(0), math.rad(0 + 15 * math.cos(sine / 6))), 0.1) | |
| 4658 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0 - 155 * math.cos(sine / 6)), math.rad(0), math.rad(5 - 10 * math.cos(sine / 3))), 0.1) | |
| 4659 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0 + 155 * math.cos(sine / 6)), math.rad(0), math.rad(-5 + 10 * math.cos(sine / 3))), 0.1) | |
| 4660 | elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then | |
| 4661 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.2) | |
| 4662 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.2) | |
| 4663 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(75), math.rad(0), math.rad(0)), 0.2) | |
| 4664 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
| 4665 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(30 + 2.5 * math.cos(sine / 28))), 0.2) | |
| 4666 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30 - 2.5 * math.cos(sine / 28))), 0.2) | |
| 4667 | end | |
| 4668 | end | |
| 4669 | end | |
| 4670 | end | |
| 4671 | end |