SHOW:
|
|
- or go back to the newest paste.
| 1 | --[[Floaty thing by SezHu. | |
| 2 | ||
| 3 | If you want a creation like this of your own, shoot me a friend request me on Discord! (Sezzie | |
| 4 | #1875) Prices start at 250 robux.]]-- | |
| 5 | ||
| 6 | ||
| 7 | local songs = {
| |
| 8 | - | 653700917, --Sunset Lover |
| 8 | + | 576096781, --Monody |
| 9 | - | 1525113279, --Slow |
| 9 | + | 915824658, --The calling |
| 10 | - | 1389286403, --Chill 2 |
| 10 | + | 848114374, --Fly away |
| 11 | - | 692796920, --Soul Food |
| 11 | + | 951690182, --Cold as ice |
| 12 | - | 1137575800, --Burn Marks |
| 12 | + | 1576041669, --Never Be Alone |
| 13 | - | 852365754, |
| 13 | + | 1266052151, --shelter remix |
| 14 | - | 1388205829, --D r o w z y |
| 14 | + | |
| 15 | - | 566546592, --S a y o n a r a |
| 15 | + | |
| 16 | - | 1446511374, --Oracle |
| 16 | + | |
| 17 | local quotes = {
| |
| 18 | "This song is great :D", | |
| 19 | "Yawn..", | |
| 20 | "Just floatin around~", | |
| 21 | - | "Something to relax to..", |
| 21 | + | "Going up~~", |
| 22 | "This is my favourite song..", | |
| 23 | - | "Just floatin'~", |
| 23 | + | |
| 24 | - | "Going up~", |
| 24 | + | "=D", |
| 25 | - | "I like this song..", |
| 25 | + | |
| 26 | ||
| 27 | - | "^w^", |
| 27 | + | |
| 28 | local function soundbork(obj) | |
| 29 | if obj:IsA("Sound") and obj.Name ~= "playlist" then
| |
| 30 | --obj:Destroy() Remove the two dashes to silence all music but your own. | |
| 31 | return | |
| 32 | end | |
| 33 | ||
| 34 | ||
| 35 | local children = obj:GetChildren() | |
| 36 | for i = 1, #children do | |
| 37 | soundbork(children[i]) | |
| 38 | end | |
| 39 | ||
| 40 | return | |
| 41 | end | |
| 42 | ||
| 43 | --//Constants\\-- | |
| 44 | ||
| 45 | Effects = { }
| |
| 46 | local Player = game.Players.localPlayer | |
| 47 | local Mouse = Player:GetMouse() | |
| 48 | local Character = Player.Character | |
| 49 | local Humanoid = Character.Humanoid | |
| 50 | local Head = Character.Head | |
| 51 | local RootPart = Character.HumanoidRootPart | |
| 52 | local Torso = Character.Torso | |
| 53 | local LeftArm = Character["Left Arm"] | |
| 54 | local RightArm = Character["Right Arm"] | |
| 55 | local LeftLeg = Character["Left Leg"] | |
| 56 | local RightLeg = Character["Right Leg"] | |
| 57 | local Camera = game.Workspace.CurrentCamera | |
| 58 | local RootJoint = RootPart.RootJoint | |
| 59 | local Equipped = false | |
| 60 | local Attack = false | |
| 61 | local Anim = 'Idle' | |
| 62 | local Idle = 0 | |
| 63 | local Combo = 1 | |
| 64 | local TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 65 | local Velocity = RootPart.Velocity.y | |
| 66 | local Sine = 0 | |
| 67 | local Change = 1 | |
| 68 | local aoeconstant = 10 | |
| 69 | local maincol = "Pink" | |
| 70 | local maincol2 = "White" | |
| 71 | local randString = songs[math.random(#songs)] | |
| 72 | local circleinthesky = false | |
| 73 | Character.Humanoid.Name = "help" | |
| 74 | humanoid = Character.help | |
| 75 | Instance.new("ForceField",Character).Visible = false
| |
| 76 | ||
| 77 | ||
| 78 | ||
| 79 | ||
| 80 | ||
| 81 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 82 | local Create = RbxUtility.Create | |
| 83 | ||
| 84 | humanoid.WalkSpeed = 3 | |
| 85 | humanoid.JumpPower = 0 | |
| 86 | humanoid.Animator.Parent = nil | |
| 87 | Character.Animate.Parent = nil | |
| 88 | ||
| 89 | local newMotor = function(part0, part1, c0, c1) | |
| 90 | local w = Create('Motor'){
| |
| 91 | Parent = part0, | |
| 92 | Part0 = part0, | |
| 93 | Part1 = part1, | |
| 94 | C0 = c0, | |
| 95 | C1 = c1, | |
| 96 | } | |
| 97 | return w | |
| 98 | end | |
| 99 | ||
| 100 | ||
| 101 | skillcolorscheme = BrickColor.new(maincol).Color | |
| 102 | ||
| 103 | local hue = 0 | |
| 104 | ||
| 105 | spawn(function() | |
| 106 | while true do | |
| 107 | hue = hue + .0005 | |
| 108 | if hue >= 1 then hue = 0 end | |
| 109 | maincol2 = Color3.fromHSV(hue,1,1) | |
| 110 | game["Run Service"].RenderStepped:wait() | |
| 111 | end | |
| 112 | end) | |
| 113 | ||
| 114 | ||
| 115 | ||
| 116 | ||
| 117 | ||
| 118 | ||
| 119 | local scrn = Instance.new('ScreenGui', Player.PlayerGui)
| |
| 120 | function makeframe(par, trans, pos, size, color) | |
| 121 | local frame = Instance.new('Frame', par)
| |
| 122 | frame.BackgroundTransparency = trans | |
| 123 | frame.BorderSizePixel = 0 | |
| 124 | frame.Position = pos | |
| 125 | frame.Size = size | |
| 126 | frame.BackgroundColor3 = color | |
| 127 | return frame | |
| 128 | end | |
| 129 | ||
| 130 | --framesk1 = makeframe(scrn, .95, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme) | |
| 131 | ||
| 132 | function clerp(a, b, t) | |
| 133 | return a:lerp(b, t) | |
| 134 | end | |
| 135 | ||
| 136 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 137 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 138 | ||
| 139 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 140 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 141 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 142 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 143 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
| 144 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
| 145 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
| 146 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
| 147 | ||
| 148 | local rarmc1 = RW.C1 | |
| 149 | local larmc1 = LW.C1 | |
| 150 | local rlegc1 = RH.C1 | |
| 151 | local llegc1 = LH.C1 | |
| 152 | ||
| 153 | local resetc1 = false | |
| 154 | ||
| 155 | function PlayAnimationFromTable(table, speed, bool) | |
| 156 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
| 157 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
| 158 | RW.C0 = clerp(RW.C0, table[3], speed) | |
| 159 | LW.C0 = clerp(LW.C0, table[4], speed) | |
| 160 | RH.C0 = clerp(RH.C0, table[5], speed) | |
| 161 | LH.C0 = clerp(LH.C0, table[6], speed) | |
| 162 | if bool == true then | |
| 163 | if resetc1 == false then | |
| 164 | resetc1 = true | |
| 165 | RootJoint.C1 = RootJoint.C1 | |
| 166 | Torso.Neck.C1 = Torso.Neck.C1 | |
| 167 | RW.C1 = rarmc1 | |
| 168 | LW.C1 = larmc1 | |
| 169 | RH.C1 = rlegc1 | |
| 170 | LH.C1 = llegc1 | |
| 171 | end | |
| 172 | end | |
| 173 | end | |
| 174 | ||
| 175 | ArtificialHB = Create("BindableEvent"){
| |
| 176 | Parent = script, | |
| 177 | Name = "Heartbeat", | |
| 178 | } | |
| 179 | ||
| 180 | script:WaitForChild("Heartbeat")
| |
| 181 | ||
| 182 | frame = 1 / 35 | |
| 183 | tf = 0 | |
| 184 | allowframeloss = false | |
| 185 | tossremainder = false | |
| 186 | lastframe = tick() | |
| 187 | script.Heartbeat:Fire() | |
| 188 | ||
| 189 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 190 | tf = tf + s | |
| 191 | if tf >= frame then | |
| 192 | if allowframeloss then | |
| 193 | script.Heartbeat:Fire() | |
| 194 | lastframe = tick() | |
| 195 | else | |
| 196 | for i = 1, math.floor(tf / frame) do | |
| 197 | script.Heartbeat:Fire() | |
| 198 | end | |
| 199 | lastframe = tick() | |
| 200 | end | |
| 201 | if tossremainder then | |
| 202 | tf = 0 | |
| 203 | else | |
| 204 | tf = tf - frame * math.floor(tf / frame) | |
| 205 | end | |
| 206 | end | |
| 207 | end) | |
| 208 | ||
| 209 | function swait(num) | |
| 210 | if num == 0 or num == nil then | |
| 211 | ArtificialHB.Event:wait() | |
| 212 | else | |
| 213 | for i = 0, num do | |
| 214 | ArtificialHB.Event:wait() | |
| 215 | end | |
| 216 | end | |
| 217 | end | |
| 218 | ||
| 219 | ||
| 220 | ||
| 221 | local m = Create("Model"){
| |
| 222 | Parent = Character, | |
| 223 | Name = "WeaponModel" | |
| 224 | } | |
| 225 | ||
| 226 | function RemoveOutlines(part) | |
| 227 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 228 | end | |
| 229 | ||
| 230 | CFuncs = {
| |
| 231 | Part = {
| |
| 232 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 233 | local Part = Create("Part"){
| |
| 234 | Parent = Parent, | |
| 235 | Reflectance = Reflectance, | |
| 236 | Transparency = Transparency, | |
| 237 | CanCollide = false, | |
| 238 | Locked = true, | |
| 239 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 240 | Name = Name, | |
| 241 | Size = Size, | |
| 242 | Material = Material, | |
| 243 | } | |
| 244 | RemoveOutlines(Part) | |
| 245 | if Size == Vector3.new() then | |
| 246 | Part.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 247 | else | |
| 248 | Part.Size = Size | |
| 249 | end | |
| 250 | return Part | |
| 251 | end; | |
| 252 | }; | |
| 253 | ||
| 254 | Mesh = {
| |
| 255 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 256 | local Msh = Create(Mesh){
| |
| 257 | Parent = Part, | |
| 258 | Offset = OffSet, | |
| 259 | Scale = Scale, | |
| 260 | } | |
| 261 | if Mesh == "SpecialMesh" then | |
| 262 | Msh.MeshType = MeshType | |
| 263 | Msh.MeshId = MeshId | |
| 264 | end | |
| 265 | return Msh | |
| 266 | end; | |
| 267 | }; | |
| 268 | ||
| 269 | Weld = {
| |
| 270 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 271 | local Weld = Create("Weld"){
| |
| 272 | Parent = Parent, | |
| 273 | Part0 = Part0, | |
| 274 | Part1 = Part1, | |
| 275 | C0 = C0, | |
| 276 | C1 = C1, | |
| 277 | } | |
| 278 | return Weld | |
| 279 | end; | |
| 280 | }; | |
| 281 | ||
| 282 | Sound = {
| |
| 283 | Create = function(id, par, vol, pit, looped) | |
| 284 | coroutine.resume(coroutine.create(function() | |
| 285 | local S = Create("Sound"){
| |
| 286 | Volume = vol, | |
| 287 | Pitch = pit or 1, | |
| 288 | SoundId = "rbxassetid://" .. id, | |
| 289 | Parent = par or workspace, | |
| 290 | Looped = looped | |
| 291 | } | |
| 292 | wait() | |
| 293 | S:play() | |
| 294 | end)) | |
| 295 | end; | |
| 296 | }; | |
| 297 | ||
| 298 | ParticleEmitter = {
| |
| 299 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 300 | local Particle = Create("ParticleEmitter"){
| |
| 301 | Parent = Parent, | |
| 302 | Color = ColorSequence.new(Color1, Color2), | |
| 303 | LightEmission = LightEmission, | |
| 304 | Size = Size, | |
| 305 | Texture = Texture, | |
| 306 | Transparency = Transparency, | |
| 307 | ZOffset = ZOffset, | |
| 308 | Acceleration = Accel, | |
| 309 | Drag = Drag, | |
| 310 | LockedToPart = LockedToPart, | |
| 311 | VelocityInheritance = VelocityInheritance, | |
| 312 | EmissionDirection = EmissionDirection, | |
| 313 | Enabled = Enabled, | |
| 314 | Lifetime = LifeTime, | |
| 315 | Rate = Rate, | |
| 316 | Rotation = Rotation, | |
| 317 | RotSpeed = RotSpeed, | |
| 318 | Speed = Speed, | |
| 319 | VelocitySpread = VelocitySpread, | |
| 320 | } | |
| 321 | return Particle | |
| 322 | end; | |
| 323 | }; | |
| 324 | ||
| 325 | CreateTemplate = {
| |
| 326 | ||
| 327 | }; | |
| 328 | } | |
| 329 | ||
| 330 | --/v/Don't touch this part. \v\-- | |
| 331 | ||
| 332 | playlist=Instance.new("Sound", Torso)
| |
| 333 | playlist.SoundId = "rbxassetid://" ..randString | |
| 334 | playlist.Volume = 10 | |
| 335 | playlist.Looped = false | |
| 336 | playlist.Name = "playlist" | |
| 337 | - | playlist.Volume = 5 |
| 337 | + | |
| 338 | ||
| 339 | --/^/Don't touch this part. \^\-- | |
| 340 | ||
| 341 | function RayCast(Position, Direction, Range, Ignore) | |
| 342 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 343 | end | |
| 344 | ||
| 345 | FindNearestTorso = function(pos) | |
| 346 | local list = (game.Workspace:children()) | |
| 347 | local torso = nil | |
| 348 | local dist = 1000 | |
| 349 | local temp, human, temp2 = nil, nil, nil | |
| 350 | for x = 1, #list do | |
| 351 | temp2 = list[x] | |
| 352 | if temp2.className == "Model" and temp2.Name ~= Character.Name then | |
| 353 | temp = temp2:findFirstChild("Torso")
| |
| 354 | human = temp2:findFirstChild("Humanoid")
| |
| 355 | if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then | |
| 356 | local dohit = true | |
| 357 | if dohit == true then | |
| 358 | torso = temp | |
| 359 | dist = (temp.Position - pos).magnitude | |
| 360 | end | |
| 361 | end | |
| 362 | end | |
| 363 | end | |
| 364 | return torso, dist | |
| 365 | end | |
| 366 | ||
| 367 | RootPart.CFrame = RootPart.CFrame * CFrame.new(0,5,0) | |
| 368 | ||
| 369 | Harness=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","Harness",Vector3.new(0.420000285, 0.490000188, 0.399999768)) | |
| 370 | HarnessWeld=CFuncs.Weld.Create(m,Character["Torso"],Harness,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0500001907, -0.0350001119, -0.0871353149, -1, 0, 0, 0, 1, 0, 0, 0, -1)) | |
| 371 | FloatField2=CFuncs.Part.Create(m,Enum.Material.Neon,0,.5,"Lily white","FloatField2",Vector3.new(5, 8, 5)) | |
| 372 | FloatField2Weld=CFuncs.Weld.Create(m,Harness,FloatField2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.58035278e-05, 3.50000337e-05, 6.10351563e-05, -1, 0, 0, 0, 1, 0, 0, 0, -1)) | |
| 373 | flotemesh=CFuncs.Mesh.Create("SpecialMesh",FloatField2,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 374 | spinny=CFuncs.Part.Create(Torso, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "spinny", Vector3.new())
| |
| 375 | spinny.Anchored=true | |
| 376 | spinny.CanCollide=false | |
| 377 | ||
| 378 | ||
| 379 | transp = .5 | |
| 380 | spawn(function() | |
| 381 | while true do | |
| 382 | transp = transp + .001 | |
| 383 | FloatField2.Transparency = transp | |
| 384 | swait() | |
| 385 | if transp >= 1 then | |
| 386 | transp = .5 | |
| 387 | end | |
| 388 | end | |
| 389 | end) | |
| 390 | ||
| 391 | ||
| 392 | ||
| 393 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 394 | if hit.Parent == nil then | |
| 395 | return | |
| 396 | end | |
| 397 | local h = hit.Parent:FindFirstChild("Humanoid")
| |
| 398 | for _, v in pairs(hit.Parent:children()) do | |
| 399 | if v:IsA("Humanoid") then
| |
| 400 | h = v | |
| 401 | end | |
| 402 | end | |
| 403 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 404 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then
| |
| 405 | if hit.Parent.DebounceHit.Value == true then | |
| 406 | return | |
| 407 | end | |
| 408 | end | |
| 409 | local c = Create("ObjectValue"){
| |
| 410 | Name = "creator", | |
| 411 | Value = game:service("Players").LocalPlayer,
| |
| 412 | Parent = h, | |
| 413 | } | |
| 414 | game:GetService("Debris"):AddItem(c, .5)
| |
| 415 | if HitSound ~= nil and HitPitch ~= nil then | |
| 416 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 417 | end | |
| 418 | local Damage = math.random(minim, maxim) | |
| 419 | local blocked = false | |
| 420 | local block = hit.Parent:findFirstChild("Block")
| |
| 421 | if block ~= nil then | |
| 422 | if block.className == "IntValue" then | |
| 423 | if block.Value > 0 then | |
| 424 | blocked = true | |
| 425 | block.Value = block.Value - 1 | |
| 426 | print(block.Value) | |
| 427 | end | |
| 428 | end | |
| 429 | end | |
| 430 | if blocked == false then | |
| 431 | h.Health = h.Health - Damage | |
| 432 | --ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
| |
| 433 | else | |
| 434 | h.Health = h.Health - (Damage / 2) | |
| 435 | --ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
| |
| 436 | end | |
| 437 | if Type == "Knockdown" then | |
| 438 | local hum = hit.Parent.Humanoid | |
| 439 | hum.PlatformStand = true | |
| 440 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 441 | swait(1) | |
| 442 | HHumanoid.PlatformStand = false | |
| 443 | end), hum) | |
| 444 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
| 445 | local bodvol = Create("BodyVelocity"){
| |
| 446 | velocity = angle * knockback, | |
| 447 | P = 5000, | |
| 448 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 449 | Parent = hit, | |
| 450 | } | |
| 451 | local rl = Create("BodyAngularVelocity"){
| |
| 452 | P = 3000, | |
| 453 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 454 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 455 | Parent = hit, | |
| 456 | } | |
| 457 | game:GetService("Debris"):AddItem(bodvol, .5)
| |
| 458 | game:GetService("Debris"):AddItem(rl, .5)
| |
| 459 | elseif Type == "Normal" then | |
| 460 | local vp = Create("BodyVelocity"){
| |
| 461 | P = 10, | |
| 462 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 463 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
| 464 | } | |
| 465 | print(hit.Parent) | |
| 466 | if knockback > 0 then | |
| 467 | vp.Parent = hit.Parent.Torso | |
| 468 | end | |
| 469 | local hum = hit.Parent.Humanoid | |
| 470 | hum.PlatformStand = true | |
| 471 | local TotalMass = 0 | |
| 472 | for _, part in pairs(hit.Parent:GetChildren()) do | |
| 473 | if part:IsA("Part") then
| |
| 474 | TotalMass = TotalMass + part:GetMass() | |
| 475 | end | |
| 476 | end | |
| 477 | ||
| 478 | ||
| 479 | ||
| 480 | local ForceOfGravity = -197 * TotalMass | |
| 481 | local floatybits = Instance.new("BodyForce", hit.Parent.Torso)
| |
| 482 | floatybits.force = Vector3.new(0, -ForceOfGravity, 0) | |
| 483 | ||
| 484 | ||
| 485 | ||
| 486 | ||
| 487 | ||
| 488 | ||
| 489 | spawn(function() | |
| 490 | local spinny2=CFuncs.Part.Create(Torso, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "spinny2", Vector3.new())
| |
| 491 | spinny2.Anchored=true | |
| 492 | spinny2.CanCollide=false | |
| 493 | for i = 0, 2, .001 do | |
| 494 | local alg = math.floor(playlist.PlaybackLoudness)/500 | |
| 495 | local alg2 = math.floor(playlist.PlaybackLoudness)/80 | |
| 496 | local efekt2=CFuncs.Part.Create(hit.Parent.Torso, "Neon", 0, .3, BrickColor.new(maincol2), "ref", Vector3.new(.05,alg2,.3)) | |
| 497 | efekt2.Anchored=true | |
| 498 | efekt2.CanCollide=false | |
| 499 | spinny2.CFrame = spinny2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 500 | spinny2.Position = hit.Parent.Torso.Position | |
| 501 | efekt2.CFrame=spinny2.CFrame*CFrame.new(aoeconstant-5,0,0) | |
| 502 | game:GetService("Debris"):AddItem(efekt2, .7)
| |
| 503 | swait() | |
| 504 | end | |
| 505 | end) | |
| 506 | ||
| 507 | local rl = Create("BodyAngularVelocity"){
| |
| 508 | P = 500, | |
| 509 | maxTorque = Vector3.new(10, 10, 10), | |
| 510 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 511 | Parent = hit, | |
| 512 | } | |
| 513 | game:GetService("Debris"):AddItem(rl, 10)
| |
| 514 | game:GetService("Debris"):AddItem(floatybits, 10)
| |
| 515 | game:GetService("Debris"):AddItem(vp, .5)
| |
| 516 | ||
| 517 | elseif Type == "Up" then | |
| 518 | local bodyVelocity = Create("BodyVelocity"){
| |
| 519 | velocity = Vector3.new(0, 20, 0), | |
| 520 | P = 5000, | |
| 521 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 522 | Parent = hit, | |
| 523 | } | |
| 524 | game:GetService("Debris"):AddItem(bodyVelocity, .5)
| |
| 525 | elseif Type == "DarkUp" then | |
| 526 | coroutine.resume(coroutine.create(function() | |
| 527 | for i = 0, 1, 0.1 do | |
| 528 | swait() | |
| 529 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
| |
| 530 | end | |
| 531 | end)) | |
| 532 | local bodyVelocity = Create("BodyVelocity"){
| |
| 533 | velocity = Vector3.new(0, 20, 0), | |
| 534 | P = 5000, | |
| 535 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 536 | Parent = hit, | |
| 537 | } | |
| 538 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 539 | elseif Type == "Snare" then | |
| 540 | local bp = Create("BodyPosition"){
| |
| 541 | P = 2000, | |
| 542 | D = 100, | |
| 543 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 544 | position = hit.Parent.Torso.Position, | |
| 545 | Parent = hit.Parent.Torso, | |
| 546 | } | |
| 547 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 548 | elseif Type == "Freeze" then | |
| 549 | local BodPos = Create("BodyPosition"){
| |
| 550 | P = 50000, | |
| 551 | D = 1000, | |
| 552 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 553 | position = hit.Parent.Torso.Position, | |
| 554 | Parent = hit.Parent.Torso, | |
| 555 | } | |
| 556 | local BodGy = Create("BodyGyro") {
| |
| 557 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
| 558 | P = 20e+003, | |
| 559 | Parent = hit.Parent.Torso, | |
| 560 | cf = hit.Parent.Torso.CFrame, | |
| 561 | } | |
| 562 | hit.Parent.Torso.Anchored = true | |
| 563 | coroutine.resume(coroutine.create(function(Part) | |
| 564 | swait(1.5) | |
| 565 | Part.Anchored = false | |
| 566 | end), hit.Parent.Torso) | |
| 567 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 568 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 569 | end | |
| 570 | local debounce = Create("BoolValue"){
| |
| 571 | Name = "DebounceHit", | |
| 572 | Parent = hit.Parent, | |
| 573 | Value = true, | |
| 574 | } | |
| 575 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 576 | c = Create("ObjectValue"){
| |
| 577 | Name = "creator", | |
| 578 | Value = Player, | |
| 579 | Parent = h, | |
| 580 | } | |
| 581 | game:GetService("Debris"):AddItem(c, .5)
| |
| 582 | end | |
| 583 | end | |
| 584 | ||
| 585 | function ShowDamage(Pos, Text, Time, Color) | |
| 586 | local Rate = (1 / 60) | |
| 587 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
| 588 | local Text = (Text or "") | |
| 589 | local Time = (Time or 2) | |
| 590 | local Color = (Color or Color3.new(1, 0, 1)) | |
| 591 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 592 | EffectPart.Anchored = true | |
| 593 | local BillboardGui = Create("BillboardGui"){
| |
| 594 | Size = UDim2.new(3, 0, 3, 0), | |
| 595 | Adornee = EffectPart, | |
| 596 | Parent = EffectPart, | |
| 597 | } | |
| 598 | local TextLabel = Create("TextLabel"){
| |
| 599 | BackgroundTransparency = 1, | |
| 600 | Size = UDim2.new(1, 0, 1, 0), | |
| 601 | Text = Text, | |
| 602 | Font = "SourceSansLight", | |
| 603 | TextColor3 = Color, | |
| 604 | TextScaled = true, | |
| 605 | Parent = BillboardGui, | |
| 606 | } | |
| 607 | game.Debris:AddItem(EffectPart, (Time)) | |
| 608 | EffectPart.Parent = game:GetService("Workspace")
| |
| 609 | delay(0, function() | |
| 610 | local Frames = (Time / Rate) | |
| 611 | for Frame = 1, Frames do | |
| 612 | wait(Rate) | |
| 613 | local Percent = (Frame / Frames) | |
| 614 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 615 | TextLabel.TextTransparency = Percent | |
| 616 | end | |
| 617 | if EffectPart and EffectPart.Parent then | |
| 618 | EffectPart:Destroy() | |
| 619 | end | |
| 620 | end) | |
| 621 | end | |
| 622 | ||
| 623 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
| 624 | for _, c in pairs(workspace:children()) do | |
| 625 | local hum = c:findFirstChild("Humanoid")
| |
| 626 | if hum ~= nil then | |
| 627 | local head = c:findFirstChild("Torso")
| |
| 628 | if head ~= nil then | |
| 629 | local targ = head.Position - Part.Position | |
| 630 | local mag = targ.magnitude | |
| 631 | if mag <= Magnitude and c.Name ~= Player.Name then | |
| 632 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, 10, "rbxassetid://" .. HitSound, HitPitch) | |
| 633 | end | |
| 634 | end | |
| 635 | end | |
| 636 | end | |
| 637 | end | |
| 638 | ||
| 639 | EffectModel = Create("Model"){
| |
| 640 | Parent = Character, | |
| 641 | Name = "EffectModel", | |
| 642 | } | |
| 643 | ||
| 644 | Effects = {
| |
| 645 | Block = {
| |
| 646 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, Part) | |
| 647 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 648 | prt.Anchored = true | |
| 649 | prt.CFrame = cframe | |
| 650 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 651 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 652 | if Type == 1 or Type == nil then | |
| 653 | table.insert(Effects, {
| |
| 654 | prt, | |
| 655 | "Block1", | |
| 656 | delay, | |
| 657 | x3, | |
| 658 | y3, | |
| 659 | z3, | |
| 660 | msh | |
| 661 | }) | |
| 662 | elseif Type == 2 then | |
| 663 | table.insert(Effects, {
| |
| 664 | prt, | |
| 665 | "Block2", | |
| 666 | delay, | |
| 667 | x3, | |
| 668 | y3, | |
| 669 | z3, | |
| 670 | msh | |
| 671 | }) | |
| 672 | elseif Type == 3 then | |
| 673 | table.insert(Effects, {
| |
| 674 | prt, | |
| 675 | "Block3", | |
| 676 | delay, | |
| 677 | x3, | |
| 678 | y3, | |
| 679 | z3, | |
| 680 | msh, | |
| 681 | Part | |
| 682 | }) | |
| 683 | elseif Type == 4 then | |
| 684 | table.insert(Effects, {
| |
| 685 | prt, | |
| 686 | "Block2Fire", | |
| 687 | delay, | |
| 688 | x3, | |
| 689 | y3, | |
| 690 | z3, | |
| 691 | msh | |
| 692 | }) | |
| 693 | end | |
| 694 | end | |
| 695 | }; | |
| 696 | ||
| 697 | Sphere = {
| |
| 698 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, parent) | |
| 699 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 700 | prt.Anchored = true | |
| 701 | prt.CFrame = cframe | |
| 702 | if parent == nil then | |
| 703 | prt.Parent = workspace | |
| 704 | else | |
| 705 | prt.Parent = parent | |
| 706 | end | |
| 707 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 708 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 709 | table.insert(Effects, {
| |
| 710 | prt, | |
| 711 | "Cylinder", | |
| 712 | delay, | |
| 713 | x3, | |
| 714 | y3, | |
| 715 | z3, | |
| 716 | msh | |
| 717 | }) | |
| 718 | end | |
| 719 | }; | |
| 720 | ||
| 721 | Blood = {
| |
| 722 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 723 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 724 | prt.Anchored = true | |
| 725 | prt.CFrame = cframe | |
| 726 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 727 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 728 | table.insert(Effects, {
| |
| 729 | prt, | |
| 730 | "Blood", | |
| 731 | delay, | |
| 732 | x3, | |
| 733 | y3, | |
| 734 | z3, | |
| 735 | msh | |
| 736 | }) | |
| 737 | end | |
| 738 | }; | |
| 739 | ||
| 740 | Blast = {
| |
| 741 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Part) | |
| 742 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 743 | prt.Anchored = true | |
| 744 | prt.CFrame = cframe | |
| 745 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "1323306", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 746 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 747 | table.insert(Effects, {
| |
| 748 | prt, | |
| 749 | "Block4", | |
| 750 | delay, | |
| 751 | x3, | |
| 752 | y3, | |
| 753 | z3, | |
| 754 | msh, | |
| 755 | Part | |
| 756 | }) | |
| 757 | end | |
| 758 | }; | |
| 759 | ||
| 760 | Ring = {
| |
| 761 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 762 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 763 | prt.Anchored = true | |
| 764 | prt.CFrame = cframe | |
| 765 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 766 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 767 | table.insert(Effects, {
| |
| 768 | prt, | |
| 769 | "Cylinder", | |
| 770 | delay, | |
| 771 | x3, | |
| 772 | y3, | |
| 773 | z3, | |
| 774 | msh | |
| 775 | }) | |
| 776 | end | |
| 777 | }; | |
| 778 | ||
| 779 | Cylinder = {
| |
| 780 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 781 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 782 | prt.Anchored = true | |
| 783 | prt.CFrame = cframe | |
| 784 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 785 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 786 | table.insert(Effects, {
| |
| 787 | prt, | |
| 788 | "Cylinder", | |
| 789 | delay, | |
| 790 | x3, | |
| 791 | y3, | |
| 792 | z3, | |
| 793 | msh | |
| 794 | }) | |
| 795 | end | |
| 796 | }; | |
| 797 | ||
| 798 | Head = {
| |
| 799 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 800 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 801 | prt.Anchored = true | |
| 802 | prt.CFrame = cframe | |
| 803 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 804 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 805 | table.insert(Effects, {
| |
| 806 | prt, | |
| 807 | "Cylinder", | |
| 808 | delay, | |
| 809 | x3, | |
| 810 | y3, | |
| 811 | z3, | |
| 812 | msh | |
| 813 | }) | |
| 814 | end | |
| 815 | }; | |
| 816 | ||
| 817 | Wave = {
| |
| 818 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 819 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 820 | prt.Anchored = true | |
| 821 | prt.CFrame = cframe | |
| 822 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 823 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 824 | table.insert(Effects, {
| |
| 825 | prt, | |
| 826 | "Cylinder", | |
| 827 | delay, | |
| 828 | x3, | |
| 829 | y3, | |
| 830 | z3, | |
| 831 | msh | |
| 832 | }) | |
| 833 | end | |
| 834 | }; | |
| 835 | ||
| 836 | Break = {
| |
| 837 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 838 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 839 | prt.Anchored = true | |
| 840 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 841 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 842 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 843 | local num = math.random(10, 50) / 1000 | |
| 844 | table.insert(Effects, {
| |
| 845 | prt, | |
| 846 | "Shatter", | |
| 847 | num, | |
| 848 | prt.CFrame, | |
| 849 | math.random() - math.random(), | |
| 850 | 0, | |
| 851 | math.random(50, 100) / 100 | |
| 852 | }) | |
| 853 | end | |
| 854 | }; | |
| 855 | ||
| 856 | Elec = {
| |
| 857 | Create = function(brickcolor, cff, x, y, z) | |
| 858 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1)) | |
| 859 | prt.Anchored = true | |
| 860 | prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100) | |
| 861 | prt.CFrame = CFrame.new(prt.Position) | |
| 862 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 863 | xval = math.random() / 9 | |
| 864 | yval = math.random() / 9 | |
| 865 | zval = math.random() / 9 | |
| 866 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
| |
| 867 | eul1 = math.random(-50, 50) | |
| 868 | eul2 = math.random(-50, 50) | |
| 869 | eul3 = math.random(-50, 50) | |
| 870 | euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3) | |
| 871 | euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3) | |
| 872 | table.insert(Effects, {
| |
| 873 | prt, | |
| 874 | "Elec", | |
| 875 | .05, | |
| 876 | x, | |
| 877 | y, | |
| 878 | z, | |
| 879 | xval, | |
| 880 | yval, | |
| 881 | zval, | |
| 882 | msh, | |
| 883 | euld, | |
| 884 | euld2 | |
| 885 | }) | |
| 886 | end | |
| 887 | }; | |
| 888 | ||
| 889 | Elec2 = {
| |
| 890 | Create = function(brickcolor, cff, x, y, z) | |
| 891 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1)) | |
| 892 | prt.Anchored = true | |
| 893 | prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100) | |
| 894 | prt.CFrame = CFrame.new(prt.Position) | |
| 895 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 896 | xval = math.random() / 7 | |
| 897 | yval = math.random() / 7 | |
| 898 | zval = math.random() / 7 | |
| 899 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
| |
| 900 | eul1 = math.random(-50, 50) | |
| 901 | eul2 = math.random(-50, 50) | |
| 902 | eul3 = math.random(-50, 50) | |
| 903 | euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3) | |
| 904 | euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3) | |
| 905 | table.insert(Effects, {
| |
| 906 | prt, | |
| 907 | "Elec", | |
| 908 | .1, | |
| 909 | x, | |
| 910 | y, | |
| 911 | z, | |
| 912 | xval, | |
| 913 | yval, | |
| 914 | zval, | |
| 915 | msh, | |
| 916 | euld, | |
| 917 | euld2 | |
| 918 | }) | |
| 919 | end | |
| 920 | }; | |
| 921 | ||
| 922 | Clone = {
| |
| 923 | Create = function() | |
| 924 | for _, v in pairs(Torso.Parent:children()) do | |
| 925 | if v.className == "Part" and v.Name ~= "HumanoidRootPart" then | |
| 926 | local c = CFuncs.Part.Create(EffectModel, "Neon", 0, .5, BrickColor.new("Bright blue"), "Effect", v.Size)
| |
| 927 | c.Anchored = true | |
| 928 | c.CFrame = v.CFrame | |
| 929 | game:GetService("Debris"):AddItem(c, 5)
| |
| 930 | local cmsh = nil | |
| 931 | if v.Name == "Head" then | |
| 932 | cmsh = CFuncs.Mesh.Create("SpecialMesh", c, "Head", "", Vector3.new(0, 0, 0), v.Mesh.Scale)
| |
| 933 | else | |
| 934 | cmsh = CFuncs.Mesh.Create("BlockMesh", c, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 935 | end | |
| 936 | table.insert(Effects, {
| |
| 937 | c, | |
| 938 | "Cylinder", | |
| 939 | 0.05, | |
| 940 | 0.1, | |
| 941 | 0.1, | |
| 942 | 0.1, | |
| 943 | cmsh | |
| 944 | }) | |
| 945 | end | |
| 946 | end | |
| 947 | end | |
| 948 | }; | |
| 949 | ||
| 950 | EffectTemplate = {
| |
| 951 | ||
| 952 | }; | |
| 953 | } | |
| 954 | ||
| 955 | ||
| 956 | ||
| 957 | ||
| 958 | ||
| 959 | ||
| 960 | ||
| 961 | Mouse.Button1Down:connect(function() | |
| 962 | if Mouse ~= nil then | |
| 963 | if Mouse.Target ~= nil then | |
| 964 | part = Mouse.Target | |
| 965 | bp = Instance.new("BodyPosition",part)
| |
| 966 | bp.MaxForce = Vector3.new(5000,5000,5000) | |
| 967 | bp.Position = part.Position | |
| 968 | dwn = true | |
| 969 | end | |
| 970 | while dwn == true do | |
| 971 | wait() | |
| 972 | bp.Position = Mouse.hit.p | |
| 973 | if part then | |
| 974 | if part.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 975 | part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
| |
| 976 | end | |
| 977 | end | |
| 978 | end | |
| 979 | end | |
| 980 | end) | |
| 981 | Mouse.Button1Up:connect(function() | |
| 982 | dwn = false | |
| 983 | if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
| |
| 984 | if bp then bp:Destroy() end | |
| 985 | end) | |
| 986 | ||
| 987 | ||
| 988 | Mouse.KeyDown:connect(function(k) | |
| 989 | k = k:lower() | |
| 990 | if k == 'm' then | |
| 991 | ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 5, 0)), quotes[math.random(#quotes)], 5, BrickColor.new(maincol2).Color) | |
| 992 | playlist:Destroy() | |
| 993 | playlist=Instance.new("Sound", Torso)
| |
| 994 | playlist.SoundId = "rbxassetid://" ..songs[math.random(#songs)] | |
| 995 | playlist.Volume = 10 | |
| 996 | playlist.Looped = false | |
| 997 | playlist.Name = "playlist" | |
| 998 | - | playlist.Volume = 5 |
| 998 | + | |
| 999 | elseif k == 'n' and circleinthesky == false then | |
| 1000 | circleinthesky = true | |
| 1001 | elseif k == 'n' and circleinthesky == true then | |
| 1002 | circleinthesky = false | |
| 1003 | end | |
| 1004 | end) | |
| 1005 | ||
| 1006 | ||
| 1007 | ||
| 1008 | while true do | |
| 1009 | swait() | |
| 1010 | for i, v in pairs(Character:GetChildren()) do | |
| 1011 | if v:IsA("Part") then
| |
| 1012 | v.Material = "SmoothPlastic" | |
| 1013 | elseif v:IsA("Accessory") then
| |
| 1014 | v:WaitForChild("Handle").Material = "SmoothPlastic"
| |
| 1015 | end | |
| 1016 | end | |
| 1017 | for i, v in pairs(Character:GetChildren()) do | |
| 1018 | if v:IsA'Model' then | |
| 1019 | for _, c in pairs(v:GetChildren()) do | |
| 1020 | if c:IsA'Part' then | |
| 1021 | c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
| 1022 | end | |
| 1023 | end | |
| 1024 | end | |
| 1025 | end | |
| 1026 | if playlist.IsPlaying == false then | |
| 1027 | ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 5, 0)), quotes[math.random(#quotes)], 5, BrickColor.new(maincol2).Color) | |
| 1028 | playlist:Destroy() | |
| 1029 | playlist=Instance.new("Sound", Torso)
| |
| 1030 | playlist.SoundId = "rbxassetid://" ..songs[math.random(#songs)] | |
| 1031 | playlist.Volume = 10 | |
| 1032 | playlist.Looped = false | |
| 1033 | playlist.Name = "playlist" | |
| 1034 | - | playlist.Volume = 5 |
| 1034 | + | |
| 1035 | end | |
| 1036 | TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 1037 | Velocity = RootPart.Velocity.y | |
| 1038 | Sine = Sine + Change | |
| 1039 | local hit, pos = RayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
| 1040 | if RootPart.Velocity.y > 1 and hit == nil then | |
| 1041 | Anim = "Jump" | |
| 1042 | if Attack == false then | |
| 1043 | Change = 1 | |
| 1044 | PlayAnimationFromTable({
| |
| 1045 | CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0), | |
| 1046 | CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .05 * math.cos(Sine/35), 0, 0), | |
| 1047 | CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), | |
| 1048 | CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), | |
| 1049 | CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0), | |
| 1050 | CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0), | |
| 1051 | }, .3, false) | |
| 1052 | MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8) | |
| 1053 | end | |
| 1054 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
| 1055 | Anim = "Fall" | |
| 1056 | if Attack == false then | |
| 1057 | Change = 1 | |
| 1058 | PlayAnimationFromTable({
| |
| 1059 | CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0), | |
| 1060 | CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .05 * math.cos(Sine/35), 0, 0), | |
| 1061 | CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), | |
| 1062 | CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), | |
| 1063 | CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0), | |
| 1064 | CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0), | |
| 1065 | }, .3, false) | |
| 1066 | MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8) | |
| 1067 | end | |
| 1068 | elseif TorsoVelocity < 1 and hit ~= nil then | |
| 1069 | Anim = "Idle" | |
| 1070 | if Attack == false then | |
| 1071 | Change = 1 | |
| 1072 | PlayAnimationFromTable({
| |
| 1073 | CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0), | |
| 1074 | CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .1 * math.cos(Sine/35), 0, 0), | |
| 1075 | CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), | |
| 1076 | CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), | |
| 1077 | CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0), | |
| 1078 | CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0), | |
| 1079 | }, .3, false) | |
| 1080 | MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8) | |
| 1081 | end | |
| 1082 | elseif TorsoVelocity > 2 and hit ~= nil then | |
| 1083 | Anim = "Walk" | |
| 1084 | if Attack == false then | |
| 1085 | PlayAnimationFromTable({
| |
| 1086 | CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0), | |
| 1087 | CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .05 * math.cos(Sine/35), 0, 0), | |
| 1088 | CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), | |
| 1089 | CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), | |
| 1090 | CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0), | |
| 1091 | CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0), | |
| 1092 | }, .3, false) | |
| 1093 | MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8) | |
| 1094 | end | |
| 1095 | end | |
| 1096 | if #Effects > 0 then | |
| 1097 | for e = 1, #Effects do | |
| 1098 | if Effects[e] ~= nil then | |
| 1099 | local Thing = Effects[e] | |
| 1100 | if Thing ~= nil then | |
| 1101 | local Part = Thing[1] | |
| 1102 | local Mode = Thing[2] | |
| 1103 | local Delay = Thing[3] | |
| 1104 | local IncX = Thing[4] | |
| 1105 | local IncY = Thing[5] | |
| 1106 | if Thing[1].Transparency <= 1 then | |
| 1107 | if Thing[2] == "Block1" then | |
| 1108 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1109 | Mesh = Thing[7] | |
| 1110 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1111 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1112 | elseif Thing[2] == "Ice" then | |
| 1113 | if Thing[6] <= Thing[5] then | |
| 1114 | Thing[6] = Thing[6] + .05 | |
| 1115 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, .4, 0) | |
| 1116 | else | |
| 1117 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1118 | end | |
| 1119 | elseif Thing[2] == "Shatter" then | |
| 1120 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1121 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
| 1122 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 1123 | Thing[6] = Thing[6] + Thing[5] | |
| 1124 | elseif Thing[2] == "Block2" then | |
| 1125 | Thing[1].CFrame = Thing[1].CFrame | |
| 1126 | Mesh = Thing[7] | |
| 1127 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1128 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1129 | elseif Thing[2] == "Block3" then | |
| 1130 | Thing[1].CFrame = Thing[8].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1131 | Mesh = Thing[7] | |
| 1132 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1133 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1134 | elseif Thing[2] == "Block4" then | |
| 1135 | Thing[1].CFrame = Thing[8].CFrame * CFrame.new(0, -Thing[7].Scale.Y, 0) * CFrame.fromEulerAnglesXYZ(3.14, 0, 0) | |
| 1136 | Mesh = Thing[7] | |
| 1137 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1138 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1139 | elseif Thing[2] == "Block2Fire" then | |
| 1140 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1141 | Mesh = Thing[7] | |
| 1142 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1143 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1144 | if Thing[1].Transparency >= .3 then | |
| 1145 | Thing[1].BrickColor = BrickColor.new("Bright red")
| |
| 1146 | else | |
| 1147 | Thing[1].BrickColor = BrickColor.new("Bright yellow")
| |
| 1148 | end | |
| 1149 | elseif Thing[2] == "Cylinder" then | |
| 1150 | Mesh = Thing[7] | |
| 1151 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1152 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1153 | elseif Thing[2] == "Blood" then | |
| 1154 | Mesh = Thing[7] | |
| 1155 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, -.5, 0) | |
| 1156 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1157 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1158 | elseif Thing[2] == "Elec" then | |
| 1159 | Mesh = Thing[10] | |
| 1160 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 1161 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1162 | Thing[1].CFrame = Thing[1].CFrame * Thing[11] * CFrame.new(0, 0, .2) | |
| 1163 | Thing[1].Rotation = Vector3.new(0, 0, 0) | |
| 1164 | elseif Thing[2] == "Disappear" then | |
| 1165 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1166 | end | |
| 1167 | else | |
| 1168 | Part.Parent = nil | |
| 1169 | table.remove(Effects, e) | |
| 1170 | end | |
| 1171 | end | |
| 1172 | end | |
| 1173 | end | |
| 1174 | end | |
| 1175 | local alg = math.floor(playlist.PlaybackLoudness)/500 | |
| 1176 | local alg2 = math.floor(playlist.PlaybackLoudness)/80 | |
| 1177 | ||
| 1178 | if circleinthesky == false then | |
| 1179 | FloatField2.BrickColor = BrickColor.new(maincol2) | |
| 1180 | spinny.Position = Torso.Position | |
| 1181 | spinny.CFrame = spinny.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 1182 | efekt=CFuncs.Part.Create(Torso, "Neon", 0, .3, BrickColor.new(maincol2), "ref", Vector3.new(.05,alg2,.3)) | |
| 1183 | efekt.Anchored=true | |
| 1184 | efekt.CanCollide=false | |
| 1185 | game:GetService("Debris"):AddItem(efekt, .5)
| |
| 1186 | --ShowDamage((efekt.CFrame * CFrame.new(0, 0, (Torso.Size.Z / 102)).p + Vector3.new(0, 0, 0)), ".", 1, BrickColor.new(maincol2).Color) | |
| 1187 | efekt.CFrame=spinny.CFrame*CFrame.new(aoeconstant,0,0) | |
| 1188 | ||
| 1189 | elseif circleinthesky == true then | |
| 1190 | ||
| 1191 | FloatField2.BrickColor = BrickColor.new(maincol2) | |
| 1192 | spinny.Position = Torso.Position | |
| 1193 | spinny.CFrame = spinny.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 1194 | efekt=CFuncs.Part.Create(Torso, "Neon", 0, .3, BrickColor.new(maincol2), "ref", Vector3.new(1+alg2,.05,.3)) | |
| 1195 | efekt.Anchored=true | |
| 1196 | efekt.CanCollide=false | |
| 1197 | efekt2=CFuncs.Part.Create(Torso, "Neon", 0, .3, BrickColor.new(maincol2), "ref", Vector3.new(alg2,.05,.3)) | |
| 1198 | efekt2.Anchored=true | |
| 1199 | efekt2.CanCollide=false | |
| 1200 | game:GetService("Debris"):AddItem(efekt, 2)
| |
| 1201 | game:GetService("Debris"):AddItem(efekt2, 2)
| |
| 1202 | --ShowDamage((efekt.CFrame * CFrame.new(0, 0, (Torso.Size.Z / 102)).p + Vector3.new(0, 0, 0)), ".", 1, BrickColor.new(maincol2).Color) | |
| 1203 | efekt.CFrame=spinny.CFrame*CFrame.new(aoeconstant,20,0) | |
| 1204 | efekt2.CFrame=spinny.CFrame*CFrame.new(aoeconstant-4,10,0) | |
| 1205 | end | |
| 1206 | humanoid.Health = math.huge | |
| 1207 | soundbork(workspace) | |
| 1208 | end |