SHOW:
|
|
- or go back to the newest paste.
| 1 | --[[Nocturna_A._Alteriano_Night.Owl.Inc]]-- | |
| 2 | --[[the different world by Windowsxd_Infinite | |
| 3 | __ __ __ __ | |
| 4 | /\ \ __/\ \ __ /\ \ /\ \ | |
| 5 | \ \ \/\ \ \ \/\_\ ___ \_\ \ ___ __ __ __ ____ __ _ \_\ \ | |
| 6 | \ \ \ \ \ \ \/\ \ /' _ `\ /'_` \ / __`\/\ \/\ \/\ \ /',__\/\ \/'\ /'_` \ | |
| 7 | \ \ \_/ \_\ \ \ \/\ \/\ \/\ \L\ \/\ \L\ \ \ \_/ \_/ \/\__, `\/> <//\ \L\ \ | |
| 8 | \ `\___x___/\ \_\ \_\ \_\ \___,_\ \____/\ \___x___/'\/\____//\_/\_\ \___,_\ | |
| 9 | '\/__//__/ \/_/\/_/\/_/\/__,_ /\/___/ \/__//__/ \/___/ \//\/_/\/__,_ / | |
| 10 | ]] | |
| 11 | wait(1 / 60) | |
| 12 | Effects = { }
| |
| 13 | script.Name = 'different world' | |
| 14 | - | local Player = game.Players.localPlayer |
| 14 | + | local Player = game.Players.ironsight7 |
| 15 | local Character = Player.Character | |
| 16 | ||
| 17 | local Humanoid = Character:FindFirstChildOfClass('Humanoid')
| |
| 18 | local hum = Humanoid | |
| 19 | local Mouse = Player:GetMouse() | |
| 20 | local jumppower = 150 | |
| 21 | local LeftArm = Character["Left Arm"] | |
| 22 | local RightArm = Character["Right Arm"] | |
| 23 | local LeftLeg = Character["Left Leg"] | |
| 24 | local RightLeg = Character["Right Leg"] | |
| 25 | local Head = Character.Head | |
| 26 | local Torso = Character.Torso | |
| 27 | local limited = false | |
| 28 | local Camera = game.Workspace.CurrentCamera | |
| 29 | local cmon = false | |
| 30 | local dying = false | |
| 31 | local RootPart = Character.HumanoidRootPart | |
| 32 | local RootJoint = RootPart.RootJoint | |
| 33 | local jumping = false | |
| 34 | local attack = false | |
| 35 | local Anim = 'Idle' | |
| 36 | local nomusic = false | |
| 37 | - | local soundid = '804615998' |
| 37 | + | local soundid = '335416718' |
| 38 | local volume = 3 | |
| 39 | local pit = 1 | |
| 40 | local form = false | |
| 41 | local gunout = false | |
| 42 | local attacktype = 1 | |
| 43 | local amount = 12 | |
| 44 | local par = Head | |
| 45 | if limited == false then | |
| 46 | amount = math.huge | |
| 47 | end | |
| 48 | ||
| 49 | print(amount..' is the maximum amount of lasers') | |
| 50 | local bullets = amount | |
| 51 | local kicking = false | |
| 52 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 53 | local velocity = RootPart.Velocity.y | |
| 54 | local sine = 0 | |
| 55 | local change = 1 | |
| 56 | local Create = LoadLibrary("RbxUtility").Create
| |
| 57 | ||
| 58 | local col = Character['Body Colors'] | |
| 59 | New = function(Object, Parent, Name, Data) | |
| 60 | local Object = Instance.new(Object) | |
| 61 | for Index, Value in pairs(Data or {}) do
| |
| 62 | Object[Index] = Value | |
| 63 | end | |
| 64 | Object.Parent = Parent | |
| 65 | Object.Name = Name | |
| 66 | return Object | |
| 67 | end | |
| 68 | for i, v in pairs(Character:GetChildren()) do | |
| 69 | if v:IsA("Accessory") then
| |
| 70 | v:Destroy() | |
| 71 | end | |
| 72 | end | |
| 73 | ||
| 74 | Head:WaitForChild('face', true):Destroy()
| |
| 75 | Mesh = New("SpecialMesh",LeftLeg,"Mesh",{Offset = Vector3.new(0.100000001, 0, -0.100000001),MeshId = "rbxassetid://1875778314",MeshType = Enum.MeshType.FileMesh,})
| |
| 76 | Mesh = New("SpecialMesh",LeftArm,"Mesh",{MeshId = "rbxassetid://1875724217",MeshType = Enum.MeshType.FileMesh,})
| |
| 77 | Mesh = New("SpecialMesh",RightArm,"Mesh",{MeshId = "rbxassetid://1875724217",MeshType = Enum.MeshType.FileMesh,})
| |
| 78 | Mesh = New("SpecialMesh",Torso,"Mesh",{Offset = Vector3.new(0, 0.0599999987, 0),MeshId = "rbxassetid://1875749311",MeshType = Enum.MeshType.FileMesh,})
| |
| 79 | Mesh = New("SpecialMesh",RightLeg,"Mesh",{Offset = Vector3.new(-0.100000001, 0, -0.100000001),MeshId = "rbxassetid://1875778314",MeshType = Enum.MeshType.FileMesh,})
| |
| 80 | Mesh = New("SpecialMesh",Head,"Mesh",{Scale = Vector3.new(0.5, 1, 1),MeshId = "rbxassetid://0",MeshType = Enum.MeshType.Brick,})
| |
| 81 | ||
| 82 | decals = function() | |
| 83 | Decal = New("Decal",Head,"Decal",{Texture = "http://www.roblox.com/asset/?id=1901415828",})
| |
| 84 | Decal = New("Decal",Head,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=1901488661",})
| |
| 85 | Decal = New("Decal",Head,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=1901527294",})
| |
| 86 | Decal = New("Decal",Head,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=1901566530",})
| |
| 87 | end | |
| 88 | --[[ | |
| 89 | - | Mesh = New("SpecialMesh",gun,"Mesh",{Offset = Vector3.new(0, 0.2, -0.5),Scale = Vector3.new(0.6, 0.6, 0.6),MeshId = "rbxassetid://542124581",TextureId = "rbxassetid://542125034",MeshType = Enum.MeshType.FileMesh,})
|
| 89 | + | |
| 90 | Mesh = New("SpecialMesh",gun,"Mesh",{Offset = Vector3.new(0, 0.2, -0.5),Scale = Vector3.new(0.6, 0.6, 0.6),MeshId = "rbxassetid://130099641",TextureId = "rbxassetid://209727730",MeshType = Enum.MeshType.FileMesh,})
| |
| 91 | mot = New("Weld",gun,"mot",{Part0 = gun,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0),C1 = CFrame.new(0.0599999428, -1.17000008, 0.0149999931, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 92 | ]] | |
| 93 | - | Mesh = New("SpecialMesh",gun,"Mesh",{Offset = Vector3.new(0, 0.200000003, -0.5),Scale = Vector3.new(0.600000024, 0.600000024, 0.600000024),MeshId = "rbxassetid://542124581",TextureId = "rbxassetid://542125034",MeshType = Enum.MeshType.FileMesh,})
|
| 93 | + | |
| 94 | Mesh = New("SpecialMesh",gun,"Mesh",{Offset = Vector3.new(0, 0.200000003, -0.5),Scale = Vector3.new(0.600000024, 0.600000024, 0.600000024),MeshId = "rbxassetid://130099641",TextureId = "rbxassetid://209727730",MeshType = Enum.MeshType.FileMesh,})
| |
| 95 | mot = New("Weld",gun,"mot",{Part0 = gun,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0),C1 = CFrame.new(0.0599999428, -1.17000008, 0.0149999931, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 96 | tip = New("Part",RightArm,"tip",{CanCollide = false,Transparency = 1,Transparency = 1,Size = Vector3.new(0.359999955, 0.340000063, 0.409999967),CFrame = CFrame.new(1.55999994, 0.0300002098, -0.675000012, 1, 0, 0, 0, 0, 1, 0, -1, 0),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 97 | mot = New("Weld",tip,"mot",{Part0 = tip,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0),C1 = CFrame.new(0.0599999428, -2.96999979, -0.675000012, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 98 | ||
| 99 | coroutine.wrap(function() | |
| 100 | RightLeg.Touched:connect(function(prt) | |
| 101 | if prt.Name == 'extra' and prt.ClassName == 'Part' then | |
| 102 | local thing = prt:WaitForChild('amount')
| |
| 103 | if thing ~= nil and thing.Value < 50 then | |
| 104 | print('added '.. thing.Value ..' extra energy')
| |
| 105 | bullets = bullets + thing.Value | |
| 106 | prt:Destroy() | |
| 107 | end | |
| 108 | end | |
| 109 | end) | |
| 110 | --dab | |
| 111 | end)() | |
| 112 | ||
| 113 | ||
| 114 | - | col.HeadColor = BrickColor.new('Medium stone grey')
|
| 114 | + | |
| 115 | - | col.LeftArmColor = BrickColor.new('Medium stone grey')
|
| 115 | + | col.HeadColor = BrickColor.new('Really black')
|
| 116 | - | col.RightArmColor = BrickColor.new('Medium stone grey')
|
| 116 | + | col.LeftArmColor = BrickColor.new('Really black')
|
| 117 | - | col.LeftLegColor = BrickColor.new('Medium stone grey')
|
| 117 | + | col.RightArmColor = BrickColor.new('Really black')
|
| 118 | - | col.RightLegColor = BrickColor.new('Medium stone grey')
|
| 118 | + | col.LeftLegColor = BrickColor.new('Really black')
|
| 119 | - | col.TorsoColor = BrickColor.new('Toothpaste')
|
| 119 | + | col.RightLegColor = BrickColor.new('Really black')
|
| 120 | col.TorsoColor = BrickColor.new('Crimson')
| |
| 121 | ||
| 122 | local ff = Instance.new('ForceField', Character)
| |
| 123 | ff.Visible = false | |
| 124 | ||
| 125 | hum.Name = '32ytd7284y6985y24805yn2839n5298' | |
| 126 | hum.MaxHealth = 1000 | |
| 127 | wait() | |
| 128 | hum.Health = 1000 | |
| 129 | function startm() | |
| 130 | if nomusic == false then | |
| 131 | local b = Instance.new('Sound', par)
| |
| 132 | b.SoundId = 'rbxassetid://' ..soundid | |
| 133 | b.Looped = true | |
| 134 | b.Volume = 3 | |
| 135 | b.Name = 'lol' | |
| 136 | b.Pitch = pit | |
| 137 | b:Play() | |
| 138 | coroutine.wrap(function() | |
| 139 | while true do | |
| 140 | timepos = b.TimePosition | |
| 141 | if par:FindFirstChild("lol") == nil then
| |
| 142 | local b = Instance.new('Sound', par)
| |
| 143 | b.SoundId = 'rbxassetid://'..soundid | |
| 144 | b.Looped = true | |
| 145 | b.Name = 'lol' | |
| 146 | b.Volume = 3 | |
| 147 | b.Pitch = pit | |
| 148 | b.TimePosition = timepos | |
| 149 | b:Play() | |
| 150 | end | |
| 151 | wait() | |
| 152 | end | |
| 153 | end)() | |
| 154 | end | |
| 155 | end | |
| 156 | local m = Create("Model"){
| |
| 157 | Parent = Character, | |
| 158 | Name = "WeaponModel", | |
| 159 | } | |
| 160 | ||
| 161 | Humanoid.Animator.Parent = nil | |
| 162 | Character.Animate.Parent = nil | |
| 163 | ||
| 164 | local newMotor = function(part0, part1, c0, c1) | |
| 165 | local w = Create('Motor'){
| |
| 166 | Parent = part0, | |
| 167 | Part0 = part0, | |
| 168 | Part1 = part1, | |
| 169 | C0 = c0, | |
| 170 | C1 = c1, | |
| 171 | } | |
| 172 | return w | |
| 173 | end | |
| 174 | ||
| 175 | function clerp(a, b, t) | |
| 176 | return a:lerp(b, t) | |
| 177 | end | |
| 178 | ||
| 179 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 180 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 181 | ||
| 182 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 183 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 184 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 185 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 186 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
| 187 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
| 188 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
| 189 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
| 190 | ||
| 191 | local rarmc1 = RW.C1 | |
| 192 | local larmc1 = LW.C1 | |
| 193 | local rlegc1 = RH.C1 | |
| 194 | local llegc1 = LH.C1 | |
| 195 | ||
| 196 | local resetc1 = false | |
| 197 | ||
| 198 | function PlayAnimationFromTable(table, speed, bool) | |
| 199 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
| 200 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
| 201 | RW.C0 = clerp(RW.C0, table[3], speed) | |
| 202 | LW.C0 = clerp(LW.C0, table[4], speed) | |
| 203 | RH.C0 = clerp(RH.C0, table[5], speed) | |
| 204 | LH.C0 = clerp(LH.C0, table[6], speed) | |
| 205 | if bool == true then | |
| 206 | if resetc1 == false then | |
| 207 | resetc1 = true | |
| 208 | RootJoint.C1 = RootJoint.C1 | |
| 209 | Torso.Neck.C1 = Torso.Neck.C1 | |
| 210 | RW.C1 = rarmc1 | |
| 211 | LW.C1 = larmc1 | |
| 212 | RH.C1 = rlegc1 | |
| 213 | LH.C1 = llegc1 | |
| 214 | end | |
| 215 | end | |
| 216 | end | |
| 217 | ||
| 218 | ArtificialHB = Create("BindableEvent", script){
| |
| 219 | Parent = script, | |
| 220 | Name = "Heartbeat", | |
| 221 | } | |
| 222 | ||
| 223 | script:WaitForChild("Heartbeat")
| |
| 224 | ||
| 225 | frame = 1 / 60 | |
| 226 | tf = 0 | |
| 227 | allowframeloss = false | |
| 228 | tossremainder = false | |
| 229 | lastframe = tick() | |
| 230 | script.Heartbeat:Fire() | |
| 231 | ||
| 232 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 233 | tf = tf + s | |
| 234 | if tf >= frame then | |
| 235 | if allowframeloss then | |
| 236 | script.Heartbeat:Fire() | |
| 237 | lastframe = tick() | |
| 238 | else | |
| 239 | for i = 1, math.floor(tf / frame) do | |
| 240 | script.Heartbeat:Fire() | |
| 241 | end | |
| 242 | lastframe = tick() | |
| 243 | end | |
| 244 | if tossremainder then | |
| 245 | tf = 0 | |
| 246 | else | |
| 247 | tf = tf - frame * math.floor(tf / frame) | |
| 248 | end | |
| 249 | end | |
| 250 | end) | |
| 251 | ||
| 252 | function swait(num) | |
| 253 | if num == 0 or num == nil then | |
| 254 | ArtificialHB.Event:wait() | |
| 255 | else | |
| 256 | for i = 0, num do | |
| 257 | ArtificialHB.Event:wait() | |
| 258 | end | |
| 259 | end | |
| 260 | end | |
| 261 | ||
| 262 | function RemoveOutlines(part) | |
| 263 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 264 | end | |
| 265 | ||
| 266 | CFuncs = {
| |
| 267 | ["Part"] = {
| |
| 268 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 269 | local Part = Create("Part"){
| |
| 270 | Parent = Parent, | |
| 271 | Reflectance = Reflectance, | |
| 272 | Transparency = Transparency, | |
| 273 | CanCollide = false, | |
| 274 | Locked = true, | |
| 275 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 276 | Name = Name, | |
| 277 | Size = Size, | |
| 278 | Material = Material, | |
| 279 | } | |
| 280 | RemoveOutlines(Part) | |
| 281 | return Part | |
| 282 | end; | |
| 283 | }; | |
| 284 | ||
| 285 | ["Mesh"] = {
| |
| 286 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 287 | local Msh = Create(Mesh){
| |
| 288 | Parent = Part, | |
| 289 | Offset = OffSet, | |
| 290 | Scale = Scale, | |
| 291 | } | |
| 292 | if Mesh == "SpecialMesh" then | |
| 293 | Msh.MeshType = MeshType | |
| 294 | Msh.MeshId = MeshId | |
| 295 | end | |
| 296 | return Msh | |
| 297 | end; | |
| 298 | }; | |
| 299 | ||
| 300 | ["Mesh"] = {
| |
| 301 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 302 | local Msh = Create(Mesh){
| |
| 303 | Parent = Part, | |
| 304 | Offset = OffSet, | |
| 305 | Scale = Scale, | |
| 306 | } | |
| 307 | if Mesh == "SpecialMesh" then | |
| 308 | Msh.MeshType = MeshType | |
| 309 | Msh.MeshId = MeshId | |
| 310 | end | |
| 311 | return Msh | |
| 312 | end; | |
| 313 | }; | |
| 314 | ||
| 315 | ["Weld"] = {
| |
| 316 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 317 | local Weld = Create("Weld"){
| |
| 318 | Parent = Parent, | |
| 319 | Part0 = Part0, | |
| 320 | Part1 = Part1, | |
| 321 | C0 = C0, | |
| 322 | C1 = C1, | |
| 323 | } | |
| 324 | return Weld | |
| 325 | end; | |
| 326 | }; | |
| 327 | ||
| 328 | ["Sound"] = {
| |
| 329 | Create = function(id, par, vol, pit) | |
| 330 | coroutine.resume(coroutine.create(function() | |
| 331 | local S = Create("Sound"){
| |
| 332 | Volume = vol, | |
| 333 | Pitch = pit or 1, | |
| 334 | SoundId = id, | |
| 335 | Parent = par or workspace, | |
| 336 | } | |
| 337 | wait() | |
| 338 | S:play() | |
| 339 | game:GetService("Debris"):AddItem(S, 6)
| |
| 340 | end)) | |
| 341 | end; | |
| 342 | }; | |
| 343 | ||
| 344 | ["ParticleEmitter"] = {
| |
| 345 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 346 | local fp = Create("ParticleEmitter"){
| |
| 347 | Parent = Parent, | |
| 348 | Color = ColorSequence.new(Color1, Color2), | |
| 349 | LightEmission = LightEmission, | |
| 350 | Size = Size, | |
| 351 | Texture = Texture, | |
| 352 | Transparency = Transparency, | |
| 353 | ZOffset = ZOffset, | |
| 354 | Acceleration = Accel, | |
| 355 | Drag = Drag, | |
| 356 | LockedToPart = LockedToPart, | |
| 357 | VelocityInheritance = VelocityInheritance, | |
| 358 | EmissionDirection = EmissionDirection, | |
| 359 | Enabled = Enabled, | |
| 360 | Lifetime = LifeTime, | |
| 361 | Rate = Rate, | |
| 362 | Rotation = Rotation, | |
| 363 | RotSpeed = RotSpeed, | |
| 364 | Speed = Speed, | |
| 365 | VelocitySpread = VelocitySpread, | |
| 366 | } | |
| 367 | return fp | |
| 368 | end; | |
| 369 | }; | |
| 370 | ||
| 371 | CreateTemplate = {
| |
| 372 | ||
| 373 | }; | |
| 374 | } | |
| 375 | ||
| 376 | function rayCast(Position, Direction, Range, Ignore) | |
| 377 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 378 | end | |
| 379 | ||
| 380 | FindNearestTorso = function(pos) | |
| 381 | local list = (game.Workspace:children()) | |
| 382 | local torso = nil | |
| 383 | local dist = 1000 | |
| 384 | local temp, human, temp2 = nil, nil, nil | |
| 385 | for x = 1, #list do | |
| 386 | temp2 = list[x] | |
| 387 | if temp2.className == "Model" and temp2.Name ~= Character.Name then | |
| 388 | temp = temp2:findFirstChild("Torso")
| |
| 389 | human = temp2:findFirstChild("Humanoid")
| |
| 390 | if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then | |
| 391 | local dohit = true | |
| 392 | if dohit == true then | |
| 393 | torso = temp | |
| 394 | dist = (temp.Position - pos).magnitude | |
| 395 | end | |
| 396 | end | |
| 397 | end | |
| 398 | end | |
| 399 | return torso, dist | |
| 400 | end | |
| 401 | ||
| 402 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 403 | if hit.Parent == nil then | |
| 404 | return | |
| 405 | end | |
| 406 | local h = hit.Parent:FindFirstChild("Humanoid")
| |
| 407 | for _, v in pairs(hit.Parent:children()) do | |
| 408 | if v:IsA("Humanoid") then
| |
| 409 | h = v | |
| 410 | end | |
| 411 | end | |
| 412 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 413 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then
| |
| 414 | if hit.Parent.DebounceHit.Value == true then | |
| 415 | return | |
| 416 | end | |
| 417 | end | |
| 418 | local c = Create("ObjectValue"){
| |
| 419 | Name = "creator", | |
| 420 | Value = game:service("Players").LocalPlayer,
| |
| 421 | Parent = h, | |
| 422 | } | |
| 423 | game:GetService("Debris"):AddItem(c, .5)
| |
| 424 | if HitSound ~= nil and HitPitch ~= nil then | |
| 425 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 426 | end | |
| 427 | local Damage = math.random(minim, maxim) | |
| 428 | local blocked = false | |
| 429 | local block = hit.Parent:findFirstChild("Block")
| |
| 430 | if block ~= nil then | |
| 431 | if block.className == "IntValue" then | |
| 432 | if block.Value > 0 then | |
| 433 | blocked = true | |
| 434 | block.Value = block.Value - 1 | |
| 435 | print(block.Value) | |
| 436 | end | |
| 437 | end | |
| 438 | end | |
| 439 | if blocked == false then | |
| 440 | h.Health = h.Health - Damage | |
| 441 | 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)
| |
| 442 | else | |
| 443 | h.Health = h.Health - (Damage / 2) | |
| 444 | 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)
| |
| 445 | end | |
| 446 | if Type == "Knockdown" then | |
| 447 | local hum = hit.Parent.Humanoid | |
| 448 | hum.PlatformStand = true | |
| 449 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 450 | swait(1) | |
| 451 | HHumanoid.PlatformStand = false | |
| 452 | end), hum) | |
| 453 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
| 454 | local bodvol = Create("BodyVelocity"){
| |
| 455 | velocity = angle * knockback, | |
| 456 | P = 5000, | |
| 457 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 458 | Parent = hit, | |
| 459 | } | |
| 460 | local rl = Create("BodyAngularVelocity"){
| |
| 461 | P = 3000, | |
| 462 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 463 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 464 | Parent = hit, | |
| 465 | } | |
| 466 | game:GetService("Debris"):AddItem(bodvol, .5)
| |
| 467 | game:GetService("Debris"):AddItem(rl, .5)
| |
| 468 | elseif Type == "Normal" then | |
| 469 | local vp = Create("BodyVelocity"){
| |
| 470 | P = 500, | |
| 471 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 472 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
| 473 | } | |
| 474 | if knockback > 0 then | |
| 475 | vp.Parent = hit.Parent.Torso | |
| 476 | end | |
| 477 | game:GetService("Debris"):AddItem(vp, .5)
| |
| 478 | elseif Type == "Up" then | |
| 479 | local bodyVelocity = Create("BodyVelocity"){
| |
| 480 | velocity = Vector3.new(0, 20, 0), | |
| 481 | P = 5000, | |
| 482 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 483 | Parent = hit, | |
| 484 | } | |
| 485 | game:GetService("Debris"):AddItem(bodyVelocity, .5)
| |
| 486 | elseif Type == "DarkUp" then | |
| 487 | coroutine.resume(coroutine.create(function() | |
| 488 | for i = 0, 1, 0.1 do | |
| 489 | swait() | |
| 490 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 25, 25, 25, 1, 1, 1, .08, 1)
| |
| 491 | end | |
| 492 | end)) | |
| 493 | local bodyVelocity = Create("BodyVelocity"){
| |
| 494 | velocity = Vector3.new(0, 20, 0), | |
| 495 | P = 5000, | |
| 496 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 497 | Parent = hit, | |
| 498 | } | |
| 499 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 500 | elseif Type == "Snare" then | |
| 501 | local bp = Create("BodyPosition"){
| |
| 502 | P = 2000, | |
| 503 | D = 100, | |
| 504 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 505 | position = hit.Parent.Torso.Position, | |
| 506 | Parent = hit.Parent.Torso, | |
| 507 | } | |
| 508 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 509 | elseif Type == "Freeze" then | |
| 510 | local BodPos = Create("BodyPosition"){
| |
| 511 | P = 50000, | |
| 512 | D = 1000, | |
| 513 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 514 | position = hit.Parent.Torso.Position, | |
| 515 | Parent = hit.Parent.Torso, | |
| 516 | } | |
| 517 | local BodGy = Create("BodyGyro") {
| |
| 518 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
| 519 | P = 20e+003, | |
| 520 | Parent = hit.Parent.Torso, | |
| 521 | cframe = hit.Parent.Torso.CFrame, | |
| 522 | } | |
| 523 | hit.Parent.Torso.Anchored = true | |
| 524 | coroutine.resume(coroutine.create(function(Part) | |
| 525 | swait(1.5) | |
| 526 | Part.Anchored = false | |
| 527 | end), hit.Parent.Torso) | |
| 528 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 529 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 530 | end | |
| 531 | local debounce = Create("BoolValue"){
| |
| 532 | Name = "DebounceHit", | |
| 533 | Parent = hit.Parent, | |
| 534 | Value = true, | |
| 535 | } | |
| 536 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 537 | c = Create("ObjectValue"){
| |
| 538 | Name = "creator", | |
| 539 | Value = Player, | |
| 540 | Parent = h, | |
| 541 | } | |
| 542 | game:GetService("Debris"):AddItem(c, .5)
| |
| 543 | end | |
| 544 | end | |
| 545 | ||
| 546 | function ShowDamage(Pos, Text, Time, Color, wid) | |
| 547 | local Rate = (1 / 30) | |
| 548 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
| 549 | local Text = (Text or "") | |
| 550 | local wid = (wid or 1) | |
| 551 | local Time = (Time or 2) | |
| 552 | local Color = (Color or Color3.new(1, 0, 1)) | |
| 553 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 554 | EffectPart.Anchored = true | |
| 555 | local BillboardGui = Create("BillboardGui"){
| |
| 556 | Size = UDim2.new(5, 0, 5, 0), | |
| 557 | Adornee = EffectPart, | |
| 558 | Parent = EffectPart, | |
| 559 | } | |
| 560 | local TextLabel = Create("TextLabel"){
| |
| 561 | BackgroundTransparency = 1, | |
| 562 | Size = UDim2.new(1, 0, 1, 0), | |
| 563 | Text = Text, | |
| 564 | Font = "Arcade", | |
| 565 | TextColor3 = Color, | |
| 566 | TextScaled = true, | |
| 567 | Parent = BillboardGui, | |
| 568 | } | |
| 569 | game.Debris:AddItem(EffectPart, (Time)) | |
| 570 | EffectPart.Parent = game:GetService("Workspace")
| |
| 571 | delay(0, function() | |
| 572 | local Frames = (Time / Rate) | |
| 573 | for Frame = 1, Frames do | |
| 574 | wait(Rate) | |
| 575 | local Percent = (Frame / Frames) | |
| 576 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 577 | TextLabel.TextTransparency = Percent | |
| 578 | end | |
| 579 | if EffectPart and EffectPart.Parent then | |
| 580 | EffectPart:Destroy() | |
| 581 | end | |
| 582 | end) | |
| 583 | end | |
| 584 | ||
| 585 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
| 586 | for _, c in pairs(workspace:children()) do | |
| 587 | local hum = c:findFirstChildOfClass("Humanoid")
| |
| 588 | if hum ~= nil then | |
| 589 | local head = c:findFirstChild("Head")
| |
| 590 | if head ~= nil then | |
| 591 | local targ = head.Position - Part.Position | |
| 592 | local mag = targ.magnitude | |
| 593 | if mag <= Magnitude and c.Name ~= Player.Name then | |
| 594 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch) | |
| 595 | end | |
| 596 | end | |
| 597 | end | |
| 598 | end | |
| 599 | end | |
| 600 | ||
| 601 | EffectModel = Create("Model"){
| |
| 602 | Parent = Character, | |
| 603 | Name = "Effects", | |
| 604 | } | |
| 605 | ||
| 606 | Effects = {
| |
| 607 | Block = {
| |
| 608 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 609 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 610 | prt.Anchored = true | |
| 611 | prt.CFrame = cframe | |
| 612 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 613 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 614 | if Type == 1 or Type == nil then | |
| 615 | table.insert(Effects, {
| |
| 616 | prt, | |
| 617 | "Block1", | |
| 618 | delay, | |
| 619 | x3, | |
| 620 | y3, | |
| 621 | z3, | |
| 622 | msh | |
| 623 | }) | |
| 624 | elseif Type == 2 then | |
| 625 | table.insert(Effects, {
| |
| 626 | prt, | |
| 627 | "Block2", | |
| 628 | delay, | |
| 629 | x3, | |
| 630 | y3, | |
| 631 | z3, | |
| 632 | msh | |
| 633 | }) | |
| 634 | end | |
| 635 | end; | |
| 636 | }; | |
| 637 | ||
| 638 | Implode = {
| |
| 639 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 640 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 641 | prt.Anchored = true | |
| 642 | prt.CFrame = cframe | |
| 643 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 644 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 645 | if Type == 1 or Type == nil then | |
| 646 | table.insert(Effects, {
| |
| 647 | prt, | |
| 648 | "Block1", | |
| 649 | delay, | |
| 650 | x3, | |
| 651 | y3, | |
| 652 | z3, | |
| 653 | msh | |
| 654 | }) | |
| 655 | elseif Type == 2 then | |
| 656 | table.insert(Effects, {
| |
| 657 | prt, | |
| 658 | "Block2", | |
| 659 | delay, | |
| 660 | x3, | |
| 661 | y3, | |
| 662 | z3, | |
| 663 | msh | |
| 664 | }) | |
| 665 | end | |
| 666 | end; | |
| 667 | }; | |
| 668 | ||
| 669 | Cylinder = {
| |
| 670 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 671 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 672 | prt.Anchored = true | |
| 673 | prt.CFrame = cframe | |
| 674 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 675 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 676 | table.insert(Effects, {
| |
| 677 | prt, | |
| 678 | "Cylinder", | |
| 679 | delay, | |
| 680 | x3, | |
| 681 | y3, | |
| 682 | z3, | |
| 683 | msh | |
| 684 | }) | |
| 685 | end; | |
| 686 | }; | |
| 687 | Rect = {
| |
| 688 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 689 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 690 | prt.Anchored = true | |
| 691 | prt.CFrame = cframe | |
| 692 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 693 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 694 | table.insert(Effects, {
| |
| 695 | prt, | |
| 696 | "Cylinder", | |
| 697 | delay, | |
| 698 | x3, | |
| 699 | y3, | |
| 700 | z3, | |
| 701 | msh | |
| 702 | }) | |
| 703 | end; | |
| 704 | }; | |
| 705 | ||
| 706 | Head = {
| |
| 707 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 708 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 709 | prt.Anchored = true | |
| 710 | prt.CFrame = cframe | |
| 711 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 712 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 713 | table.insert(Effects, {
| |
| 714 | prt, | |
| 715 | "Cylinder", | |
| 716 | delay, | |
| 717 | x3, | |
| 718 | y3, | |
| 719 | z3, | |
| 720 | msh | |
| 721 | }) | |
| 722 | end; | |
| 723 | }; | |
| 724 | ||
| 725 | Sphere = {
| |
| 726 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 727 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 728 | prt.Anchored = true | |
| 729 | prt.CFrame = cframe | |
| 730 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 731 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 732 | table.insert(Effects, {
| |
| 733 | prt, | |
| 734 | "Cylinder", | |
| 735 | delay, | |
| 736 | x3, | |
| 737 | y3, | |
| 738 | z3, | |
| 739 | msh | |
| 740 | }) | |
| 741 | end; | |
| 742 | }; | |
| 743 | ||
| 744 | Elect = {
| |
| 745 | Create = function(cff, x, y, z) | |
| 746 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
| |
| 747 | prt.Anchored = true | |
| 748 | prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
| 749 | prt.CFrame = CFrame.new(prt.Position) | |
| 750 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 751 | local xval = math.random() / 2 | |
| 752 | local yval = math.random() / 2 | |
| 753 | local zval = math.random() / 2 | |
| 754 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
| |
| 755 | table.insert(Effects, {
| |
| 756 | prt, | |
| 757 | "Elec", | |
| 758 | 0.1, | |
| 759 | x, | |
| 760 | y, | |
| 761 | z, | |
| 762 | xval, | |
| 763 | yval, | |
| 764 | zval | |
| 765 | }) | |
| 766 | end; | |
| 767 | ||
| 768 | }; | |
| 769 | ||
| 770 | Ring = {
| |
| 771 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 772 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 773 | prt.Anchored = true | |
| 774 | prt.CFrame = cframe | |
| 775 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 776 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 777 | table.insert(Effects, {
| |
| 778 | prt, | |
| 779 | "Cylinder", | |
| 780 | delay, | |
| 781 | x3, | |
| 782 | y3, | |
| 783 | z3, | |
| 784 | msh | |
| 785 | }) | |
| 786 | end; | |
| 787 | }; | |
| 788 | ||
| 789 | ||
| 790 | Wave = {
| |
| 791 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 792 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 793 | prt.Anchored = true | |
| 794 | prt.CFrame = cframe | |
| 795 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 796 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 797 | table.insert(Effects, {
| |
| 798 | prt, | |
| 799 | "Cylinder", | |
| 800 | delay, | |
| 801 | x3, | |
| 802 | y3, | |
| 803 | z3, | |
| 804 | msh | |
| 805 | }) | |
| 806 | end; | |
| 807 | }; | |
| 808 | ||
| 809 | Break = {
| |
| 810 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 811 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 812 | prt.Anchored = true | |
| 813 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 814 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 815 | local num = math.random(10, 50) / 1000 | |
| 816 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 817 | table.insert(Effects, {
| |
| 818 | prt, | |
| 819 | "Shatter", | |
| 820 | num, | |
| 821 | prt.CFrame, | |
| 822 | math.random() - math.random(), | |
| 823 | 0, | |
| 824 | math.random(50, 100) / 100 | |
| 825 | }) | |
| 826 | end; | |
| 827 | }; | |
| 828 | ||
| 829 | Fire = {
| |
| 830 | Create = function(brickcolor, cframe, x1, y1, z1, delay) | |
| 831 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 832 | prt.Anchored = true | |
| 833 | prt.CFrame = cframe | |
| 834 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 835 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 836 | table.insert(Effects, {
| |
| 837 | prt, | |
| 838 | "Fire", | |
| 839 | delay, | |
| 840 | 1, | |
| 841 | 1, | |
| 842 | 1, | |
| 843 | msh | |
| 844 | }) | |
| 845 | end; | |
| 846 | }; | |
| 847 | ||
| 848 | FireWave = {
| |
| 849 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 850 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new()) | |
| 851 | prt.Anchored = true | |
| 852 | prt.CFrame = cframe | |
| 853 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 854 | local d = Create("Decal"){
| |
| 855 | Parent = prt, | |
| 856 | Texture = "rbxassetid://26356434", | |
| 857 | Face = "Top", | |
| 858 | } | |
| 859 | local d = Create("Decal"){
| |
| 860 | Parent = prt, | |
| 861 | Texture = "rbxassetid://26356434", | |
| 862 | Face = "Bottom", | |
| 863 | } | |
| 864 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 865 | table.insert(Effects, {
| |
| 866 | prt, | |
| 867 | "FireWave", | |
| 868 | 1, | |
| 869 | 30, | |
| 870 | math.random(400, 600) / 100, | |
| 871 | msh | |
| 872 | }) | |
| 873 | end; | |
| 874 | }; | |
| 875 | ||
| 876 | Lightning = {
| |
| 877 | Create = function(p0, p1, tym, ofs, col, th, tra, last) | |
| 878 | local magz = (p0 - p1).magnitude | |
| 879 | local curpos = p0 | |
| 880 | local trz = {
| |
| 881 | -ofs, | |
| 882 | ofs | |
| 883 | } | |
| 884 | for i = 1, tym do | |
| 885 | local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym)) | |
| 886 | local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
| 887 | local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz | |
| 888 | li.Material = "Neon" | |
| 889 | if tym == i then | |
| 890 | local magz2 = (curpos - p1).magnitude | |
| 891 | li.Size = Vector3.new(th, th, magz2) | |
| 892 | li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2) | |
| 893 | table.insert(Effects, {
| |
| 894 | li, | |
| 895 | "Disappear", | |
| 896 | last | |
| 897 | }) | |
| 898 | else | |
| 899 | do | |
| 900 | do | |
| 901 | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2) | |
| 902 | curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p | |
| 903 | game.Debris:AddItem(li, 10) | |
| 904 | table.insert(Effects, {
| |
| 905 | li, | |
| 906 | "Disappear", | |
| 907 | last | |
| 908 | }) | |
| 909 | end | |
| 910 | end | |
| 911 | end | |
| 912 | end | |
| 913 | end | |
| 914 | }; | |
| 915 | ||
| 916 | EffectTemplate = {
| |
| 917 | ||
| 918 | }; | |
| 919 | } | |
| 920 | script.Name = 'different world' | |
| 921 | local speed = 15 | |
| 922 | ||
| 923 | local anims = {
| |
| 924 | punch1 = {
| |
| 925 | play = function() | |
| 926 | for i = 0, 1, 0.1 do | |
| 927 | swait() | |
| 928 | PlayAnimationFromTable({
| |
| 929 | CFrame.new(-0.0107449368, -0.216572553, 0.265849799, 0.950212896, -0.0244924892, 0.310632408, 1.02195258e-07, 0.996908247, 0.0786035731, -0.311596483, -0.0746901631, 0.947272837) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 930 | CFrame.new(0.0950279012, 1.517524, -0.082502462, 0.920527458, 0.0699283779, -0.384364873, -0.0458012633, 0.996384859, 0.0715831444, 0.387980074, -0.0482893325, 0.920400321) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 931 | CFrame.new(1.38422894, 0.673871636, -0.86930716, 0.929277241, -0.323129416, -0.178972647, -0.235611483, -0.145362675, -0.960914612, 0.28448388, 0.935124099, -0.211215228) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 932 | CFrame.new(-1.23638797, 0.32926473, -0.458237767, 0.867408514, 0.318191469, -0.382565975, -0.477318794, 0.314822704, -0.82039845, -0.140603334, 0.894226551, 0.424958616) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 933 | CFrame.new(0.607390761, -1.89009023, -0.202257693, 0.997992873, -0.0622570924, 0.0115969777, 0.0631325841, 0.963713706, -0.25936541, 0.00497117639, 0.259576976, 0.965709627) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 934 | CFrame.new(-0.604592323, -1.83469141, 0.0555542186, 0.99391377, 0.10894423, 0.0163347721, -0.109823957, 0.991517901, 0.0695070401, -0.00862380862, -0.0708779395, 0.997447789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 935 | }, .3, false) | |
| 936 | end | |
| 937 | end | |
| 938 | }; | |
| 939 | ball = {
| |
| 940 | play = function() | |
| 941 | for i = 0, 1, 0.1 do | |
| 942 | swait() | |
| 943 | PlayAnimationFromTable({
| |
| 944 | CFrame.new(-2.86102272e-06, 1.71999931, -6.86055819e-06, 1, 4.7224965e-22, -4.37113883e-08, -1.95405131e-14, 1.00000751, -4.47034836e-07, 4.37117151e-08, 4.47034836e-07, 1.00000751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 945 | CFrame.new(2.85228111e-06, 1.35999703, -0.199992567, 1, -1.53786814e-08, 4.09167669e-08, 0, 0.936066508, 0.35182327, -4.37113883e-08, -0.351823241, 0.936066508) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 946 | CFrame.new(0.840003788, 0.460014343, -0.810002446, 0.704639971, 0.675280571, 0.217897713, 0.044140093, 0.26477614, -0.963299215, -0.708191872, 0.688397229, 0.156764656) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 947 | CFrame.new(-0.839995861, 0.529998541, -0.750000954, 0.729142547, -0.631132126, -0.264619231, -0.230401143, 0.137709707, -0.963302374, 0.644411743, 0.763353288, -0.045003552) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 948 | CFrame.new(0.57000345, -0.669976175, -1.2000035, 0.999722004, -0.0225840099, 0.00678592594, 0.0235446021, 0.972025096, -0.2336943, -0.00131833623, 0.233789101, 0.972286463) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 949 | CFrame.new(-0.439997494, -0.69998008, -1.14999986, 0.999720931, -0.0226266459, 0.0067881369, 0.0235864632, 0.972043037, -0.233615071, -0.00131243642, 0.233709991, 0.972305417) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 950 | }, .3, false) | |
| 951 | end | |
| 952 | end | |
| 953 | }; | |
| 954 | smash = {
| |
| 955 | play = function() | |
| 956 | for i = 0, 1, 0.1 do | |
| 957 | swait() | |
| 958 | PlayAnimationFromTable({
| |
| 959 | CFrame.new(1.94293195e-21, -1.11999965, -0.549994707, 1, 2.44334653e-21, -3.80156538e-21, -4.72245409e-22, 0.893125892, 0.449806929, 4.49431016e-21, -0.449806929, 0.893125892) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 960 | CFrame.new(0, 1.5119648, -0.134260774, 1, 0, 0, 0, 0.940229893, 0.34054032, 0, -0.34054032, 0.940229893) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 961 | CFrame.new(1.5, -0.235795826, -0.421078861, 1, -4.72245409e-22, 4.49431016e-21, 2.44334653e-21, 0.893125892, -0.449806929, -3.80156538e-21, 0.449806929, 0.893125892) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 962 | CFrame.new(-1.5, 0.110703774, 0.380448788, 1, 0, 0, 0, 0.830427766, 0.557126522, 0, -0.557126522, 0.830427766) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 963 | CFrame.new(0.5, -1.47771955, 0.666540802, 1, 0, 0, 0, 0.850484967, 0.525999546, 0, -0.525999546, 0.850484967) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 964 | CFrame.new(-0.5, -0.623993754, -0.717353463, 1, -4.72245409e-22, 4.49431016e-21, 2.44334653e-21, 0.893125892, -0.449806929, -3.80156538e-21, 0.449806929, 0.893125892) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 965 | }, .3, false) | |
| 966 | end | |
| 967 | end | |
| 968 | }; | |
| 969 | punch2 = {
| |
| 970 | play = function() | |
| 971 | for i = 0, 1, 0.1 do | |
| 972 | swait() | |
| 973 | PlayAnimationFromTable({
| |
| 974 | CFrame.new(-0.0684909746, -0.216571167, 0.000430204906, 0.984477103, 0.0137971267, -0.174969882, 0, 0.996905446, 0.0786102712, 0.175513014, -0.0773900151, 0.98143059) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 975 | CFrame.new(0.0175101534, 1.52462602, -0.172688439, 0.984477103, -0.0555305742, 0.166496783, 0.0137971267, 0.970179021, 0.241996571, -0.174969882, -0.2359429, 0.955885291) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 976 | CFrame.new(1.48930418, 0.0307573248, -0.473314196, 0.980572164, -0.188258171, 0.0551109985, 0.0806958377, 0.131063491, -0.988084316, 0.17879191, 0.973335207, 0.14370887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 977 | CFrame.new(-1.66090941, 0.636517406, -0.920002699, 0.982567489, 0.185122967, 0.0170512684, 0.0498865768, -0.174197271, -0.9834463, -0.179088235, 0.967153013, -0.180395678) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 978 | CFrame.new(0.607360065, -1.89008546, -0.202268928, 0.997992814, -0.0622575581, 0.0115943104, 0.0631323084, 0.963711381, -0.259373635, 0.00497439504, 0.259584963, 0.965707421) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 979 | CFrame.new(-0.604580641, -1.83468735, 0.0555345044, 0.993913651, 0.10894455, 0.0163322985, -0.109824024, 0.991518378, 0.0694989488, -0.008622244, -0.070869647, 0.997448444) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 980 | }, .3, false) | |
| 981 | end | |
| 982 | end | |
| 983 | }; | |
| 984 | kick = {
| |
| 985 | play = function() | |
| 986 | for i = 0, 1, 0.1 do | |
| 987 | swait() | |
| 988 | PlayAnimationFromTable({
| |
| 989 | CFrame.new(-0.131061807, -0.222323433, 0.0731982589, -0.0407249853, 0.0785460323, -0.996078312, -0.0807319731, 0.993387222, 0.0816345736, 0.995903611, 0.0837399364, -0.0341144986) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 990 | CFrame.new(-0.184342384, 1.50759327, -0.00515897386, -0.0407249853, -0.131115511, 0.990530372, 0.0785460323, 0.987864733, 0.133992031, -0.996078312, 0.0832590461, -0.0299321674) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 991 | CFrame.new(1.66859376, 0.0138811618, -0.00489595532, 0.981350243, -0.191684797, 0.0144488961, 0.192214325, 0.979416251, -0.0616246685, -0.00233896822, 0.0632526651, 0.997994781) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 992 | CFrame.new(-1.27853525, -0.0793156773, -0.463598907, 0.997092485, -0.0716068894, 0.0260639321, 0.0757341236, 0.893313289, -0.443007529, 0.00843913853, 0.44369331, 0.896138966) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 993 | CFrame.new(0.705335557, -1.8330934, -0.201769322, 0.989622712, -0.141240016, 0.0264280811, 0.143219218, 0.954648972, -0.261024535, 0.0116375685, 0.262100786, 0.96497035) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 994 | CFrame.new(-1.60584366, -1.35878396, 0.133992612, 0.166210294, 0.970306695, 0.175724834, -0.985117137, 0.171303824, -0.0141165629, -0.0437997244, -0.170763195, 0.984338164) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 995 | }, .3, false) | |
| 996 | end | |
| 997 | end | |
| 998 | }; | |
| 999 | idle = {
| |
| 1000 | play = function() | |
| 1001 | PlayAnimationFromTable({
| |
| 1002 | CFrame.new(-0.14138256, -0.216571495, 0.237950996, 0.77377969, 0.0497951508, -0.631494582, 0, 0.996905565, 0.0786088556, 0.63345474, -0.0608259365, 0.771385252) * CFrame.new(0, 0 - 0.1 * math.cos(sine/speed), 0) * CFrame.Angles(0, 0, 0), | |
| 1003 | CFrame.new(-2.36225314e-05, 1.52129841, -0.130490974, 0.824229062, -0.0689957589, 0.562037528, 0.0293807425, 0.996423066, 0.0792340413, -0.565493941, -0.0487939045, 0.823307931) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + 0.1 * math.cos(sine/speed), 0, 0), | |
| 1004 | CFrame.new(1.04215145, 0.583002925, -0.988996744, 0.927035332, 0.248969361, -0.280392349, -0.0585250594, -0.642532051, -0.764020622, -0.370378822, 0.72468406, -0.581078827) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + 0.1 * math.cos(sine/speed), 0 + 0.1 * math.cos(sine/speed), 0), | |
| 1005 | CFrame.new(-1.26441777, 0.322543621, -0.372986406, 0.900779247, 0.295904487, -0.317863494, -0.36590445, 0.122910969, -0.922500432, -0.23390314, 0.947276831, 0.218988389) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + 0.1 * math.cos(sine/speed), 0 + 0.1 * math.cos(sine/speed), 0), | |
| 1006 | CFrame.new(0.607379138, -1.89008486, -0.202270091, 0.997992814, -0.0622573122, 0.0115959346, 0.0631324649, 0.963711858, -0.259372175, 0.0049726367, 0.259583652, 0.965707898) * CFrame.new(0, 0 + 0.1 * math.cos(sine/speed), 0) * CFrame.Angles(0, 0, 0), | |
| 1007 | CFrame.new(-0.604592443, -1.83468843, 0.0555417985, 0.993913651, 0.108944699, 0.0163314939, -0.109824121, 0.991518497, 0.0694983602, -0.00862157345, -0.0708689541, 0.997448444) * CFrame.new(0, 0 + 0.1 * math.cos(sine/speed), 0) * CFrame.Angles(0, 0, 0), | |
| 1008 | }, .3, false) | |
| 1009 | ||
| 1010 | end | |
| 1011 | }; | |
| 1012 | ||
| 1013 | walk = {
| |
| 1014 | play = function() | |
| 1015 | PlayAnimationFromTable({
| |
| 1016 | CFrame.new(0.109261587, -0.173913926, 0.279077232, 0.997577667, -0.0686017871, 0.0115215462, 0.0659179762, 0.985163212, 0.15845634, -0.0222209934, -0.157313049, 0.987298727) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1017 | CFrame.new(0.0151925227, 1.53362715, -0.213461131, 0.991616547, 0.0963014811, -0.0861558393, -0.087993823, 0.991530597, 0.0955212787, 0.0946249887, -0.0871393085, 0.991691887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1018 | CFrame.new(1.04216635, 0.58300662, -0.988999605, 0.927035213, 0.248969764, -0.280392677, -0.058524631, -0.642532647, -0.764020205, -0.370379329, 0.724683344, -0.581079423) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1019 | CFrame.new(-1.26442409, 0.322548211, -0.372982204, 0.900780141, 0.295904756, -0.317861229, -0.365901619, 0.12290898, -0.922501862, -0.23390463, 0.947277129, 0.21898596) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1020 | CFrame.new(0.467722356, -1.88047636, -0.203902811, 0.998356521, 0.0572995394, -0.00115422346, -0.0555915311, 0.963307917, -0.262579054, -0.0139337815, 0.262211591, 0.964909732)* CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 35 * math.cos((sine) / 5)), 0, 0), | |
| 1021 | CFrame.new(-0.604593396, -1.83468795, 0.0555359796, 0.990936041, 0.124458492, -0.0505571477, -0.120545976, 0.989930212, 0.0742101893, 0.0592841208, -0.0674430802, 0.995960236) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 35 * math.cos((sine) / 5)), 0, 0), | |
| 1022 | }, .3, false) | |
| 1023 | end | |
| 1024 | }; | |
| 1025 | ||
| 1026 | jump = {
| |
| 1027 | play = function() | |
| 1028 | PlayAnimationFromTable({
| |
| 1029 | CFrame.new(-0, -0.0699987784, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1030 | CFrame.new(0, 1.49996114, -0.0999985784, 1, 0, 0, 0, 0.976393402, 0.216000035, 0, -0.216000021, 0.976393461) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1031 | CFrame.new(1.96005464, 0.614818871, 0, -0.0459600165, -0.998943329, 0, 0.998943329, -0.0459600128, 0, 0, -0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1032 | CFrame.new(-1.95485854, 0.615261137, 0, -0.157674044, 0.98749125, 0, -0.98749125, -0.157674044, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1033 | CFrame.new(0.59998256, -1.92995512, 0, 0.99373585, -0.111754626, 0, 0.111754619, 0.993735909, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1034 | CFrame.new(-0.510072351, -1.11883473, -0.515735626, 0.993913114, 0.110166967, 0, -0.110166967, 0.993913114, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1035 | }, .3, false) | |
| 1036 | end | |
| 1037 | }; | |
| 1038 | } | |
| 1039 | spawn(function() | |
| 1040 | attack = true | |
| 1041 | Humanoid.JumpPower = 0 | |
| 1042 | Humanoid.WalkSpeed = 0 | |
| 1043 | RightArm.Transparency = 1 | |
| 1044 | LeftArm.Transparency = 1 | |
| 1045 | Torso.Transparency = 1 | |
| 1046 | Head.Transparency = 1 | |
| 1047 | RightLeg.Transparency = 1 | |
| 1048 | LeftLeg.Transparency = 1 | |
| 1049 | anims.smash.play() | |
| 1050 | - | Effects.Rect.Create(BrickColor.new'Toothpaste',RootPart.CFrame, math.random(200,300), 20000, math.random(200,300), -0.8, -0.8, -0.8, 0.05) |
| 1050 | + | |
| 1051 | Effects.Rect.Create(BrickColor.new'Crimson',RootPart.CFrame, math.random(200,300), 20000, math.random(200,300), -0.8, -0.8, -0.8, 0.05) | |
| 1052 | Humanoid.JumpPower = jumppower | |
| 1053 | RightArm.Transparency = 0 | |
| 1054 | LeftArm.Transparency = 0 | |
| 1055 | Torso.Transparency = 0 | |
| 1056 | Head.Transparency = 0 | |
| 1057 | RightLeg.Transparency = 0 | |
| 1058 | - | Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 200, 200, 200, -0.8, -0.8, -0.8, 0.05) |
| 1058 | + | |
| 1059 | - | Effects.Wave.Create(BrickColor.new'Toothpaste', RootPart.CFrame - Vector3.new(0,3,0), 5, 1, 5, 0.1, 0.01, 0.1, 0.06) |
| 1059 | + | Effects.Block.Create(BrickColor.new'Crimson', Torso.CFrame, 200, 200, 200, -0.8, -0.8, -0.8, 0.05) |
| 1060 | Effects.Wave.Create(BrickColor.new'Crimson', RootPart.CFrame - Vector3.new(0,3,0), 5, 1, 5, 0.1, 0.01, 0.1, 0.06) | |
| 1061 | ||
| 1062 | CFuncs['Sound'].Create("rbxassetid://995908246",Torso,10,0.8)
| |
| 1063 | startm() | |
| 1064 | wait(0.5) | |
| 1065 | Humanoid.WalkSpeed = 16 | |
| 1066 | attack = false | |
| 1067 | end) | |
| 1068 | trans = function() | |
| 1069 | form = true | |
| 1070 | attack = true | |
| 1071 | decals() | |
| 1072 | - | MagnitudeDamage(RootPart, 20, 10, 20, 10, "Normal", "388826051", 3) |
| 1072 | + | |
| 1073 | - | Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 200, 200, 200, 2, 2, 2, 0.05) |
| 1073 | + | MagnitudeDamage(RootPart, 10000, 1100000, 200000000, 1000000000, "Normal", "388826051", 3) |
| 1074 | - | Effects.Wave.Create(BrickColor.new'Toothpaste', RootPart.CFrame - Vector3.new(0,3,0), 8, 1, 8, 0.1, 0.01, 0.1, 0.06) |
| 1074 | + | Effects.Block.Create(BrickColor.new'Crimson', Torso.CFrame, 200, 200, 200, 2, 2, 2, 0.05) |
| 1075 | Effects.Wave.Create(BrickColor.new'Crimson', RootPart.CFrame - Vector3.new(0,3,0), 8, 1, 8, 0.1, 0.01, 0.1, 0.06) | |
| 1076 | pit = 0.9 | |
| 1077 | if nomusic == false then | |
| 1078 | --soundid = '321467240' | |
| 1079 | par:WaitForChild'lol':Destroy() | |
| 1080 | par = Character | |
| 1081 | par:WaitForChild'lol'.Pitch = 0.9 | |
| 1082 | end | |
| 1083 | ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.6, 0)), 'Enough!', 1.5, BrickColor.new("Really red").Color,string.len('Enough!')/4)
| |
| 1084 | hum.MaxHealth = 2000 | |
| 1085 | wait() | |
| 1086 | hum.Health = 2000 | |
| 1087 | attack = false | |
| 1088 | end | |
| 1089 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
| 1090 | coroutine.wrap(function() | |
| 1091 | while true do wait() | |
| 1092 | if form == true and attack == false then | |
| 1093 | - | Effects.Block.Create(BrickColor.new'Toothpaste',RootPart.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)), math.random(16,30), math.random(16,30), math.random(16,30), -0.8, -0.8, -0.8, 0.05) |
| 1093 | + | |
| 1094 | Effects.Block.Create(BrickColor.new'Crimson',RootPart.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)), math.random(16,30), math.random(16,30), math.random(16,30), -0.8, -0.8, -0.8, 0.05) | |
| 1095 | elseif cmon == true then | |
| 1096 | - | Effects.Block.Create(BrickColor.new'Toothpaste',RootPart.CFrame*CFrame.new(math.random(-25,25),math.random(-25,25),math.random(-25,25)), math.random(200,300), math.random(200,300), math.random(200,300), -0.8, -0.8, -0.8, 0.05) |
| 1096 | + | |
| 1097 | - | Effects.Rect.Create(BrickColor.new'Toothpaste',RootPart.CFrame*CFrame.new(math.random(-200,200),math.random(-200,200),math.random(-200,200)), math.random(200,300), 20000, math.random(200,300), -0.8, -0.8, -0.8, 0.05) |
| 1097 | + | Effects.Block.Create(BrickColor.new'Crimson',RootPart.CFrame*CFrame.new(math.random(-25,25),math.random(-25,25),math.random(-25,25)), math.random(200,300), math.random(200,300), math.random(200,300), -0.8, -0.8, -0.8, 0.05) |
| 1098 | Effects.Rect.Create(BrickColor.new'Crimson',RootPart.CFrame*CFrame.new(math.random(-200,200),math.random(-200,200),math.random(-200,200)), math.random(200,300), 20000, math.random(200,300), -0.8, -0.8, -0.8, 0.05) | |
| 1099 | end | |
| 1100 | end | |
| 1101 | end)() | |
| 1102 | coroutine.wrap(function() | |
| 1103 | while true do wait() | |
| 1104 | if Humanoid.Health < 500 and form == false and attack == false then | |
| 1105 | trans() | |
| 1106 | elseif Humanoid.Health < 400 and form == true and attack == false then | |
| 1107 | attack = true | |
| 1108 | dying = true | |
| 1109 | anims.ball.play() | |
| 1110 | Humanoid.MaxHealth = math.huge | |
| 1111 | wait() | |
| 1112 | Humanoid.Health = math.huge | |
| 1113 | Humanoid.JumpPower = 0 | |
| 1114 | Humanoid.HipHeight = 16 | |
| 1115 | Humanoid.WalkSpeed = 0 | |
| 1116 | cmon = true | |
| 1117 | wait(5) | |
| 1118 | cmon = false | |
| 1119 | wait(2) | |
| 1120 | for i, v in pairs(Head:GetChildren()) do | |
| 1121 | if v:IsA("Decal") then
| |
| 1122 | v:Destroy() | |
| 1123 | end | |
| 1124 | end | |
| 1125 | RightArm.Transparency = 1 | |
| 1126 | LeftArm.Transparency = 1 | |
| 1127 | Torso.Transparency = 1 | |
| 1128 | Head.Transparency = 1 | |
| 1129 | RightLeg.Transparency = 1 | |
| 1130 | LeftLeg.Transparency = 1 | |
| 1131 | RightArm.Anchored = true | |
| 1132 | LeftArm.Anchored = true | |
| 1133 | Torso.Anchored = true | |
| 1134 | Head.Anchored = true | |
| 1135 | RightLeg.Anchored = true | |
| 1136 | LeftLeg.Anchored = true | |
| 1137 | ||
| 1138 | coroutine.wrap(function() | |
| 1139 | local f = CFuncs['Sound'].Create("rbxassetid://995908246",Character,10,0.5)
| |
| 1140 | local echo = Instance.new('EchoSoundEffect', f)
| |
| 1141 | echo.Delay = 0.4 | |
| 1142 | echo.Enabled = true | |
| 1143 | echo.Feedback = 0.2 | |
| 1144 | - | MagnitudeDamage(RootPart, 100, 40, 50, 10, "DarkUp", "388826051", 3) |
| 1144 | + | |
| 1145 | - | Effects.Rect.Create(BrickColor.new'Toothpaste',Torso.CFrame, 200, 20000, 200, -0.8, -0.8, -0.8, 0.05) |
| 1145 | + | MagnitudeDamage(RootPart, 100000, 40000, 500000, 1000000, "DarkUp", "388826051", 3) |
| 1146 | - | Effects.Rect.Create(BrickColor.new'Toothpaste',Torso.CFrame, 100, 20000, 100, -0.8, -0.8, -0.8, 0.05) |
| 1146 | + | Effects.Rect.Create(BrickColor.new'Crimson',Torso.CFrame, 200, 20000, 200, -0.8, -0.8, -0.8, 0.05) |
| 1147 | - | Effects.Rect.Create(BrickColor.new'Toothpaste',Torso.CFrame, 300, 20000, 300, -0.8, -0.8, -0.8, 0.05) |
| 1147 | + | Effects.Rect.Create(BrickColor.new'Crimson',Torso.CFrame, 100, 20000, 100, -0.8, -0.8, -0.8, 0.05) |
| 1148 | - | Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 500, 500, 500, 30, 30, 30, 0.006) |
| 1148 | + | Effects.Rect.Create(BrickColor.new'Crimson',Torso.CFrame, 300, 20000, 300, -0.8, -0.8, -0.8, 0.05) |
| 1149 | - | Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 300, 300, 300, 30, 30, 30, 0.006) |
| 1149 | + | Effects.Block.Create(BrickColor.new'Crimson', Torso.CFrame, 500, 500, 500, 30, 30, 30, 0.006) |
| 1150 | - | Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 100, 100, 100, 30, 30, 30, 0.006) |
| 1150 | + | Effects.Block.Create(BrickColor.new'Crimson', Torso.CFrame, 300, 300, 300, 30, 30, 30, 0.006) |
| 1151 | Effects.Block.Create(BrickColor.new'Crimson', Torso.CFrame, 100, 100, 100, 30, 30, 30, 0.006) | |
| 1152 | Humanoid.MaxHealth = 0 | |
| 1153 | wait() | |
| 1154 | Humanoid.Health = 0 | |
| 1155 | end | |
| 1156 | end | |
| 1157 | end)() | |
| 1158 | script.Name = 'different world' | |
| 1159 | function attackone() | |
| 1160 | attack = true | |
| 1161 | anims.punch1.play() | |
| 1162 | if gunout == false then | |
| 1163 | - | MagnitudeDamage(RightArm, 5, 10, 20, 10, "Normal", "388826051", 3) |
| 1163 | + | |
| 1164 | MagnitudeDamage(RightArm, 5000000, 1000000000, 20000000, 10000000, "Normal", "388826051", 3) | |
| 1165 | - | MagnitudeDamage(RightArm, 5, 20, 30, 10, "Normal", "388826051", 3) |
| 1165 | + | |
| 1166 | - | Effects.Block.Create(BrickColor.new'Toothpaste', RightArm.CFrame * CFrame.new(0,-1,0), 16, 16, 16, -0.8, -0.8, -0.8, 0.1) |
| 1166 | + | MagnitudeDamage(RightArm, 5000000, 1000000000, 20000000, 10000000, "Normal", "388826051", 3) |
| 1167 | Effects.Block.Create(BrickColor.new'Crimson', RightArm.CFrame * CFrame.new(0,-1,0), 16, 16, 16, -0.8, -0.8, -0.8, 0.1) | |
| 1168 | end | |
| 1169 | elseif gunout == true and bullets ~= 0 then | |
| 1170 | local a = Create("Part"){
| |
| 1171 | Parent = Character, | |
| 1172 | Anchored = true, | |
| 1173 | CanCollide = false, | |
| 1174 | Transparency = 1, | |
| 1175 | Size = Vector3.new(0.5,0.2,0.5), | |
| 1176 | Position = Mouse.hit.p, | |
| 1177 | } | |
| 1178 | ||
| 1179 | local p = Create("PointLight"){
| |
| 1180 | Parent = gun, | |
| 1181 | Brightness = 16, | |
| 1182 | Range = 8, | |
| 1183 | Color = Color3.new(0,0,255) | |
| 1184 | } | |
| 1185 | local ray = Ray.new(tip.CFrame.p, (Mouse.Hit.p - tip.CFrame.p).unit * 300) | |
| 1186 | local part, position = workspace:FindPartOnRay(ray, Character, false, true) | |
| 1187 | local distance = (tip.CFrame.p - position).magnitude | |
| 1188 | local beam = Create('Part'){
| |
| 1189 | - | BrickColor = BrickColor.new("Toothpaste"),
|
| 1189 | + | |
| 1190 | BrickColor = BrickColor.new("Crimson"),
| |
| 1191 | FormFactor = "Custom", | |
| 1192 | Material = "Neon", | |
| 1193 | Transparency = 0.25, | |
| 1194 | Anchored = true, | |
| 1195 | Locked = true, | |
| 1196 | CanCollide = false, | |
| 1197 | Size = Vector3.new(0.3, 0.3, distance), | |
| 1198 | CFrame = CFrame.new(tip.CFrame.p, position) * CFrame.new(0, 0, -distance / 2), | |
| 1199 | } | |
| 1200 | ||
| 1201 | --http://www.roblox.com/asset/?id=359667865 | |
| 1202 | CFuncs['Sound'].Create("rbxassetid://995908246",RightArm,5,1)
| |
| 1203 | - | MagnitudeDamage(a, 5, 50, 90, 10, "Normal", "388826051", 3) |
| 1203 | + | |
| 1204 | MagnitudeDamage(a, 5000000, 1000000000, 20000000, 10000000, "Normal", "388826051", 3) | |
| 1205 | - | MagnitudeDamage(a, 5, 90, 1000, 10, "Normal", "388826051", 3) |
| 1205 | + | |
| 1206 | - | Effects.Block.Create(BrickColor.new'Toothpaste', a.CFrame, 30, 30, 30, -0.8, -0.8, -0.8, 0.1) |
| 1206 | + | MagnitudeDamage(a, 5000000, 1000000000, 20000000, 10000000, "Normal", "388826051", 3) |
| 1207 | Effects.Block.Create(BrickColor.new'Crimson', a.CFrame, 30, 30, 30, -0.8, -0.8, -0.8, 0.1) | |
| 1208 | end | |
| 1209 | - | Effects.Block.Create(BrickColor.new'Toothpaste', tip.CFrame, 16, 16, 16, -0.8, -0.8, -0.8, 0.1) |
| 1209 | + | |
| 1210 | - | --Effects.Block.Create(BrickColor.new'Toothpaste', a.CFrame, 16, 16, 16, -0.8, -0.8, -0.8, 0.1) |
| 1210 | + | Effects.Block.Create(BrickColor.new'Crimson', tip.CFrame, 16, 16, 16, -0.8, -0.8, -0.8, 0.1) |
| 1211 | --Effects.Block.Create(BrickColor.new'Crimson', a.CFrame, 16, 16, 16, -0.8, -0.8, -0.8, 0.1) | |
| 1212 | game:service'Debris':AddItem(p,0.1) | |
| 1213 | game:service'Debris':AddItem(a,0.1) | |
| 1214 | coroutine.wrap(function() | |
| 1215 | for i = 0, 1.4, 0.2 do | |
| 1216 | swait() | |
| 1217 | beam.Transparency = beam.Transparency + 0.1 | |
| 1218 | beam.Size = beam.Size + Vector3.new(0.1,0.1,0.1) | |
| 1219 | end | |
| 1220 | game:service'Debris':AddItem(beam,0.1) | |
| 1221 | end)() | |
| 1222 | elseif bullets == 0 then | |
| 1223 | ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.6, 0)), 'No energy!', 1.5, BrickColor.new("Really black").Color,string.len('No energy!')/4)
| |
| 1224 | end | |
| 1225 | ||
| 1226 | attack = false | |
| 1227 | end | |
| 1228 | ||
| 1229 | ||
| 1230 | function attacktwo() | |
| 1231 | attack = true | |
| 1232 | anims.punch2.play() | |
| 1233 | - | MagnitudeDamage(LeftArm, 5, 10, 20, 10, "Normal", "388826051", 3) |
| 1233 | + | |
| 1234 | MagnitudeDamage(LeftArm, 5000000, 1000000000, 20000000, 10000000, "Normal", "388826051", 3) | |
| 1235 | - | MagnitudeDamage(LeftArm, 5, 20, 30, 10, "Normal", "388826051", 3) |
| 1235 | + | |
| 1236 | - | Effects.Block.Create(BrickColor.new'Toothpaste', LeftArm.CFrame * CFrame.new(0,-1,0), 16, 16, 16, -0.8, -0.8, -0.8, 0.1) |
| 1236 | + | MagnitudeDamage(LeftArm, 5000000, 1000000000, 20000000, 10000000, "Normal", "388826051", 3) |
| 1237 | Effects.Block.Create(BrickColor.new'Crimson', LeftArm.CFrame * CFrame.new(0,-1,0), 16, 16, 16, -0.8, -0.8, -0.8, 0.1) | |
| 1238 | end | |
| 1239 | attack = false | |
| 1240 | end | |
| 1241 | function reload() | |
| 1242 | if bullets == 0 and gunout == true then | |
| 1243 | attack = true | |
| 1244 | anims.punch2.play() | |
| 1245 | wait(2) | |
| 1246 | bullets = amount | |
| 1247 | ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.6, 0)), 'Recharged', 1.5, BrickColor.new("Really black").Color,string.len('Recharged')/4)
| |
| 1248 | attack = false | |
| 1249 | end | |
| 1250 | end | |
| 1251 | function attackthree() -- kick | |
| 1252 | attack = true | |
| 1253 | kicking = true | |
| 1254 | hum.WalkSpeed = 40 | |
| 1255 | anims.kick.play() | |
| 1256 | end | |
| 1257 | ||
| 1258 | coroutine.wrap(function() | |
| 1259 | while true do | |
| 1260 | wait() | |
| 1261 | if kicking == true then | |
| 1262 | - | MagnitudeDamage(LeftLeg, 5, 20, 35, 10, "Normal", "388826051", 3) |
| 1262 | + | |
| 1263 | MagnitudeDamage(LeftLeg, 5000000, 1000000000, 20000000, 10000000, "Normal", "388826051", 3) | |
| 1264 | - | MagnitudeDamage(LeftLeg, 5, 35, 45, 10, "Normal", "388826051", 3) |
| 1264 | + | |
| 1265 | MagnitudeDamage(LeftLeg, 5000000, 1000000000, 20000000, 10000000, "Normal", "388826051", 3) | |
| 1266 | end | |
| 1267 | RootPart.CFrame = RootPart.CFrame * CFrame.new(0,0,-2) | |
| 1268 | end | |
| 1269 | end | |
| 1270 | end)() | |
| 1271 | ||
| 1272 | function atk3end() | |
| 1273 | attack = false | |
| 1274 | hum.WalkSpeed = 16 | |
| 1275 | kicking = false | |
| 1276 | end | |
| 1277 | ||
| 1278 | Mouse.Button1Down:connect(function() | |
| 1279 | if attack == false and dying == false and attacktype == 1 then | |
| 1280 | attackone() | |
| 1281 | if gunout == false then | |
| 1282 | attacktype = 2 | |
| 1283 | end | |
| 1284 | elseif attack == false and dying == false and attacktype == 2 then | |
| 1285 | attacktwo() | |
| 1286 | attacktype = 1 | |
| 1287 | end | |
| 1288 | end) | |
| 1289 | ||
| 1290 | hum.Died:connect(function() | |
| 1291 | Player.CameraMaxZoomDistance = 400 | |
| 1292 | Player.CameraMinZoomDistance = 0.5 | |
| 1293 | end) | |
| 1294 | Mouse.KeyDown:connect(function(k) | |
| 1295 | k = k:lower() | |
| 1296 | if attack == false and dying == false and k == 'z' then | |
| 1297 | ||
| 1298 | attackthree() | |
| 1299 | elseif attack == false and dying == false and k == 'r' then | |
| 1300 | reload() | |
| 1301 | elseif attack == false and dying == false and k == 'g' then | |
| 1302 | if gunout == true then | |
| 1303 | gunout = false | |
| 1304 | gun.Transparency = 1 | |
| 1305 | elseif gunout == false then | |
| 1306 | gun.Transparency = 0 | |
| 1307 | ||
| 1308 | gunout = true | |
| 1309 | end | |
| 1310 | end | |
| 1311 | end) | |
| 1312 | script.Name = 'different world' | |
| 1313 | ||
| 1314 | Mouse.KeyUp:connect(function(k) | |
| 1315 | k = k:lower() | |
| 1316 | if k == 'z' and dying == false then | |
| 1317 | atk3end() | |
| 1318 | end | |
| 1319 | end) | |
| 1320 | script.Name = 'different world' | |
| 1321 | while true do | |
| 1322 | swait() | |
| 1323 | for i, v in pairs(Character:GetChildren()) do | |
| 1324 | if v:IsA("Part") then
| |
| 1325 | v.Material = "SmoothPlastic" | |
| 1326 | elseif v:IsA("Accessory") then
| |
| 1327 | v:WaitForChild("Handle").Material = "SmoothPlastic"
| |
| 1328 | end | |
| 1329 | end | |
| 1330 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 1331 | velocity = RootPart.Velocity.y | |
| 1332 | sine = sine + change | |
| 1333 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
| 1334 | if RootPart.Velocity.y > 1 and hit == nil then | |
| 1335 | Anim = "Jump" | |
| 1336 | if attack == false then | |
| 1337 | if jumping == false then | |
| 1338 | --CFuncs['Sound'].Create("rbxassetid://995908246",Torso,10,0.8)
| |
| 1339 | jumping = true | |
| 1340 | end | |
| 1341 | anims.jump.play() | |
| 1342 | script.Name = 'different world' | |
| 1343 | end | |
| 1344 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
| 1345 | Anim = "Fall" | |
| 1346 | if attack == false then | |
| 1347 | jumping = false | |
| 1348 | anims.jump.play() | |
| 1349 | script.Name = 'different world' | |
| 1350 | end | |
| 1351 | elseif Torsovelocity < 1 and hit ~= nil then | |
| 1352 | Anim = "Idle" | |
| 1353 | if attack == false then | |
| 1354 | change = 1 | |
| 1355 | anims.idle.play() | |
| 1356 | script.Name = 'different world' | |
| 1357 | ||
| 1358 | end | |
| 1359 | elseif Torsovelocity > 2 and hit ~= nil then | |
| 1360 | Anim = "Walk" | |
| 1361 | if attack == false then | |
| 1362 | anims.walk.play() | |
| 1363 | script.Name = 'different world' | |
| 1364 | end | |
| 1365 | end | |
| 1366 | if 0 < #Effects then | |
| 1367 | for e = 1, #Effects do | |
| 1368 | if Effects[e] ~= nil then | |
| 1369 | local Thing = Effects[e] | |
| 1370 | if Thing ~= nil then | |
| 1371 | local Part = Thing[1] | |
| 1372 | local Mode = Thing[2] | |
| 1373 | local Delay = Thing[3] | |
| 1374 | local IncX = Thing[4] | |
| 1375 | local IncY = Thing[5] | |
| 1376 | local IncZ = Thing[6] | |
| 1377 | if Thing[2] == "Shoot" then | |
| 1378 | local Look = Thing[1] | |
| 1379 | local move = 30 | |
| 1380 | if Thing[8] == 3 then | |
| 1381 | move = 10 | |
| 1382 | end | |
| 1383 | local hit, pos = rayCast(Thing[4], Thing[1], move, m) | |
| 1384 | if Thing[10] ~= nil then | |
| 1385 | da = pos | |
| 1386 | cf2 = CFrame.new(Thing[4], Thing[10].Position) | |
| 1387 | cfa = CFrame.new(Thing[4], pos) | |
| 1388 | tehCF = cfa:lerp(cf2, 0.2) | |
| 1389 | Thing[1] = tehCF.lookVector | |
| 1390 | end | |
| 1391 | local mag = (Thing[4] - pos).magnitude | |
| 1392 | Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2) | |
| 1393 | if Thing[8] == 2 then | |
| 1394 | Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1) | |
| 1395 | end | |
| 1396 | Thing[4] = Thing[4] + Look * move | |
| 1397 | Thing[3] = Thing[3] - 1 | |
| 1398 | if 2 < Thing[5] then | |
| 1399 | Thing[5] = Thing[5] - 0.3 | |
| 1400 | Thing[6] = Thing[6] - 0.3 | |
| 1401 | end | |
| 1402 | if hit ~= nil then | |
| 1403 | Thing[3] = 0 | |
| 1404 | if Thing[8] == 1 or Thing[8] == 3 then | |
| 1405 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
| 1406 | else | |
| 1407 | if Thing[8] == 2 then | |
| 1408 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
| 1409 | if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
| |
| 1410 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
| |
| 1411 | ref.Anchored = true | |
| 1412 | ref.CFrame = CFrame.new(pos) | |
| 1413 | CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
| |
| 1414 | game:GetService("Debris"):AddItem(ref, 0.2)
| |
| 1415 | Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2) | |
| 1416 | Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
| |
| 1417 | MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1) | |
| 1418 | end | |
| 1419 | end | |
| 1420 | end | |
| 1421 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
| |
| 1422 | ref.Anchored = true | |
| 1423 | ref.CFrame = CFrame.new(pos) | |
| 1424 | Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07) | |
| 1425 | game:GetService("Debris"):AddItem(ref, 1)
| |
| 1426 | end | |
| 1427 | if Thing[3] <= 0 then | |
| 1428 | table.remove(Effects, e) | |
| 1429 | end | |
| 1430 | end | |
| 1431 | do | |
| 1432 | do | |
| 1433 | if Thing[2] == "FireWave" then | |
| 1434 | if Thing[3] <= Thing[4] then | |
| 1435 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0) | |
| 1436 | Thing[3] = Thing[3] + 1 | |
| 1437 | Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5]) | |
| 1438 | else | |
| 1439 | Part.Parent = nil | |
| 1440 | table.remove(Effects, e) | |
| 1441 | end | |
| 1442 | end | |
| 1443 | if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then | |
| 1444 | if Thing[1].Transparency <= 1 then | |
| 1445 | if Thing[2] == "Block1" then | |
| 1446 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1447 | Mesh = Thing[7] | |
| 1448 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1449 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1450 | ||
| 1451 | else | |
| 1452 | if Thing[2] == "Block2" then | |
| 1453 | Thing[1].CFrame = Thing[1].CFrame | |
| 1454 | Mesh = Thing[7] | |
| 1455 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1456 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1457 | else | |
| 1458 | if Thing[2] == "Fire" then | |
| 1459 | Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0) | |
| 1460 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1461 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1462 | else | |
| 1463 | if Thing[2] == "Cylinder" then | |
| 1464 | Mesh = Thing[7] | |
| 1465 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1466 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1467 | else | |
| 1468 | if Thing[2] == "Blood" then | |
| 1469 | Mesh = Thing[7] | |
| 1470 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0) | |
| 1471 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1472 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1473 | else | |
| 1474 | if Thing[2] == "Elec" then | |
| 1475 | Mesh = Thing[10] | |
| 1476 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 1477 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1478 | else | |
| 1479 | if Thing[2] == "Disappear" then | |
| 1480 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1481 | else | |
| 1482 | if Thing[2] == "Shatter" then | |
| 1483 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1484 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
| 1485 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 1486 | Thing[6] = Thing[6] + Thing[5] | |
| 1487 | end | |
| 1488 | end | |
| 1489 | end | |
| 1490 | end | |
| 1491 | end | |
| 1492 | end | |
| 1493 | end | |
| 1494 | end | |
| 1495 | else | |
| 1496 | Part.Parent = nil | |
| 1497 | table.remove(Effects, e) | |
| 1498 | end | |
| 1499 | end | |
| 1500 | end | |
| 1501 | end | |
| 1502 | end | |
| 1503 | end | |
| 1504 | end | |
| 1505 | end | |
| 1506 | end |