Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[Nocturna_A._Alteriano_Night.Owl.Inc]]--
- --[[the different world by Windowsxd_Infinite
- __ __ __ __
- /\ \ __/\ \ __ /\ \ /\ \
- \ \ \/\ \ \ \/\_\ ___ \_\ \ ___ __ __ __ ____ __ _ \_\ \
- \ \ \ \ \ \ \/\ \ /' _ `\ /'_` \ / __`\/\ \/\ \/\ \ /',__\/\ \/'\ /'_` \
- \ \ \_/ \_\ \ \ \/\ \/\ \/\ \L\ \/\ \L\ \ \ \_/ \_/ \/\__, `\/> <//\ \L\ \
- \ `\___x___/\ \_\ \_\ \_\ \___,_\ \____/\ \___x___/'\/\____//\_/\_\ \___,_\
- '\/__//__/ \/_/\/_/\/_/\/__,_ /\/___/ \/__//__/ \/___/ \//\/_/\/__,_ /
- ]]
- wait(1 / 60)
- Effects = { }
- script.Name = 'different world'
- local Player = game.Players.localPlayer
- local Character = Player.Character
- local Humanoid = Character:FindFirstChildOfClass('Humanoid')
- local hum = Humanoid
- local Mouse = Player:GetMouse()
- local jumppower = 150
- local LeftArm = Character["Left Arm"]
- local RightArm = Character["Right Arm"]
- local LeftLeg = Character["Left Leg"]
- local RightLeg = Character["Right Leg"]
- local Head = Character.Head
- local Torso = Character.Torso
- local limited = false
- local Camera = game.Workspace.CurrentCamera
- local cmon = false
- local dying = false
- local RootPart = Character.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- local jumping = false
- local attack = false
- local Anim = 'Idle'
- local nomusic = false
- local soundid = '804615998'
- local pit = 1
- local form = false
- local gunout = false
- local attacktype = 1
- local amount = 12
- local par = Head
- if limited == false then
- amount = math.huge
- end
- print(amount..' is the maximum amount of lasers')
- local bullets = amount
- local kicking = false
- local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velocity = RootPart.Velocity.y
- local sine = 0
- local change = 1
- local Create = LoadLibrary("RbxUtility").Create
- local col = Character['Body Colors']
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- for i, v in pairs(Character:GetChildren()) do
- if v:IsA("Accessory") then
- v:Destroy()
- end
- end
- Head:WaitForChild('face', true):Destroy()
- Mesh = New("SpecialMesh",LeftLeg,"Mesh",{Offset = Vector3.new(0.100000001, 0, -0.100000001),MeshId = "rbxassetid://1875778314",MeshType = Enum.MeshType.FileMesh,})
- Mesh = New("SpecialMesh",LeftArm,"Mesh",{MeshId = "rbxassetid://1875724217",MeshType = Enum.MeshType.FileMesh,})
- Mesh = New("SpecialMesh",RightArm,"Mesh",{MeshId = "rbxassetid://1875724217",MeshType = Enum.MeshType.FileMesh,})
- Mesh = New("SpecialMesh",Torso,"Mesh",{Offset = Vector3.new(0, 0.0599999987, 0),MeshId = "rbxassetid://1875749311",MeshType = Enum.MeshType.FileMesh,})
- Mesh = New("SpecialMesh",RightLeg,"Mesh",{Offset = Vector3.new(-0.100000001, 0, -0.100000001),MeshId = "rbxassetid://1875778314",MeshType = Enum.MeshType.FileMesh,})
- Mesh = New("SpecialMesh",Head,"Mesh",{Scale = Vector3.new(0.5, 1, 1),MeshId = "rbxassetid://0",MeshType = Enum.MeshType.Brick,})
- decals = function()
- Decal = New("Decal",Head,"Decal",{Texture = "http://www.roblox.com/asset/?id=1901415828",})
- Decal = New("Decal",Head,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=1901488661",})
- Decal = New("Decal",Head,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=1901527294",})
- Decal = New("Decal",Head,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=1901566530",})
- end
- --[[
- gun = New("Part",RightArm,"gun",{Size = Vector3.new(0.359999955, 0.340000063, 0.409999967),Transparency = 1,CFrame = CFrame.new(1.55999994, 1.82999897, -0.115000002, 1, 0, 0, 0, 0, 1, 0, -1, 0),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
- 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,})
- 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),})
- ]]
- gun = New("Part",RightArm,"gun",{CanCollide = false,Transparency = 1,Size = Vector3.new(0.359999955, 0.340000063, 0.409999967),CFrame = CFrame.new(1.55999994, 1.82999992, 0.0149999931, 1, 0, 0, 0, 0, 1, 0, -1, 0),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
- 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,})
- 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),})
- 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,})
- 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),})
- coroutine.wrap(function()
- RightLeg.Touched:connect(function(prt)
- if prt.Name == 'extra' and prt.ClassName == 'Part' then
- local thing = prt:WaitForChild('amount')
- if thing ~= nil and thing.Value < 50 then
- print('added '.. thing.Value ..' extra energy')
- bullets = bullets + thing.Value
- prt:Destroy()
- end
- end
- end)
- --dab
- end)()
- col.HeadColor = BrickColor.new('Medium stone grey')
- col.LeftArmColor = BrickColor.new('Medium stone grey')
- col.RightArmColor = BrickColor.new('Medium stone grey')
- col.LeftLegColor = BrickColor.new('Medium stone grey')
- col.RightLegColor = BrickColor.new('Medium stone grey')
- col.TorsoColor = BrickColor.new('Toothpaste')
- local ff = Instance.new('ForceField', Character)
- ff.Visible = false
- hum.Name = '32ytd7284y6985y24805yn2839n5298'
- hum.MaxHealth = 1000
- wait()
- hum.Health = 1000
- function startm()
- if nomusic == false then
- local b = Instance.new('Sound', par)
- b.SoundId = 'rbxassetid://' ..soundid
- b.Looped = true
- b.Volume = 3
- b.Name = 'lol'
- b.Pitch = pit
- b:Play()
- coroutine.wrap(function()
- while true do
- timepos = b.TimePosition
- if par:FindFirstChild("lol") == nil then
- local b = Instance.new('Sound', par)
- b.SoundId = 'rbxassetid://'..soundid
- b.Looped = true
- b.Name = 'lol'
- b.Volume = 3
- b.Pitch = pit
- b.TimePosition = timepos
- b:Play()
- end
- wait()
- end
- end)()
- end
- end
- local m = Create("Model"){
- Parent = Character,
- Name = "WeaponModel",
- }
- Humanoid.Animator.Parent = nil
- Character.Animate.Parent = nil
- local newMotor = function(part0, part1, c0, c1)
- local w = Create('Motor'){
- Parent = part0,
- Part0 = part0,
- Part1 = part1,
- C0 = c0,
- C1 = c1,
- }
- return w
- end
- function clerp(a, b, t)
- return a:lerp(b, t)
- end
- RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
- local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
- local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
- local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
- RootJoint.C1 = CFrame.new(0, 0, 0)
- RootJoint.C0 = CFrame.new(0, 0, 0)
- Torso.Neck.C1 = CFrame.new(0, 0, 0)
- Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
- local rarmc1 = RW.C1
- local larmc1 = LW.C1
- local rlegc1 = RH.C1
- local llegc1 = LH.C1
- local resetc1 = false
- function PlayAnimationFromTable(table, speed, bool)
- RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
- RW.C0 = clerp(RW.C0, table[3], speed)
- LW.C0 = clerp(LW.C0, table[4], speed)
- RH.C0 = clerp(RH.C0, table[5], speed)
- LH.C0 = clerp(LH.C0, table[6], speed)
- if bool == true then
- if resetc1 == false then
- resetc1 = true
- RootJoint.C1 = RootJoint.C1
- Torso.Neck.C1 = Torso.Neck.C1
- RW.C1 = rarmc1
- LW.C1 = larmc1
- RH.C1 = rlegc1
- LH.C1 = llegc1
- end
- end
- end
- ArtificialHB = Create("BindableEvent", script){
- Parent = script,
- Name = "Heartbeat",
- }
- script:WaitForChild("Heartbeat")
- frame = 1 / 60
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.Heartbeat:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.Heartbeat:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- function swait(num)
- if num == 0 or num == nil then
- ArtificialHB.Event:wait()
- else
- for i = 0, num do
- ArtificialHB.Event:wait()
- end
- end
- end
- function RemoveOutlines(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- CFuncs = {
- ["Part"] = {
- Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part"){
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material,
- }
- RemoveOutlines(Part)
- return Part
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Weld"] = {
- Create = function(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld"){
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1,
- }
- return Weld
- end;
- };
- ["Sound"] = {
- Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound"){
- Volume = vol,
- Pitch = pit or 1,
- SoundId = id,
- Parent = par or workspace,
- }
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 6)
- end))
- end;
- };
- ["ParticleEmitter"] = {
- Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
- local fp = Create("ParticleEmitter"){
- Parent = Parent,
- Color = ColorSequence.new(Color1, Color2),
- LightEmission = LightEmission,
- Size = Size,
- Texture = Texture,
- Transparency = Transparency,
- ZOffset = ZOffset,
- Acceleration = Accel,
- Drag = Drag,
- LockedToPart = LockedToPart,
- VelocityInheritance = VelocityInheritance,
- EmissionDirection = EmissionDirection,
- Enabled = Enabled,
- Lifetime = LifeTime,
- Rate = Rate,
- Rotation = Rotation,
- RotSpeed = RotSpeed,
- Speed = Speed,
- VelocitySpread = VelocitySpread,
- }
- return fp
- end;
- };
- CreateTemplate = {
- };
- }
- function rayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- FindNearestTorso = function(pos)
- local list = (game.Workspace:children())
- local torso = nil
- local dist = 1000
- local temp, human, temp2 = nil, nil, nil
- for x = 1, #list do
- temp2 = list[x]
- if temp2.className == "Model" and temp2.Name ~= Character.Name then
- temp = temp2:findFirstChild("Torso")
- human = temp2:findFirstChild("Humanoid")
- if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
- local dohit = true
- if dohit == true then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso, dist
- end
- function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
- if hit.Parent == nil then
- return
- end
- local h = hit.Parent:FindFirstChild("Humanoid")
- for _, v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h = v
- end
- end
- if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
- if hit.Parent:findFirstChild("DebounceHit") ~= nil then
- if hit.Parent.DebounceHit.Value == true then
- return
- end
- end
- local c = Create("ObjectValue"){
- Name = "creator",
- Value = game:service("Players").LocalPlayer,
- Parent = h,
- }
- game:GetService("Debris"):AddItem(c, .5)
- if HitSound ~= nil and HitPitch ~= nil then
- CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
- end
- local Damage = math.random(minim, maxim)
- local blocked = false
- local block = hit.Parent:findFirstChild("Block")
- if block ~= nil then
- if block.className == "IntValue" then
- if block.Value > 0 then
- blocked = true
- block.Value = block.Value - 1
- print(block.Value)
- end
- end
- end
- if blocked == false then
- h.Health = h.Health - Damage
- 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)
- else
- h.Health = h.Health - (Damage / 2)
- 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)
- end
- if Type == "Knockdown" then
- local hum = hit.Parent.Humanoid
- hum.PlatformStand = true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand = false
- end), hum)
- local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
- local bodvol = Create("BodyVelocity"){
- velocity = angle * knockback,
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- Parent = hit,
- }
- local rl = Create("BodyAngularVelocity"){
- P = 3000,
- maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
- angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
- Parent = hit,
- }
- game:GetService("Debris"):AddItem(bodvol, .5)
- game:GetService("Debris"):AddItem(rl, .5)
- elseif Type == "Normal" then
- local vp = Create("BodyVelocity"){
- P = 500,
- maxForce = Vector3.new(math.huge, 0, math.huge),
- velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
- }
- if knockback > 0 then
- vp.Parent = hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp, .5)
- elseif Type == "Up" then
- local bodyVelocity = Create("BodyVelocity"){
- velocity = Vector3.new(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- Parent = hit,
- }
- game:GetService("Debris"):AddItem(bodyVelocity, .5)
- elseif Type == "DarkUp" then
- coroutine.resume(coroutine.create(function()
- for i = 0, 1, 0.1 do
- swait()
- Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 25, 25, 25, 1, 1, 1, .08, 1)
- end
- end))
- local bodyVelocity = Create("BodyVelocity"){
- velocity = Vector3.new(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- Parent = hit,
- }
- game:GetService("Debris"):AddItem(bodyVelocity, 1)
- elseif Type == "Snare" then
- local bp = Create("BodyPosition"){
- P = 2000,
- D = 100,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso,
- }
- game:GetService("Debris"):AddItem(bp, 1)
- elseif Type == "Freeze" then
- local BodPos = Create("BodyPosition"){
- P = 50000,
- D = 1000,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso,
- }
- local BodGy = Create("BodyGyro") {
- maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
- P = 20e+003,
- Parent = hit.Parent.Torso,
- cframe = hit.Parent.Torso.CFrame,
- }
- hit.Parent.Torso.Anchored = true
- coroutine.resume(coroutine.create(function(Part)
- swait(1.5)
- Part.Anchored = false
- end), hit.Parent.Torso)
- game:GetService("Debris"):AddItem(BodPos, 3)
- game:GetService("Debris"):AddItem(BodGy, 3)
- end
- local debounce = Create("BoolValue"){
- Name = "DebounceHit",
- Parent = hit.Parent,
- Value = true,
- }
- game:GetService("Debris"):AddItem(debounce, Delay)
- c = Create("ObjectValue"){
- Name = "creator",
- Value = Player,
- Parent = h,
- }
- game:GetService("Debris"):AddItem(c, .5)
- end
- end
- function ShowDamage(Pos, Text, Time, Color, wid)
- local Rate = (1 / 30)
- local Pos = (Pos or Vector3.new(0, 0, 0))
- local Text = (Text or "")
- local wid = (wid or 1)
- local Time = (Time or 2)
- local Color = (Color or Color3.new(1, 0, 1))
- local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
- EffectPart.Anchored = true
- local BillboardGui = Create("BillboardGui"){
- Size = UDim2.new(5, 0, 5, 0),
- Adornee = EffectPart,
- Parent = EffectPart,
- }
- local TextLabel = Create("TextLabel"){
- BackgroundTransparency = 1,
- Size = UDim2.new(1, 0, 1, 0),
- Text = Text,
- Font = "Arcade",
- TextColor3 = Color,
- TextScaled = true,
- Parent = BillboardGui,
- }
- game.Debris:AddItem(EffectPart, (Time))
- EffectPart.Parent = game:GetService("Workspace")
- delay(0, function()
- local Frames = (Time / Rate)
- for Frame = 1, Frames do
- wait(Rate)
- local Percent = (Frame / Frames)
- EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
- TextLabel.TextTransparency = Percent
- end
- if EffectPart and EffectPart.Parent then
- EffectPart:Destroy()
- end
- end)
- end
- function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
- for _, c in pairs(workspace:children()) do
- local hum = c:findFirstChildOfClass("Humanoid")
- if hum ~= nil then
- local head = c:findFirstChild("Head")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if mag <= Magnitude and c.Name ~= Player.Name then
- Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
- end
- end
- end
- end
- end
- EffectModel = Create("Model"){
- Parent = Character,
- Name = "Effects",
- }
- Effects = {
- Block = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- if Type == 1 or Type == nil then
- table.insert(Effects, {
- prt,
- "Block1",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- elseif Type == 2 then
- table.insert(Effects, {
- prt,
- "Block2",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- end;
- };
- Implode = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- if Type == 1 or Type == nil then
- table.insert(Effects, {
- prt,
- "Block1",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- elseif Type == 2 then
- table.insert(Effects, {
- prt,
- "Block2",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- end;
- };
- Cylinder = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end;
- };
- Rect = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end;
- };
- Head = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end;
- };
- Sphere = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end;
- };
- Elect = {
- Create = function(cff, x, y, z)
- local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
- prt.Anchored = true
- prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
- prt.CFrame = CFrame.new(prt.Position)
- game:GetService("Debris"):AddItem(prt, 2)
- local xval = math.random() / 2
- local yval = math.random() / 2
- local zval = math.random() / 2
- local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
- table.insert(Effects, {
- prt,
- "Elec",
- 0.1,
- x,
- y,
- z,
- xval,
- yval,
- zval
- })
- end;
- };
- Ring = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end;
- };
- Wave = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end;
- };
- Break = {
- Create = function(brickcolor, cframe, x1, y1, z1)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
- prt.Anchored = true
- prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- local num = math.random(10, 50) / 1000
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Shatter",
- num,
- prt.CFrame,
- math.random() - math.random(),
- 0,
- math.random(50, 100) / 100
- })
- end;
- };
- Fire = {
- Create = function(brickcolor, cframe, x1, y1, z1, delay)
- local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Fire",
- delay,
- 1,
- 1,
- 1,
- msh
- })
- end;
- };
- FireWave = {
- Create = function(brickcolor, cframe, x1, y1, z1)
- local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- local d = Create("Decal"){
- Parent = prt,
- Texture = "rbxassetid://26356434",
- Face = "Top",
- }
- local d = Create("Decal"){
- Parent = prt,
- Texture = "rbxassetid://26356434",
- Face = "Bottom",
- }
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "FireWave",
- 1,
- 30,
- math.random(400, 600) / 100,
- msh
- })
- end;
- };
- Lightning = {
- Create = function(p0, p1, tym, ofs, col, th, tra, last)
- local magz = (p0 - p1).magnitude
- local curpos = p0
- local trz = {
- -ofs,
- ofs
- }
- for i = 1, tym do
- local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
- local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
- local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
- li.Material = "Neon"
- if tym == i then
- local magz2 = (curpos - p1).magnitude
- li.Size = Vector3.new(th, th, magz2)
- li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
- table.insert(Effects, {
- li,
- "Disappear",
- last
- })
- else
- do
- do
- li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
- curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
- game.Debris:AddItem(li, 10)
- table.insert(Effects, {
- li,
- "Disappear",
- last
- })
- end
- end
- end
- end
- end
- };
- EffectTemplate = {
- };
- }
- script.Name = 'different world'
- local speed = 15
- local anims = {
- punch1 = {
- play = function()
- for i = 0, 1, 0.1 do
- swait()
- PlayAnimationFromTable({
- 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),
- 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),
- 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),
- 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),
- 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),
- 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),
- }, .3, false)
- end
- end
- };
- ball = {
- play = function()
- for i = 0, 1, 0.1 do
- swait()
- PlayAnimationFromTable({
- 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),
- 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),
- 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),
- 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),
- 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),
- 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),
- }, .3, false)
- end
- end
- };
- smash = {
- play = function()
- for i = 0, 1, 0.1 do
- swait()
- PlayAnimationFromTable({
- 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),
- 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),
- 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),
- 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),
- 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),
- 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),
- }, .3, false)
- end
- end
- };
- punch2 = {
- play = function()
- for i = 0, 1, 0.1 do
- swait()
- PlayAnimationFromTable({
- 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),
- 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),
- 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),
- 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),
- 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),
- 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),
- }, .3, false)
- end
- end
- };
- kick = {
- play = function()
- for i = 0, 1, 0.1 do
- swait()
- PlayAnimationFromTable({
- 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),
- 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),
- 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),
- 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),
- 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),
- 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),
- }, .3, false)
- end
- end
- };
- idle = {
- play = function()
- PlayAnimationFromTable({
- 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),
- 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),
- 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),
- 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),
- 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),
- 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),
- }, .3, false)
- end
- };
- walk = {
- play = function()
- PlayAnimationFromTable({
- 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),
- 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),
- 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),
- 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),
- 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),
- 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),
- }, .3, false)
- end
- };
- jump = {
- play = function()
- PlayAnimationFromTable({
- 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),
- 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),
- 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),
- 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),
- 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),
- 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),
- }, .3, false)
- end
- };
- }
- spawn(function()
- attack = true
- Humanoid.JumpPower = 0
- Humanoid.WalkSpeed = 0
- RightArm.Transparency = 1
- LeftArm.Transparency = 1
- Torso.Transparency = 1
- Head.Transparency = 1
- RightLeg.Transparency = 1
- LeftLeg.Transparency = 1
- anims.smash.play()
- wait(2)
- 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)
- Humanoid.JumpPower = jumppower
- RightArm.Transparency = 0
- LeftArm.Transparency = 0
- Torso.Transparency = 0
- Head.Transparency = 0
- RightLeg.Transparency = 0
- LeftLeg.Transparency = 0
- Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 200, 200, 200, -0.8, -0.8, -0.8, 0.05)
- Effects.Wave.Create(BrickColor.new'Toothpaste', RootPart.CFrame - Vector3.new(0,3,0), 5, 1, 5, 0.1, 0.01, 0.1, 0.06)
- CFuncs['Sound'].Create("rbxassetid://995908246",Torso,10,0.8)
- startm()
- wait(0.5)
- Humanoid.WalkSpeed = 16
- attack = false
- end)
- trans = function()
- form = true
- attack = true
- decals()
- local f = CFuncs['Sound'].Create("rbxassetid://995908246",Torso,10,0.8)
- MagnitudeDamage(RootPart, 20, 10, 20, 10, "Normal", "388826051", 3)
- Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 200, 200, 200, 2, 2, 2, 0.05)
- Effects.Wave.Create(BrickColor.new'Toothpaste', RootPart.CFrame - Vector3.new(0,3,0), 8, 1, 8, 0.1, 0.01, 0.1, 0.06)
- pit = 0.9
- if nomusic == false then
- --soundid = '321467240'
- par:WaitForChild'lol':Destroy()
- par = Character
- par:WaitForChild'lol'.Pitch = 0.9
- end
- 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)
- hum.MaxHealth = 2000
- wait()
- hum.Health = 2000
- attack = false
- end
- local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
- coroutine.wrap(function()
- while true do wait()
- if form == true and attack == false then
- --RootPart.CFrame*CFrame.new(math.random(-25,25))
- 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)
- elseif cmon == true then
- 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)
- 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)
- end
- end
- end)()
- coroutine.wrap(function()
- while true do wait()
- if Humanoid.Health < 500 and form == false and attack == false then
- trans()
- elseif Humanoid.Health < 400 and form == true and attack == false then
- attack = true
- dying = true
- anims.ball.play()
- Humanoid.MaxHealth = math.huge
- wait()
- Humanoid.Health = math.huge
- Humanoid.JumpPower = 0
- Humanoid.HipHeight = 16
- Humanoid.WalkSpeed = 0
- cmon = true
- wait(5)
- cmon = false
- wait(2)
- for i, v in pairs(Head:GetChildren()) do
- if v:IsA("Decal") then
- v:Destroy()
- end
- end
- RightArm.Transparency = 1
- LeftArm.Transparency = 1
- Torso.Transparency = 1
- Head.Transparency = 1
- RightLeg.Transparency = 1
- LeftLeg.Transparency = 1
- RightArm.Anchored = true
- LeftArm.Anchored = true
- Torso.Anchored = true
- Head.Anchored = true
- RightLeg.Anchored = true
- LeftLeg.Anchored = true
- coroutine.wrap(function()
- local f = CFuncs['Sound'].Create("rbxassetid://995908246",Character,10,0.5)
- local echo = Instance.new('EchoSoundEffect', f)
- echo.Delay = 0.4
- echo.Enabled = true
- echo.Feedback = 0.2
- end)()
- MagnitudeDamage(RootPart, 100, 40, 50, 10, "DarkUp", "388826051", 3)
- Effects.Rect.Create(BrickColor.new'Toothpaste',Torso.CFrame, 200, 20000, 200, -0.8, -0.8, -0.8, 0.05)
- Effects.Rect.Create(BrickColor.new'Toothpaste',Torso.CFrame, 100, 20000, 100, -0.8, -0.8, -0.8, 0.05)
- Effects.Rect.Create(BrickColor.new'Toothpaste',Torso.CFrame, 300, 20000, 300, -0.8, -0.8, -0.8, 0.05)
- Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 500, 500, 500, 30, 30, 30, 0.006)
- Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 300, 300, 300, 30, 30, 30, 0.006)
- Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 100, 100, 100, 30, 30, 30, 0.006)
- Humanoid.MaxHealth = 0
- wait()
- Humanoid.Health = 0
- end
- end
- end)()
- script.Name = 'different world'
- function attackone()
- attack = true
- anims.punch1.play()
- if gunout == false then
- if form == false then
- MagnitudeDamage(RightArm, 5, 10, 20, 10, "Normal", "388826051", 3)
- else
- MagnitudeDamage(RightArm, 5, 20, 30, 10, "Normal", "388826051", 3)
- Effects.Block.Create(BrickColor.new'Toothpaste', RightArm.CFrame * CFrame.new(0,-1,0), 16, 16, 16, -0.8, -0.8, -0.8, 0.1)
- end
- elseif gunout == true and bullets ~= 0 then
- local a = Create("Part"){
- Parent = Character,
- Anchored = true,
- CanCollide = false,
- Transparency = 1,
- Size = Vector3.new(0.5,0.2,0.5),
- Position = Mouse.hit.p,
- }
- local p = Create("PointLight"){
- Parent = gun,
- Brightness = 16,
- Range = 8,
- Color = Color3.new(0,0,255)
- }
- local ray = Ray.new(tip.CFrame.p, (Mouse.Hit.p - tip.CFrame.p).unit * 300)
- local part, position = workspace:FindPartOnRay(ray, Character, false, true)
- local distance = (tip.CFrame.p - position).magnitude
- local beam = Create('Part'){
- Parent = Character,
- BrickColor = BrickColor.new("Toothpaste"),
- FormFactor = "Custom",
- Material = "Neon",
- Transparency = 0.25,
- Anchored = true,
- Locked = true,
- CanCollide = false,
- Size = Vector3.new(0.3, 0.3, distance),
- CFrame = CFrame.new(tip.CFrame.p, position) * CFrame.new(0, 0, -distance / 2),
- }
- --http://www.roblox.com/asset/?id=359667865
- CFuncs['Sound'].Create("rbxassetid://995908246",RightArm,5,1)
- if form == false then
- MagnitudeDamage(a, 5, 50, 90, 10, "Normal", "388826051", 3)
- else
- MagnitudeDamage(a, 5, 90, 1000, 10, "Normal", "388826051", 3)
- Effects.Block.Create(BrickColor.new'Toothpaste', a.CFrame, 30, 30, 30, -0.8, -0.8, -0.8, 0.1)
- end
- bullets = bullets - 1
- Effects.Block.Create(BrickColor.new'Toothpaste', tip.CFrame, 16, 16, 16, -0.8, -0.8, -0.8, 0.1)
- --Effects.Block.Create(BrickColor.new'Toothpaste', a.CFrame, 16, 16, 16, -0.8, -0.8, -0.8, 0.1)
- game:service'Debris':AddItem(p,0.1)
- game:service'Debris':AddItem(a,0.1)
- coroutine.wrap(function()
- for i = 0, 1.4, 0.2 do
- swait()
- beam.Transparency = beam.Transparency + 0.1
- beam.Size = beam.Size + Vector3.new(0.1,0.1,0.1)
- end
- game:service'Debris':AddItem(beam,0.1)
- end)()
- elseif bullets == 0 then
- 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)
- end
- attack = false
- end
- function attacktwo()
- attack = true
- anims.punch2.play()
- if form == false then
- MagnitudeDamage(LeftArm, 5, 10, 20, 10, "Normal", "388826051", 3)
- else
- MagnitudeDamage(LeftArm, 5, 20, 30, 10, "Normal", "388826051", 3)
- Effects.Block.Create(BrickColor.new'Toothpaste', LeftArm.CFrame * CFrame.new(0,-1,0), 16, 16, 16, -0.8, -0.8, -0.8, 0.1)
- end
- attack = false
- end
- function reload()
- if bullets == 0 and gunout == true then
- attack = true
- anims.punch2.play()
- wait(2)
- bullets = amount
- 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)
- attack = false
- end
- end
- function attackthree() -- kick
- attack = true
- kicking = true
- hum.WalkSpeed = 40
- anims.kick.play()
- end
- coroutine.wrap(function()
- while true do
- wait()
- if kicking == true then
- if form == false then
- MagnitudeDamage(LeftLeg, 5, 20, 35, 10, "Normal", "388826051", 3)
- else
- MagnitudeDamage(LeftLeg, 5, 35, 45, 10, "Normal", "388826051", 3)
- end
- RootPart.CFrame = RootPart.CFrame * CFrame.new(0,0,-2)
- end
- end
- end)()
- function atk3end()
- attack = false
- hum.WalkSpeed = 16
- kicking = false
- end
- Mouse.Button1Down:connect(function()
- if attack == false and dying == false and attacktype == 1 then
- attackone()
- if gunout == false then
- attacktype = 2
- end
- elseif attack == false and dying == false and attacktype == 2 then
- attacktwo()
- attacktype = 1
- end
- end)
- hum.Died:connect(function()
- Player.CameraMaxZoomDistance = 400
- Player.CameraMinZoomDistance = 0.5
- end)
- Mouse.KeyDown:connect(function(k)
- k = k:lower()
- if attack == false and dying == false and k == 'z' then
- attackthree()
- elseif attack == false and dying == false and k == 'r' then
- reload()
- elseif attack == false and dying == false and k == 'g' then
- if gunout == true then
- gunout = false
- gun.Transparency = 1
- elseif gunout == false then
- gun.Transparency = 0
- gunout = true
- end
- end
- end)
- script.Name = 'different world'
- Mouse.KeyUp:connect(function(k)
- k = k:lower()
- if k == 'z' and dying == false then
- atk3end()
- end
- end)
- script.Name = 'different world'
- while true do
- swait()
- for i, v in pairs(Character:GetChildren()) do
- if v:IsA("Part") then
- v.Material = "SmoothPlastic"
- elseif v:IsA("Accessory") then
- v:WaitForChild("Handle").Material = "SmoothPlastic"
- end
- end
- Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- velocity = RootPart.Velocity.y
- sine = sine + change
- local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
- if RootPart.Velocity.y > 1 and hit == nil then
- Anim = "Jump"
- if attack == false then
- if jumping == false then
- --CFuncs['Sound'].Create("rbxassetid://995908246",Torso,10,0.8)
- jumping = true
- end
- anims.jump.play()
- script.Name = 'different world'
- end
- elseif RootPart.Velocity.y < -1 and hit == nil then
- Anim = "Fall"
- if attack == false then
- jumping = false
- anims.jump.play()
- script.Name = 'different world'
- end
- elseif Torsovelocity < 1 and hit ~= nil then
- Anim = "Idle"
- if attack == false then
- change = 1
- anims.idle.play()
- script.Name = 'different world'
- end
- elseif Torsovelocity > 2 and hit ~= nil then
- Anim = "Walk"
- if attack == false then
- anims.walk.play()
- script.Name = 'different world'
- end
- end
- if 0 < #Effects then
- for e = 1, #Effects do
- if Effects[e] ~= nil then
- local Thing = Effects[e]
- if Thing ~= nil then
- local Part = Thing[1]
- local Mode = Thing[2]
- local Delay = Thing[3]
- local IncX = Thing[4]
- local IncY = Thing[5]
- local IncZ = Thing[6]
- if Thing[2] == "Shoot" then
- local Look = Thing[1]
- local move = 30
- if Thing[8] == 3 then
- move = 10
- end
- local hit, pos = rayCast(Thing[4], Thing[1], move, m)
- if Thing[10] ~= nil then
- da = pos
- cf2 = CFrame.new(Thing[4], Thing[10].Position)
- cfa = CFrame.new(Thing[4], pos)
- tehCF = cfa:lerp(cf2, 0.2)
- Thing[1] = tehCF.lookVector
- end
- local mag = (Thing[4] - pos).magnitude
- 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)
- if Thing[8] == 2 then
- 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)
- end
- Thing[4] = Thing[4] + Look * move
- Thing[3] = Thing[3] - 1
- if 2 < Thing[5] then
- Thing[5] = Thing[5] - 0.3
- Thing[6] = Thing[6] - 0.3
- end
- if hit ~= nil then
- Thing[3] = 0
- if Thing[8] == 1 or Thing[8] == 3 then
- Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
- else
- if Thing[8] == 2 then
- Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
- if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
- ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
- ref.Anchored = true
- ref.CFrame = CFrame.new(pos)
- CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
- game:GetService("Debris"):AddItem(ref, 0.2)
- 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)
- 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)
- MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
- end
- end
- end
- ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
- ref.Anchored = true
- ref.CFrame = CFrame.new(pos)
- Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
- game:GetService("Debris"):AddItem(ref, 1)
- end
- if Thing[3] <= 0 then
- table.remove(Effects, e)
- end
- end
- do
- do
- if Thing[2] == "FireWave" then
- if Thing[3] <= Thing[4] then
- Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
- Thing[3] = Thing[3] + 1
- Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
- else
- Part.Parent = nil
- table.remove(Effects, e)
- end
- end
- if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
- if Thing[1].Transparency <= 1 then
- if Thing[2] == "Block1" then
- Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Block2" then
- Thing[1].CFrame = Thing[1].CFrame
- Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Fire" then
- Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
- Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Cylinder" then
- Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Blood" then
- Mesh = Thing[7]
- Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Elec" then
- Mesh = Thing[10]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Disappear" then
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Shatter" then
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
- Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
- Thing[6] = Thing[6] + Thing[5]
- end
- end
- end
- end
- end
- end
- end
- end
- else
- Part.Parent = nil
- table.remove(Effects, e)
- end
- end
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement