Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --//====================================================\\--
- --|| CREATED BY SHACKLUSTER
- --\\====================================================//--
- wait(0.2)
- Player = game:GetService("Players").LocalPlayer
- PlayerGui = Player.PlayerGui
- Cam = workspace.CurrentCamera
- Backpack = Player.Backpack
- Character = Player.Character
- Humanoid = Character.Humanoid
- Mouse = Player:GetMouse()
- RootPart = Character["HumanoidRootPart"]
- Torso = Character["Torso"]
- Head = Character["Head"]
- RightArm = Character["Right Arm"]
- LeftArm = Character["Left Arm"]
- RightLeg = Character["Right Leg"]
- LeftLeg = Character["Left Leg"]
- RootJoint = RootPart["RootJoint"]
- Neck = Torso["Neck"]
- RightShoulder = Torso["Right Shoulder"]
- LeftShoulder = Torso["Left Shoulder"]
- RightHip = Torso["Right Hip"]
- LeftHip = Torso["Left Hip"]
- local FinalInboxLink = "rbxassetid://195916147"
- local NormalMusicLink = "rbxassetid://596220347"
- local sick = Instance.new("Sound",Character)
- sick.SoundId = "rbxassetid://596220347"
- sick.Looped = true
- sick.Pitch = 1
- sick.Volume = 0.6
- sick:Play()
- IT = Instance.new
- CF = CFrame.new
- VT = Vector3.new
- RAD = math.rad
- C3 = Color3.new
- UD2 = UDim2.new
- BRICKC = BrickColor.new
- ANGLES = CFrame.Angles
- EULER = CFrame.fromEulerAnglesXYZ
- COS = math.cos
- ACOS = math.acos
- SIN = math.sin
- ASIN = math.asin
- ABS = math.abs
- MRANDOM = math.random
- FLOOR = math.floor
- function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
- local NEWMESH = IT(MESH)
- if MESH == "SpecialMesh" then
- NEWMESH.MeshType = MESHTYPE
- if MESHID ~= "nil" and MESHID ~= "" then
- NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
- end
- if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
- NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
- end
- end
- NEWMESH.Offset = OFFSET or VT(0, 0, 0)
- NEWMESH.Scale = SCALE
- NEWMESH.Parent = PARENT
- return NEWMESH
- end
- function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
- local NEWPART = IT("Part")
- NEWPART.formFactor = FORMFACTOR
- NEWPART.Reflectance = REFLECTANCE
- NEWPART.Transparency = TRANSPARENCY
- NEWPART.CanCollide = false
- NEWPART.Locked = true
- NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
- NEWPART.Name = NAME
- NEWPART.Size = SIZE
- NEWPART.Position = Torso.Position
- NEWPART.Material = MATERIAL
- NEWPART:BreakJoints()
- NEWPART.Parent = PARENT
- return NEWPART
- end
- --//=================================\\
- --|| CUSTOMIZATION
- --\\=================================//
- Class_Name = "Template"
- Weapon_Name = "Add-ons"
- Custom_Colors = {
- Custom_Color_1 = BRICKC("Really red"); --1st color for the weapon.
- Custom_Color_2 = BRICKC("Really blue"); --2nd color for the weapon.
- Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
- Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
- Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
- Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
- Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
- Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
- Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
- Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
- Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
- Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
- }
- Player_Size = 1 --Size of the player.
- Animation_Speed = 3
- Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
- local Speed = 16
- local Effects2 = {}
- --//=================================\\
- --|| END OF CUSTOMIZATION
- --\\=================================//
- local function weldBetween(a, b)
- local weldd = Instance.new("ManualWeld")
- weldd.Part0 = a
- weldd.Part1 = b
- weldd.C0 = CFrame.new()
- weldd.C1 = b.CFrame:inverse() * a.CFrame
- weldd.Parent = a
- return weldd
- end
- function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
- local acs = Instance.new("Part")
- acs.CanCollide = false
- acs.Anchored = false
- acs.Size = Vector3.new(0,0,0)
- acs.CFrame = attachmentpart.CFrame
- acs.Parent = Character
- acs.BrickColor = color
- local meshs = Instance.new("SpecialMesh")
- meshs.MeshId = mesh
- meshs.TextureId = texture
- meshs.Parent = acs
- meshs.Scale = scale
- meshs.Offset = offset
- weldBetween(attachmentpart,acs)
- end
- function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
- if TYPE == "Gem" then
- local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
- acs.Anchored = false
- acs.CanCollide = false
- acs.CFrame = PART.CFrame
- local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
- weldBetween(PART,acs)
- elseif TYPE == "Skull" then
- local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
- acs.Anchored = false
- acs.CanCollide = false
- acs.CFrame = PART.CFrame
- local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
- weldBetween(PART,acs)
- elseif TYPE == "Eye" then
- local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
- acs.Anchored = false
- acs.CanCollide = false
- acs.CFrame = PART.CFrame
- local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
- weldBetween(PART,acs)
- end
- end
- --//=================================\\
- --|| USEFUL VALUES
- --\\=================================//
- local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
- local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
- local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
- local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
- local CO1 = 0
- local CO2 = 0
- local CO3 = 0
- local CO4 = 0
- local CHANGEDEFENSE = 0
- local CHANGEDAMAGE = 0
- local CHANGEMOVEMENT = 0
- local ANIM = "Idle"
- local ATTACK = false
- local EQUIPPED = false
- local HOLD = false
- local COMBO = 999
- local LASTPOINT = nil
- local BLCF = nil
- local SCFR = nil
- local STAGGERHITANIM = false
- local STAGGERANIM = false
- local STUNANIM = false
- local CRITCHANCENUMBER = 0
- local IDLENUMBER = 0
- local DONUMBER = 0
- local HANDIDLE = false
- local SINE = 0
- local CHANGE = 2 / Animation_Speed
- local WALKINGANIM = false
- local WALK = 0
- local DISABLEJUMPING = false
- local HASBEENBLOCKED = false
- local STUNDELAYNUMBER = 0
- local MANADELAYNUMBER = 0
- local SECONDARYMANADELAYNUMBER = 0
- local ROBLOXIDLEANIMATION = IT("Animation")
- ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
- ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
- --ROBLOXIDLEANIMATION.Parent = Humanoid
- local WEAPONGUI = IT("ScreenGui", nil)
- WEAPONGUI.Name = "Weapon GUI"
- local WEAPONTOOL = IT("HopperBin", nil)
- WEAPONTOOL.Name = Weapon_Name
- local Weapon = IT("Model")
- Weapon.Name = Weapon_Name
- local Effects = IT("Folder", Weapon)
- Effects.Name = "Effects"
- local ANIMATOR = Humanoid.Animator
- local ANIMATE = Character.Animate
- local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
- local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
- local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
- local HITBLOCKSOUNDS = {"199148933", "199148947"}
- local UNANCHOR = true
- --//=================================\\
- --\\=================================//
- --//=================================\\
- --|| STATS
- --\\=================================//
- if Character:FindFirstChild("Stats") ~= nil then
- Character:FindFirstChild("Stats").Parent = nil
- end
- local Stats = IT("Folder", nil)
- Stats.Name = "Stats"
- local ChangeStat = IT("Folder", Stats)
- ChangeStat.Name = "ChangeStat"
- local Defense = IT("NumberValue", Stats)
- Defense.Name = "Defense"
- Defense.Value = 1
- local Movement = IT("NumberValue", Stats)
- Movement.Name = "Movement"
- Movement.Value = 1
- local Damage = IT("NumberValue", Stats)
- Damage.Name = "Damage"
- Damage.Value = math.huge
- local Mana = IT("NumberValue", Stats)
- Mana.Name = "Mana"
- Mana.Value = 0
- local SecondaryMana = IT("NumberValue", Stats)
- SecondaryMana.Name = "SecondaryMana"
- SecondaryMana.Value = 0
- local CanCrit = IT("BoolValue", Stats)
- CanCrit.Name = "CanCrit"
- CanCrit.Value = false
- local CritChance = IT("NumberValue", Stats)
- CritChance.Name = "CritChance"
- CritChance.Value = 20
- local CanPenetrateArmor = IT("BoolValue", Stats)
- CanPenetrateArmor.Name = "CanPenetrateArmor"
- CanPenetrateArmor.Value = false
- local AntiTeamKill = IT("BoolValue", Stats)
- AntiTeamKill.Name = "AntiTeamKill"
- AntiTeamKill.Value = false
- local Rooted = IT("BoolValue", Stats)
- Rooted.Name = "Rooted"
- Rooted.Value = false
- local Block = IT("BoolValue", Stats)
- Block.Name = "Block"
- Block.Value = false
- local RecentEnemy = IT("ObjectValue", Stats)
- RecentEnemy.Name = "RecentEnemy"
- RecentEnemy.Value = nil
- local StaggerHit = IT("BoolValue", Stats)
- StaggerHit.Name = "StaggerHit"
- StaggerHit.Value = false
- local Stagger = IT("BoolValue", Stats)
- Stagger.Name = "Stagger"
- Stagger.Value = false
- local Stun = IT("BoolValue", Stats)
- Stun.Name = "Stun"
- Stun.Value = false
- local StunValue = IT("NumberValue", Stats)
- StunValue.Name = "StunValue"
- StunValue.Value = 0
- --//=================================\\
- --\\=================================//
- --//=================================\\
- --|| DEBUFFS / BUFFS
- --\\=================================//
- local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
- DEFENSECHANGE1.Name = "ChangeDefense"
- DEFENSECHANGE1.Value = 0
- local MOVEMENTCHANGE1 = IT("NumberValue", nil)
- MOVEMENTCHANGE1.Name = "ChangeMovement"
- MOVEMENTCHANGE1.Value = 0
- --//=================================\\
- --\\=================================//
- --//=================================\\
- --|| SAZERENOS' ARTIFICIAL HEARTBEAT
- --\\=================================//
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "ArtificialHB"
- script:WaitForChild("ArtificialHB")
- frame = Frame_Speed
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.ArtificialHB:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.ArtificialHB:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.ArtificialHB:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- --//=================================\\
- --\\=================================//
- --//=================================\\
- --|| SOME FUNCTIONS
- --\\=================================//
- function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
- return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
- end
- function PositiveAngle(NUMBER)
- if NUMBER >= 0 then
- NUMBER = 0
- end
- return NUMBER
- end
- function NegativeAngle(NUMBER)
- if NUMBER <= 0 then
- NUMBER = 0
- end
- return NUMBER
- end
- function Swait(NUMBER)
- if NUMBER == 0 or NUMBER == nil then
- ArtificialHB.Event:wait()
- else
- for i = 1, NUMBER do
- ArtificialHB.Event:wait()
- end
- end
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5 / s
- return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00 - m11 - m22 + 1)
- local recip = 0.5 / s
- return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
- elseif i == 1 then
- local s = math.sqrt(m11 - m22 - m00 + 1)
- local recip = 0.5 / s
- return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
- elseif i == 2 then
- local s = math.sqrt(m22 - m00 - m11 + 1)
- local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w * xs, w * ys, w * zs
- local xx = x * xs
- local xy = x * ys
- local xz = x * zs
- local yy = y * ys
- local yz = y * zs
- local zz = z * zs
- return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = ACOS(cosTheta)
- local invSinTheta = 1 / SIN(theta)
- startInterp = SIN((1 - t) * theta) * invSinTheta
- finishInterp = SIN(t * theta) * invSinTheta
- else
- startInterp = 1 - t
- finishInterp = t
- end
- else
- if (1 + cosTheta) > 0.0001 then
- local theta = ACOS(-cosTheta)
- local invSinTheta = 1 / SIN(theta)
- startInterp = SIN((t - 1) * theta) * invSinTheta
- finishInterp = SIN(t * theta) * invSinTheta
- else
- startInterp = t - 1
- finishInterp = t
- end
- end
- return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
- end
- function Clerp(a, b, t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1 - t
- return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
- end
- function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
- local frame = IT("Frame")
- frame.BackgroundTransparency = TRANSPARENCY
- frame.BorderSizePixel = BORDERSIZEPIXEL
- frame.Position = POSITION
- frame.Size = SIZE
- frame.BackgroundColor3 = COLOR
- frame.BorderColor3 = BORDERCOLOR
- frame.Name = NAME
- frame.Parent = PARENT
- return frame
- end
- function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
- local label = IT("TextLabel")
- label.BackgroundTransparency = 1
- label.Size = UD2(1, 0, 1, 0)
- label.Position = UD2(0, 0, 0, 0)
- label.TextColor3 = C3(255, 255, 255)
- label.TextStrokeTransparency = STROKETRANSPARENCY
- label.TextTransparency = TRANSPARENCY
- label.FontSize = TEXTFONTSIZE
- label.Font = TEXTFONT
- label.BorderSizePixel = BORDERSIZEPIXEL
- label.TextScaled = true
- label.Text = TEXT
- label.Name = NAME
- label.Parent = PARENT
- return label
- end
- function NoOutlines(PART)
- PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
- end
- function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
- local NEWWELD = IT(TYPE)
- NEWWELD.Part0 = PART0
- NEWWELD.Part1 = PART1
- NEWWELD.C0 = C0
- NEWWELD.C1 = C1
- NEWWELD.Parent = PARENT
- return NEWWELD
- end
- function CreateSound(ID, PARENT, VOLUME, PITCH)
- coroutine.resume(coroutine.create(function()
- local NEWSOUND = IT("Sound", PARENT)
- NEWSOUND.Volume = VOLUME
- NEWSOUND.Pitch = PITCH
- NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
- Swait()
- NEWSOUND:play()
- game:GetService("Debris"):AddItem(NEWSOUND, 10)
- end))
- end
- --//=================================\\
- --\\=================================//
- --//=================================\\
- --|| WEAPON CREATION
- --\\=================================//
- local Handle = CreatePart(3, Weapon, "Brick", 0, 0, "Tawny", "Handle", VT(1.8,3.5,1.8))
- local HandleWeld = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0 * Player_Size, -1.5 * Player_Size, 1 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
- local HandlePart = CreatePart(3, Weapon, "Brick", 0, 0, "Tawny", "Handle", VT(2.2,1,2.2))
- local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Handle, HandlePart, CF(0 * Player_Size, 2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
- local HandlePart = CreatePart(3, Weapon, "Brick", 0, 0, "Tawny", "Handle", VT(2,0.3,2))
- local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Handle, HandlePart, CF(0 * Player_Size, -0.2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
- local HandlePart = CreatePart(3, Weapon, "Brick", 0, 0, "Tawny", "Handle", VT(2,0.3,2))
- local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Handle, HandlePart, CF(0 * Player_Size, -1.2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
- local Opening = CreatePart(3, Weapon, "Plastic", 0, 0, "Really black", "Handle", VT(1.2,0.6,0.1))
- local HandleWeld = CreateWeldOrSnapOrMotor("Weld", Opening, Handle, Opening, CF(0 * Player_Size, -0.8 * Player_Size, 0.9 * Player_Size) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
- local HandlePart = CreatePart(3, Weapon, "Metal", 0, 0, "Stone grey", "Handle", VT(1,1,0.1))
- local decal = Instance.new("Decal",HandlePart)
- decal.Texture = "http://www.roblox.com/asset/?id=140490792"
- decal.Face = "Back"
- local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Handle, HandlePart, CF(0 * Player_Size, 0.6 * Player_Size, 0.9 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
- for _, c in pairs(Weapon:GetChildren()) do
- if c.ClassName == "Part" then
- c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
- end
- end
- local chuck = Instance.new("Sound",Effects)
- chuck.SoundId = "rbxassetid://11900833"
- chuck.Pitch = 2
- chuck.Volume = 1
- Weapon.Parent = Character
- Humanoid.Died:connect(function()
- ATTACK = true
- end)
- print(Class_Name.." loaded.")
- --//=================================\\
- --\\=================================//
- function dealdamage(hit,min,max,maxstrength,beserk)
- if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
- local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
- local dmg = math.random(min,max)
- if humanoid.Health > 0 then
- if beserk == true then
- humanoid.Health = 0
- else
- CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
- --hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
- humanoid.Health = humanoid.Health - dmg
- --StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(255/255, 0, 0))
- local defence = Instance.new("BoolValue",hit.Parent)
- defence.Name = ("HitBy"..Player.Name)
- game:GetService("Debris"):AddItem(defence, 0.05)
- end
- end
- end
- end
- --//=================================\\
- --\\=================================//
- function chatfunc(text)
- local chat = coroutine.wrap(function()
- if Character:FindFirstChild("TalkingBillBoard")~= nil then
- Character:FindFirstChild("TalkingBillBoard"):destroy()
- end
- local naeeym2 = Instance.new("BillboardGui",Character)
- naeeym2.Size = UDim2.new(0,100,0,40)
- naeeym2.StudsOffset = Vector3.new(0,3,0)
- naeeym2.Adornee = Character.Head
- naeeym2.Name = "TalkingBillBoard"
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.BorderSizePixel = 0
- tecks2.Text = ""
- tecks2.Font = "SciFi"
- tecks2.TextSize = 30
- tecks2.TextStrokeTransparency = 1
- tecks2.TextColor3 = Color3.new(0,0,0)
- tecks2.TextStrokeColor3 = Color3.new(0,0,0)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- local tecks3 = Instance.new("TextLabel",naeeym2)
- tecks3.BackgroundTransparency = 1
- tecks3.BorderSizePixel = 0
- tecks3.Text = ""
- tecks3.Font = "SciFi"
- tecks3.TextSize = 30
- tecks3.TextStrokeTransparency = 1
- tecks3.TextColor3 = Color3.new(0,0,0)
- tecks3.TextStrokeColor3 = Color3.new(0,0,0)
- tecks3.Size = UDim2.new(1,0,0.5,0)
- for i = 1,string.len(text),1 do
- tecks2.Text = string.sub(text,1,i)
- tecks3.Text = string.sub(text,1,i)
- wait(0.01)
- end
- wait(2)
- for i = 1, 50 do
- Swait()
- tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
- tecks2.Rotation = tecks2.Rotation - .8
- tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
- tecks2.TextTransparency = tecks2.TextTransparency + .04
- tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
- tecks3.Rotation = tecks2.Rotation + .8
- tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
- tecks3.TextTransparency = tecks2.TextTransparency + .04
- end
- naeeym2:Destroy()
- end)
- chat()
- end
- function onChatted(msg)
- if msg == "Mailman's Wrath" then
- chatfunc("Spell card! "..msg.."!")
- StartPosition()
- Swait(70)
- MailmansWrath()
- elseif msg == "Papercut Chaos" then
- StartPosition()
- chatfunc("Spell card! "..msg.."!")
- Swait(70)
- PapercutChaos()
- elseif msg == "Mailbox Madness" then
- StartPosition()
- chatfunc("Spell card! "..msg.."!")
- MailboxMadness()
- elseif msg == "Final Inbox" then
- StartPosition()
- chatfunc("SPELL CARD! FINAL INBOX!")
- Swait(80)
- sick.SoundId = FinalInboxLink
- sick.Volume = 3
- sick:Play()
- chatfunc("DIE!")
- FinalInbox()
- sick.SoundId = NormalMusicLink
- sick.Volume = 0.6
- sick:Play()
- elseif msg == "Flash Mode" then
- chatfunc("Flash MODE")
- wait()
- Player = game.Players.LocalPlayer
- Object = Player.Character.HumanoidRootPart
- Arm1 = Player.Character["Right Arm"]
- PreviousA1 = Arm1.CFrame.p
- Arm2 = Player.Character["Left Arm"]
- PreviousA2 = Arm2.CFrame.p
- Leg1 = Player.Character["Right Leg"]
- PreviousL1 = Leg1.CFrame.p
- Leg2 = Player.Character["Left Leg"]
- PreviousL2 = Leg2.CFrame.p
- Run = game["Run Service"]
- PreviousP = Object.CFrame.p
- Running = false
- Phase = false
- PhaseActive = false
- Morph = false
- MorphActive = false
- Tornado = false
- TornadoRadius = 50
- TornadoActive = false
- Portal = false
- PortalEnd = false
- MaxZ = 15
- MinZ = -15
- LightMaxX = 3
- LightMinX = 1
- LightMaxX2 = -1
- LightMinX2 = -3
- LightMaxY = 3
- LightMinY = -1
- Rotation = 0
- Length = 10
- Color = BrickColor.Yellow()
- PColor = Color3.new(255,255,0)
- PrevPoint1 = nil
- PrevPoint2 = nil
- PrevPoint3 = nil
- PrevPoint4 = nil
- PrevPoint5 = nil
- PrevPoint6 = nil
- PrevPoint7 = nil
- PrevPoint8 = nil
- PrevPoint9 = nil
- PrevPoint10 = nil
- PrevPoint11 = nil
- PrevPoint12 = nil
- angle = 0
- Mouse = Player:GetMouse()
- Player.Character.Humanoid.WalkSpeed = 100
- Nil = function()
- PrevPoint1 = "Empty"
- PrevPoint2 = "Empty"
- PrevPoint3 = "Empty"
- PrevPoint4 = "Empty"
- PrevPoint5 = "Empty"
- PrevPoint6 = "Empty"
- PrevPoint7 = "Empty"
- PrevPoint8 = "Empty"
- PrevPoint9 = "Empty"
- PrevPoint10 = "Empty"
- PrevPoint11 = "Empty"
- PrevPoint12 = "Empty"
- end
- local Lightning = coroutine.wrap(function()
- while wait() do
- if Portal == false then
- angle = angle + 0.6
- local Model = Instance.new("Model",workspace)
- Model.Name = "Lightning"
- local Point1 = Instance.new("Part",Model)
- Point1.Transparency = 1
- Point1.Size = Vector3.new(0.2,0.2,0.2)
- Point1.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point1.Size.Z/2))
- Point1.Anchored = true
- Point1.CanCollide = false
- Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
- local Point2 = Instance.new("Part",Model)
- Point2.Transparency = 1
- Point2.Size = Vector3.new(0.2,0.2,0.2)
- Point2.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point2.Size.Z/2))
- Point2.Anchored = true
- Point2.CanCollide = false
- Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
- local Point3 = Instance.new("Part",Model)
- Point3.Transparency = 1
- Point3.Size = Vector3.new(0.2,0.2,0.2)
- Point3.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point3.Size.Z/2))
- Point3.Anchored = true
- Point3.CanCollide = false
- Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
- local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.25,0.25,distance)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
- local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.25,0.25,distance2)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
- local Point1 = Instance.new("Part",Model)
- Point1.Transparency = 1
- Point1.Size = Vector3.new(0.2,0.2,0.2)
- Point1.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point1.Size.Z/2))
- Point1.Anchored = true
- Point1.CanCollide = false
- Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
- local Point2 = Instance.new("Part",Model)
- Point2.Transparency = 1
- Point2.Size = Vector3.new(0.2,0.2,0.2)
- Point2.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point2.Size.Z/2))
- Point2.Anchored = true
- Point2.CanCollide = false
- Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
- local Point3 = Instance.new("Part",Model)
- Point3.Transparency = 1
- Point3.Size = Vector3.new(0.2,0.2,0.2)
- Point3.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point3.Size.Z/2))
- Point3.Anchored = true
- Point3.CanCollide = false
- Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
- local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.25,0.25,distance)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
- local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.3,0.3,distance2)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
- local Point1 = Instance.new("Part",Model)
- Point1.Transparency = 1
- Point1.Size = Vector3.new(0.2,0.2,0.2)
- Point1.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
- Point1.Anchored = true
- Point1.CanCollide = false
- Point1.CFrame = Point1.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
- local Point2 = Instance.new("Part",Model)
- Point2.Transparency = 1
- Point2.Size = Vector3.new(0.2,0.2,0.2)
- Point2.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
- Point2.Anchored = true
- Point2.CanCollide = false
- Point2.CFrame = Point2.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
- local Point3 = Instance.new("Part",Model)
- Point3.Transparency = 1
- Point3.Size = Vector3.new(0.2,0.2,0.2)
- Point3.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
- Point3.Anchored = true
- Point3.CanCollide = false
- Point3.CFrame = Point3.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
- local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.25,0.25,distance)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
- local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.25,0.25,distance2)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
- local Point1 = Instance.new("Part",Model)
- Point1.Transparency = 1
- Point1.Size = Vector3.new(0.2,0.2,0.2)
- Point1.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
- Point1.Anchored = true
- Point1.CanCollide = false
- Point1.CFrame = Point1.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
- local Point2 = Instance.new("Part",Model)
- Point2.Transparency = 1
- Point2.Size = Vector3.new(0.2,0.2,0.2)
- Point2.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
- Point2.Anchored = true
- Point2.CanCollide = false
- Point2.CFrame = Point2.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
- local Point3 = Instance.new("Part",Model)
- Point3.Transparency = 1
- Point3.Size = Vector3.new(0.2,0.2,0.2)
- Point3.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
- Point3.Anchored = true
- Point3.CanCollide = false
- Point3.CFrame = Point3.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
- local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.25,0.25,distance)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
- local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.25,0.25,distance2)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
- local Children = Model:GetChildren()
- wait(0.1)
- for i = 1,#Children do
- if Children[i]:IsA("Part") then
- Children[i].Transparency = 1
- end
- game.Debris:AddItem(Children[i],0)
- end
- end
- end
- end)
- Lightning()
- TornadoFunction = function()
- local TornadoModel = Instance.new("Model",workspace)
- local Center = Instance.new("Part",TornadoModel)
- Center.Anchored = true
- Center.CanCollide = false
- Center.Transparency = 1
- Center.Size = Vector3.new(2,2,2)
- Center.CFrame = Object.CFrame * CFrame.new(0,0,-20)
- local Death = Instance.new("Part",TornadoModel)
- Death.Anchored = true
- Death.CanCollide = false
- Death.Transparency = 1
- Death.Size = Vector3.new(TornadoRadius+10,TornadoRadius+10,TornadoRadius+10)
- Death.CFrame = Center.CFrame
- Death.Touched:connect(function(Touch)
- if Touch.Parent:FindFirstChild("Humanoid") ~= nil and Touch.Parent.Name ~= Player.Name then
- Touch.Parent.Humanoid.Health = 0
- end
- end)
- local TornadoFunc = function()
- local Tornanimation = coroutine.wrap(function()
- while Run.Stepped:wait() do
- if Tornado == false then Death:Destroy() break end
- angle = angle + 0.1
- Object.Anchored = false
- Object.CFrame = Center.CFrame * CFrame.Angles(0,angle,0) * CFrame.new(0,0,TornadoRadius)
- Object.CFrame = Object.CFrame * CFrame.Angles(0,-math.rad(90),0)
- end
- end)
- Tornanimation()
- end
- TornadoFunc()
- end
- PhaseFunction = function()
- local Phase = coroutine.wrap(function()
- while wait() do
- if Phase == false then break end
- if Player.Character.Humanoid.WalkSpeed > 50 and Phase == true then
- Object.CFrame = Object.CFrame * CFrame.new(0,0,-Player.Character.Humanoid.WalkSpeed/20)
- end
- end
- end)
- Phase()
- end
- PortalFunction = function()
- local PortalBlock = Instance.new("Part",workspace)
- PortalBlock.CFrame = Object.CFrame * CFrame.new(0,0,-100)
- PortalBlock.Transparency = 1
- PortalBlock.Anchored = true
- PortalBlock.CanCollide = false
- PortalBlock.Size = Vector3.new(20,20,0.2)
- PortalBlock.CFrame = PortalBlock.CFrame * CFrame.new(0,(PortalBlock.Size.Y/2),0)
- local Gui = Instance.new("SurfaceGui",PortalBlock)
- local Img = Instance.new("ImageLabel",Gui)
- Img.Size = UDim2.new(2,0,2,0)
- Img.Position = UDim2.new(-0.5,0,-0.5,0)
- Img.Transparency = 1
- Img.Image = "http://www.roblox.com/asset/?id=21315275"
- local Gui = Instance.new("SurfaceGui",PortalBlock)
- Gui.Face = "Back"
- local Img = Instance.new("ImageLabel",Gui)
- Img.Size = UDim2.new(2,0,2,0)
- Img.Position = UDim2.new(-0.5,0,-0.5,0)
- Img.Transparency = 1
- Img.Image = "http://www.roblox.com/asset/?id=21315275"
- Object.CFrame = PortalBlock.CFrame
- local Face = Object.Parent.Head.face.Texture
- local ObjectC = Object.Parent:GetChildren()
- for i = 1,#ObjectC do
- if ObjectC[i]:IsA("Part") and ObjectC[i].Name ~= "HumanoidRootPart" then
- ObjectC[i].Transparency = 1
- elseif ObjectC[i]:IsA("Hat") then
- ObjectC[i].Handle.Transparency = 1
- end
- if ObjectC[i].Name == "Head" then
- ObjectC[i].face.Texture = ""
- end
- end
- local PortalR = coroutine.wrap(function()
- wait(0.1)
- Portal = true
- PortalEnd = true
- while wait(0.001) do
- if Portal == false then
- break
- end
- Nil()
- PortalBlock.CFrame = PortalBlock.CFrame * CFrame.Angles(0,0,-0.1)
- wait(0.01)
- end
- PortalBlock:Destroy()
- for i = 1,#ObjectC do
- if ObjectC[i]:IsA("Part") and ObjectC[i].Name ~= "HumanoidRootPart" then
- ObjectC[i].Transparency = 0
- elseif ObjectC[i]:IsA("Hat") then
- ObjectC[i].Handle.Transparency = 0
- end
- if ObjectC[i].Name == "Head" then
- ObjectC[i].face.Texture = Face
- end
- end
- game.Players.LocalPlayer.Character.Part.Transparency = 1
- local PortalBlock = Instance.new("Part",workspace)
- PortalBlock.CFrame = Object.CFrame * CFrame.new(0,0,0)
- PortalBlock.Transparency = 1
- PortalBlock.Anchored = true
- PortalBlock.CanCollide = false
- PortalBlock.Size = Vector3.new(20,20,0.2)
- PortalBlock.CFrame = PortalBlock.CFrame * CFrame.new(0,(PortalBlock.Size.Y/2),0)
- local Gui = Instance.new("SurfaceGui",PortalBlock)
- local Img = Instance.new("ImageLabel",Gui)
- Img.Size = UDim2.new(2,0,2,0)
- Img.Position = UDim2.new(-0.5,0,-0.5,0)
- Img.Transparency = 1
- Img.Image = "http://www.roblox.com/asset/?id=21315275"
- local Gui = Instance.new("SurfaceGui",PortalBlock)
- Gui.Face = "Back"
- local Img = Instance.new("ImageLabel",Gui)
- Img.Size = UDim2.new(2,0,2,0)
- Img.Position = UDim2.new(-0.5,0,-0.5,0)
- Img.Transparency = 1
- Img.Image = "http://www.roblox.com/asset/?id=21315275"
- Object.CFrame = PortalBlock.CFrame
- PreviousA1 = Arm1.CFrame.p
- PreviousA2 = Arm2.CFrame.p
- PreviousL1 = Leg1.CFrame.p
- PreviousL2 = Leg2.CFrame.p
- PreviousP = Object.CFrame.p
- PortalEnd = false
- wait(2)
- PortalBlock:Destroy()
- end)
- PortalR()
- end
- MorphFunction = function()
- local MaxX = 100
- local MinX = -100
- local MaxY = 100
- local MinY = -100
- local MaxZ = 100
- local MinZ = -100
- local Morph = coroutine.wrap(function()
- while Run.Stepped:wait(0.1) do
- if Morph == false then break end
- local Model = Instance.new("Model",workspace)
- if Player.Character:FindFirstChild("Shirt") then
- local Shirt = Player.Character.Shirt:Clone()
- Shirt.Parent = Model
- end
- if Player.Character:FindFirstChild("Pants") then
- local Pants = Player.Character.Pants:Clone()
- Pants.Parent = Model
- end
- local Humanoid = Instance.new("Humanoid",Model)
- local LeftArm = Player.Character["Left Arm"]:Clone()
- LeftArm.Parent = Model
- LeftArm.Transparency = 0.4
- LeftArm.Anchored = true
- LeftArm.CFrame = Player.Character["Left Arm"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
- local RightArm = Player.Character["Right Arm"]:Clone()
- RightArm.Parent = Model
- RightArm.Transparency = 0.4
- RightArm.Anchored = true
- RightArm.CFrame = Player.Character["Right Arm"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
- local LeftLeg = Player.Character["Left Leg"]:Clone()
- LeftLeg.Parent = Model
- LeftLeg.Transparency = 0.4
- LeftLeg.Anchored = true
- LeftLeg.CFrame = Player.Character["Left Leg"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
- local RightLeg = Player.Character["Right Leg"]:Clone()
- RightLeg.Parent = Model
- RightLeg.Transparency = 0.4
- RightLeg.Anchored = true
- RightLeg.CFrame = Player.Character["Right Leg"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
- local Children = Model:GetChildren()
- wait(0.01)
- for i = 1,#Children do
- if Children[i]:IsA("Part") then
- Children[i].Transparency = 1
- end
- game.Debris:AddItem(Children[i],0)
- end
- end
- end)
- Morph()
- end
- local Guis = coroutine.wrap(function()
- local Gui = Instance.new("ScreenGui",Player.PlayerGui)
- local TextBox = Instance.new("TextBox",Gui)
- TextBox.Text = "Speed"
- TextBox.BackgroundColor3 = Color3.new(255,255,255)
- TextBox.BorderColor3 = Color3.new(0,0,0)
- TextBox.Size = UDim2.new(0,200,0,25)
- TextBox.Position = UDim2.new(0,10,0.5,-12.5)
- TextBox.FocusLost:connect(function(EnterPressed)
- if EnterPressed then
- Player.Character.Humanoid.WalkSpeed = TextBox.Text
- end
- end)
- local Flash = Instance.new("TextButton",Gui)
- Flash.BackgroundColor3 = Color3.new(255,255,255)
- Flash.BorderColor3 = Color3.new(0,0,0)
- Flash.Size = UDim2.new(0,200,0,25)
- Flash.Position = UDim2.new(0,10,0.5,22.5)
- Flash.Text = "The Flash"
- Flash.MouseButton1Click:connect(function()
- Color = BrickColor.Yellow()
- PColor = Color3.new(255,255,0)
- end)
- local RFlash = Instance.new("TextButton",Gui)
- RFlash.BackgroundColor3 = Color3.new(255,255,255)
- RFlash.BorderColor3 = Color3.new(0,0,0)
- RFlash.Size = UDim2.new(0,200,0,25)
- RFlash.Position = UDim2.new(0,10,0.5,57.5)
- RFlash.Text = "The Reverse Flash"
- RFlash.MouseButton1Click:connect(function()
- Color = BrickColor.new("Really red")
- PColor = Color3.new(255,0,0)
- end)
- local Zoom = Instance.new("TextButton",Gui)
- Zoom.BackgroundColor3 = Color3.new(255,255,255)
- Zoom.BorderColor3 = Color3.new(0,0,0)
- Zoom.Size = UDim2.new(0,200,0,25)
- Zoom.Position = UDim2.new(0,10,0.5,92.5)
- Zoom.Text = "Zoom"
- Zoom.MouseButton1Click:connect(function()
- Color = BrickColor.new("Cyan")
- PColor = Color3.new(0,170,255)
- end)
- local Radius = Instance.new("TextBox",Gui)
- Radius.Text = "Tornado Radius"
- Radius.BackgroundColor3 = Color3.new(255,255,255)
- Radius.BorderColor3 = Color3.new(0,0,0)
- Radius.Size = UDim2.new(0,200,0,25)
- Radius.Position = UDim2.new(0,10,0.5,127.5)
- Radius.FocusLost:connect(function(EnterPressed)
- if EnterPressed then
- TornadoRadius = Radius.Text
- end
- end)
- Mouse.KeyDown:connect(function(Key)
- if Key == "f" then
- if Portal == false then
- chatfunc("Portal")
- PortalFunction()
- Nil()
- else
- Portal = false
- end
- end
- if Key == "r" then
- if Phase == false then
- chatfunc("Phase")
- Phase = true
- PhaseFunction()
- print "PhaseFunction"
- else
- Phase = false
- end
- end
- if Key == "e" then
- if Tornado == false then
- sick.SoundId = "rbxassetid://779611477"
- sick.Volume = 10
- Tornado = true
- TornadoFunction()
- else
- sick.SoundId = NormalMusicLink
- Tornado = false
- chatfunc("Spin")
- end
- end
- if Key == "t" then
- if Morph == false then
- chatfunc("Morph")
- Morph = true
- MorphFunction()
- else
- Morph = false
- end
- end
- end)
- end)
- Guis()
- Run.RenderStepped:connect(function()
- if (Object.CFrame.p - PreviousP).magnitude > 7 and Player.Character.Humanoid.WalkSpeed > 25 and Portal == false and PortalEnd == false then
- local Model = Instance.new("Model",workspace)
- Model.Name = "Ray"
- local Humanoid = Instance.new("Humanoid",Model)
- if Player.Character:FindFirstChild("Shirt") ~= nil then
- Player.Character.Shirt:Clone().Parent = Model
- end
- if Player.Character:FindFirstChild("Pants") ~= nil then
- Player.Character.Pants:Clone().Parent = Model
- end
- local distance = (Object.CFrame.p - PreviousP).magnitude
- local Light = Instance.new("Part",Model)
- Light.Anchored = true
- Light.CanCollide = false
- Light.TopSurface = "SmoothNoOutlines"
- Light.BottomSurface = "SmoothNoOutlines"
- Light.BackSurface = "SmoothNoOutlines"
- Light.FrontSurface = "SmoothNoOutlines"
- Light.LeftSurface = "SmoothNoOutlines"
- Light.RightSurface = "SmoothNoOutlines"
- Light.Transparency = 1
- Light.BrickColor = BrickColor.Black()
- Light.Size = Vector3.new(2,2,distance)
- Light.CFrame = CFrame.new(Object.CFrame.p , PreviousP) * CFrame.new(0,0,-distance/2)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 15
- PointLight.Brightness = 100
- PointLight.Color = PColor
- local distance = (Arm1.CFrame.p - PreviousA1).magnitude
- local Arm1Light = Instance.new("Part",Model)
- Arm1Light.Name = "Right Arm"
- Arm1Light.Anchored = true
- Arm1Light.CanCollide = false
- Arm1Light.TopSurface = "SmoothNoOutlines"
- Arm1Light.BottomSurface = "SmoothNoOutlines"
- Arm1Light.BackSurface = "SmoothNoOutlines"
- Arm1Light.FrontSurface = "SmoothNoOutlines"
- Arm1Light.LeftSurface = "SmoothNoOutlines"
- Arm1Light.RightSurface = "SmoothNoOutlines"
- Arm1Light.Transparency = 0.5
- Arm1Light.BrickColor = BrickColor.Black()
- Arm1Light.Size = Vector3.new(1,2,distance)
- Arm1Light.CFrame = CFrame.new(Arm1.CFrame.p , PreviousA1) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
- local distance = (Arm2.CFrame.p - PreviousA2).magnitude
- local Arm2Light = Instance.new("Part",Model)
- Arm2Light.Name = "Left Arm"
- Arm2Light.Anchored = true
- Arm2Light.CanCollide = false
- Arm2Light.TopSurface = "SmoothNoOutlines"
- Arm2Light.BottomSurface = "SmoothNoOutlines"
- Arm2Light.BackSurface = "SmoothNoOutlines"
- Arm2Light.FrontSurface = "SmoothNoOutlines"
- Arm2Light.LeftSurface = "SmoothNoOutlines"
- Arm2Light.RightSurface = "SmoothNoOutlines"
- Arm2Light.Transparency = 0.5
- Arm2Light.BrickColor = BrickColor.Black()
- Arm2Light.Size = Vector3.new(1,2,distance)
- Arm2Light.CFrame = CFrame.new(Arm2.CFrame.p , PreviousA2) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
- local distance = (Leg1.CFrame.p - PreviousL1).magnitude
- local Leg1Light = Instance.new("Part",Model)
- Leg1Light.Name = "Right Leg"
- Leg1Light.Anchored = true
- Leg1Light.CanCollide = false
- Leg1Light.TopSurface = "SmoothNoOutlines"
- Leg1Light.BottomSurface = "SmoothNoOutlines"
- Leg1Light.BackSurface = "SmoothNoOutlines"
- Leg1Light.FrontSurface = "SmoothNoOutlines"
- Leg1Light.LeftSurface = "SmoothNoOutlines"
- Leg1Light.RightSurface = "SmoothNoOutlines"
- Leg1Light.Transparency = 0.5
- Leg1Light.BrickColor = BrickColor.Black()
- Leg1Light.Size = Vector3.new(1,2,distance)
- Leg1Light.CFrame = CFrame.new(Leg1.CFrame.p , PreviousL1) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
- local distance = (Leg2.CFrame.p - PreviousL2).magnitude
- local Leg1Light = Instance.new("Part",Model)
- Leg1Light.Name = "Left Leg"
- Leg1Light.Anchored = true
- Leg1Light.CanCollide = false
- Leg1Light.TopSurface = "SmoothNoOutlines"
- Leg1Light.BottomSurface = "SmoothNoOutlines"
- Leg1Light.BackSurface = "SmoothNoOutlines"
- Leg1Light.FrontSurface = "SmoothNoOutlines"
- Leg1Light.LeftSurface = "SmoothNoOutlines"
- Leg1Light.RightSurface = "SmoothNoOutlines"
- Leg1Light.Transparency = 0.5
- Leg1Light.BrickColor = BrickColor.Black()
- Leg1Light.Size = Vector3.new(1,2,distance)
- Leg1Light.CFrame = CFrame.new(Leg2.CFrame.p , PreviousL2) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
- local Point1 = Instance.new("Part",Model)
- Point1.Transparency = 1
- Point1.Anchored = true
- Point1.CanCollide = false
- Point1.Size = Vector3.new(0.2,0.2,0.2)
- Point1.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
- * CFrame.new(Light.Size.X/2 ,0 ,0)
- * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
- * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
- local Point2 = Instance.new("Part",Model)
- Point2.Transparency = 1
- Point2.Anchored = true
- Point2.CanCollide = false
- Point2.Size = Vector3.new(0.2,0.2,0.2)
- Point2.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
- * CFrame.new(Light.Size.X/2 ,0 ,0)
- * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
- * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
- local Point5 = Instance.new("Part",Model)
- Point5.Transparency = 1
- Point5.Anchored = true
- Point5.CanCollide = false
- Point5.Size = Vector3.new(0.2,0.2,0.2)
- Point5.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
- * CFrame.new(Light.Size.X/2 ,0 ,0)
- * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
- * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
- local Point6 = Instance.new("Part",Model)
- Point6.Transparency = 1
- Point6.Anchored = true
- Point6.CanCollide = false
- Point6.Size = Vector3.new(0.2,0.2,0.2)
- Point6.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
- * CFrame.new(Light.Size.X/2 ,0 ,0)
- * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
- * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
- local Point3 = Instance.new("Part",Model)
- Point3.Transparency = 1
- Point3.Anchored = true
- Point3.CanCollide = false
- Point3.Size = Vector3.new(0.2,0.2,0.2)
- Point3.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
- * CFrame.new(-Light.Size.X/2 ,0 ,0)
- * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
- * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
- local Point4 = Instance.new("Part",Model)
- Point4.Transparency = 1
- Point4.Anchored = true
- Point4.CanCollide = false
- Point4.Size = Vector3.new(0.2,0.2,0.2)
- Point4.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
- * CFrame.new(-Light.Size.X/2 ,0 ,0)
- * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
- * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
- local Point7 = Instance.new("Part",Model)
- Point7.Transparency = 1
- Point7.Anchored = true
- Point7.CanCollide = false
- Point7.Size = Vector3.new(0.2,0.2,0.2)
- Point7.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
- * CFrame.new(-Light.Size.X/2 ,0 ,0)
- * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
- * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
- local Point8 = Instance.new("Part",Model)
- Point8.Transparency = 1
- Point8.Anchored = true
- Point8.CanCollide = false
- Point8.Size = Vector3.new(0.2,0.2,0.2)
- Point8.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
- * CFrame.new(-Light.Size.X/2 ,0 ,0)
- * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
- * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
- local Point9 = Instance.new("Part",Model)
- Point9.Transparency = 1
- Point9.Anchored = true
- Point9.CanCollide = false
- Point9.Size = Vector3.new(0.2,0.2,0.2)
- Point9.CFrame = Light.CFrame * CFrame.new(0,-1,-Light.Size.Z/2)
- * CFrame.new(Light.Size.X/2 ,-2 ,0)
- * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
- * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
- local Point10 = Instance.new("Part",Model)
- Point10.Transparency = 1
- Point10.Anchored = true
- Point10.CanCollide = false
- Point10.Size = Vector3.new(0.2,0.2,0.2)
- Point10.CFrame = Light.CFrame * CFrame.new(0,-1,Light.Size.Z/2)
- * CFrame.new(Light.Size.X/2 ,0 ,0)
- * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
- * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
- local Point11 = Instance.new("Part",Model)
- Point11.Transparency = 1
- Point11.Anchored = true
- Point11.CanCollide = false
- Point11.Size = Vector3.new(0.2,0.2,0.2)
- Point11.CFrame = Light.CFrame * CFrame.new(0,-1,-Light.Size.Z/2)
- * CFrame.new(Light.Size.X/2 ,-2 ,0)
- * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
- * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
- local Point12 = Instance.new("Part",Model)
- Point12.Transparency = 1
- Point12.Anchored = true
- Point12.CanCollide = false
- Point12.Size = Vector3.new(0.2,0.2,0.2)
- Point12.CFrame = Light.CFrame * CFrame.new(0,-1,Light.Size.Z/2)
- * CFrame.new(Light.Size.X/2 ,-2 ,0)
- * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
- * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
- if PrevPoint2 == nil or PrevPoint2 == "Empty" then
- local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- Light.Anchored = true
- Light.CanCollide = false
- Light.TopSurface = "SmoothNoOutlines"
- Light.BottomSurface = "SmoothNoOutlines"
- Light.BackSurface = "SmoothNoOutlines"
- Light.FrontSurface = "SmoothNoOutlines"
- Light.LeftSurface = "SmoothNoOutlines"
- Light.RightSurface = "SmoothNoOutlines"
- Light.Transparency = 0
- Light.Size = Vector3.new(0.4,0.4,distance)
- Light.Material = "Neon"
- Light.BrickColor = Color
- Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
- elseif PrevPoint2 ~= nil then
- local distance = (Point2.CFrame.p - PrevPoint2).magnitude
- local Light = Instance.new("Part",Model)
- Light.Anchored = true
- Light.CanCollide = false
- Light.TopSurface = "SmoothNoOutlines"
- Light.BottomSurface = "SmoothNoOutlines"
- Light.BackSurface = "SmoothNoOutlines"
- Light.FrontSurface = "SmoothNoOutlines"
- Light.LeftSurface = "SmoothNoOutlines"
- Light.RightSurface = "SmoothNoOutlines"
- Light.Transparency = 0
- Light.Size = Vector3.new(0.4,0.4,distance)
- Light.Material = "Neon"
- Light.BrickColor = Color
- Light.CFrame = CFrame.new(Point2.CFrame.p , PrevPoint2) * CFrame.new(0,0,-distance/2)
- end
- if PrevPoint4 == nil or PrevPoint4 == "Empty" then
- local distance = (Point4.CFrame.p - Point3.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- Light.Anchored = true
- Light.CanCollide = false
- Light.TopSurface = "SmoothNoOutlines"
- Light.BottomSurface = "SmoothNoOutlines"
- Light.BackSurface = "SmoothNoOutlines"
- Light.FrontSurface = "SmoothNoOutlines"
- Light.LeftSurface = "SmoothNoOutlines"
- Light.RightSurface = "SmoothNoOutlines"
- Light.Transparency = 0
- Light.Size = Vector3.new(0.4,0.4,distance)
- Light.Material = "Neon"
- Light.BrickColor = Color
- Light.CFrame = CFrame.new(Point4.CFrame.p , Point3.CFrame.p) * CFrame.new(0,0,-distance/2)
- elseif PrevPoint4 ~= nil then
- local distance = (Point4.CFrame.p - PrevPoint4).magnitude
- local Light = Instance.new("Part",Model)
- Light.Anchored = true
- Light.CanCollide = false
- Light.TopSurface = "SmoothNoOutlines"
- Light.BottomSurface = "SmoothNoOutlines"
- Light.BackSurface = "SmoothNoOutlines"
- Light.FrontSurface = "SmoothNoOutlines"
- Light.LeftSurface = "SmoothNoOutlines"
- Light.RightSurface = "SmoothNoOutlines"
- Light.Transparency = 0
- Light.Size = Vector3.new(0.4,0.4,distance)
- Light.Material = "Neon"
- Light.BrickColor = Color
- Light.CFrame = CFrame.new(Point4.CFrame.p , PrevPoint4) * CFrame.new(0,0,-distance/2)
- end
- if PrevPoint6 == nil or PrevPoint6 == "Empty" then
- local distance = (Point6.CFrame.p - Point5.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- Light.Anchored = true
- Light.CanCollide = false
- Light.TopSurface = "SmoothNoOutlines"
- Light.BottomSurface = "SmoothNoOutlines"
- Light.BackSurface = "SmoothNoOutlines"
- Light.FrontSurface = "SmoothNoOutlines"
- Light.LeftSurface = "SmoothNoOutlines"
- Light.RightSurface = "SmoothNoOutlines"
- Light.Transparency = 0
- Light.Size = Vector3.new(0.4,0.4,distance)
- Light.Material = "Neon"
- Light.BrickColor = Color
- Light.CFrame = CFrame.new(Point6.CFrame.p , Point5.CFrame.p) * CFrame.new(0,0,-distance/2)
- elseif PrevPoint6 ~= nil then
- local distance = (Point6.CFrame.p - PrevPoint6).magnitude
- local Light = Instance.new("Part",Model)
- Light.Anchored = true
- Light.CanCollide = false
- Light.TopSurface = "SmoothNoOutlines"
- Light.BottomSurface = "SmoothNoOutlines"
- Light.BackSurface = "SmoothNoOutlines"
- Light.FrontSurface = "SmoothNoOutlines"
- Light.LeftSurface = "SmoothNoOutlines"
- Light.RightSurface = "SmoothNoOutlines"
- Light.Transparency = 0
- Light.Size = Vector3.new(0.4,0.4,distance)
- Light.Material = "Neon"
- Light.BrickColor = Color
- Light.CFrame = CFrame.new(Point6.CFrame.p , PrevPoint6) * CFrame.new(0,0,-distance/2)
- end
- if PrevPoint8 == nil or PrevPoint8 == "Empty" then
- local distance = (Point8.CFrame.p - Point7.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- Light.Anchored = true
- Light.CanCollide = false
- Light.TopSurface = "SmoothNoOutlines"
- Light.BottomSurface = "SmoothNoOutlines"
- Light.BackSurface = "SmoothNoOutlines"
- Light.FrontSurface = "SmoothNoOutlines"
- Light.LeftSurface = "SmoothNoOutlines"
- Light.RightSurface = "SmoothNoOutlines"
- Light.Transparency = 0
- Light.Size = Vector3.new(0.4,0.4,distance)
- Light.Material = "Neon"
- Light.BrickColor = Color
- Light.CFrame = CFrame.new(Point8.CFrame.p , Point7.CFrame.p) * CFrame.new(0,0,-distance/2)
- elseif PrevPoint8 ~= nil then
- local distance = (Point8.CFrame.p - PrevPoint8).magnitude
- local Light = Instance.new("Part",Model)
- Light.Anchored = true
- Light.CanCollide = false
- Light.TopSurface = "SmoothNoOutlines"
- Light.BottomSurface = "SmoothNoOutlines"
- Light.BackSurface = "SmoothNoOutlines"
- Light.FrontSurface = "SmoothNoOutlines"
- Light.LeftSurface = "SmoothNoOutlines"
- Light.RightSurface = "SmoothNoOutlines"
- Light.Transparency = 0
- Light.Size = Vector3.new(0.4,0.4,distance)
- Light.Material = "Neon"
- Light.BrickColor = Color
- Light.CFrame = CFrame.new(Point8.CFrame.p , PrevPoint8) * CFrame.new(0,0,-distance/2)
- end
- if PrevPoint10 == nil or PrevPoint10 == "Empty" then
- local distance = (Point10.CFrame.p - Point9.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- Light.Anchored = true
- Light.CanCollide = false
- Light.TopSurface = "SmoothNoOutlines"
- Light.BottomSurface = "SmoothNoOutlines"
- Light.BackSurface = "SmoothNoOutlines"
- Light.FrontSurface = "SmoothNoOutlines"
- Light.LeftSurface = "SmoothNoOutlines"
- Light.RightSurface = "SmoothNoOutlines"
- Light.Transparency = 0
- Light.Size = Vector3.new(0.4,0.4,distance)
- Light.Material = "Neon"
- Light.BrickColor = Color
- Light.CFrame = CFrame.new(Point10.CFrame.p , Point9.CFrame.p) * CFrame.new(0,0,-distance/2)
- elseif PrevPoint10 ~= nil then
- local distance = (Point10.CFrame.p - PrevPoint10).magnitude
- local Light = Instance.new("Part",Model)
- Light.Anchored = true
- Light.CanCollide = false
- Light.TopSurface = "SmoothNoOutlines"
- Light.BottomSurface = "SmoothNoOutlines"
- Light.BackSurface = "SmoothNoOutlines"
- Light.FrontSurface = "SmoothNoOutlines"
- Light.LeftSurface = "SmoothNoOutlines"
- Light.RightSurface = "SmoothNoOutlines"
- Light.Transparency = 0
- Light.Size = Vector3.new(0.4,0.4,distance)
- Light.Material = "Neon"
- Light.BrickColor = Color
- Light.CFrame = CFrame.new(Point10.CFrame.p , PrevPoint10) * CFrame.new(0,0,-distance/2)
- end
- if PrevPoint12 == nil or PrevPoint12 == "Empty" then
- local distance = (Point12.CFrame.p - Point11.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- Light.Anchored = true
- Light.CanCollide = false
- Light.TopSurface = "SmoothNoOutlines"
- Light.BottomSurface = "SmoothNoOutlines"
- Light.BackSurface = "SmoothNoOutlines"
- Light.FrontSurface = "SmoothNoOutlines"
- Light.LeftSurface = "SmoothNoOutlines"
- Light.RightSurface = "SmoothNoOutlines"
- Light.Transparency = 0
- Light.Size = Vector3.new(0.4,0.4,distance)
- Light.Material = "Neon"
- Light.BrickColor = Color
- Light.CFrame = CFrame.new(Point12.CFrame.p , Point11.CFrame.p) * CFrame.new(0,0,-distance/2)
- elseif PrevPoint12 ~= nil then
- local distance = (Point12.CFrame.p - PrevPoint12).magnitude
- local Light = Instance.new("Part",Model)
- Light.Anchored = true
- Light.CanCollide = false
- Light.TopSurface = "SmoothNoOutlines"
- Light.BottomSurface = "SmoothNoOutlines"
- Light.BackSurface = "SmoothNoOutlines"
- Light.FrontSurface = "SmoothNoOutlines"
- Light.LeftSurface = "SmoothNoOutlines"
- Light.RightSurface = "SmoothNoOutlines"
- Light.Transparency = 0
- Light.Size = Vector3.new(0.4,0.4,distance)
- Light.Material = "Neon"
- Light.BrickColor = Color
- Light.CFrame = CFrame.new(Point12.CFrame.p , PrevPoint12) * CFrame.new(0,0,-distance/2)
- end
- PreviousP = Object.CFrame.p
- PreviousA1 = Arm1.CFrame.p
- PreviousA2 = Arm2.CFrame.p
- PreviousL1 = Leg1.CFrame.p
- PreviousL2 = Leg2.CFrame.p
- PrevPoint1 = Point1.CFrame.p
- PrevPoint2 = Point2.CFrame.p
- PrevPoint3 = Point3.CFrame.p
- PrevPoint4 = Point4.CFrame.p
- PrevPoint5 = Point5.CFrame.p
- PrevPoint6 = Point6.CFrame.p
- PrevPoint7 = Point7.CFrame.p
- PrevPoint8 = Point8.CFrame.p
- PrevPoint9 = Point9.CFrame.p
- PrevPoint10 = Point10.CFrame.p
- PrevPoint11 = Point11.CFrame.p
- PrevPoint12 = Point12.CFrame.p
- Model:Destroy()
- local Children = Model:GetChildren()
- wait(1)
- for i = 1,10 do
- local Remove = coroutine.wrap(function()
- for i = 1,#Children do
- if Children[i]:IsA("Part") then
- Children[i].Transparency = Children[i].Transparency + 0.1
- if Children[i].Transparency >= 1 and Children[i] ~= Light and Children[i] ~= Point1 and Children[i] ~= Point2 and Children[i] ~= Point3
- and Children[i] ~= Point4 and Children[i] ~= Point5 and Children[i] ~= Point6 and Children[i] ~= Point7 and Children[i] ~= Point8
- and Children[i] ~= Point9 and Children[i] ~= Point10 and Children[i] ~= Point11 and Children[i] ~= Point12 then
- game.Debris:AddItem(Children[i],0)
- end
- end
- if Children[i].ClassName ~= "Part" then
- game.Debris:AddItem(Children[i],0)
- end
- end
- end)
- Remove()
- wait(0.05)
- end
- game.Debris:AddItem(Light,0)
- game.Debris:AddItem(Point1,0)
- game.Debris:AddItem(Point2,0)
- game.Debris:AddItem(Point3,0)
- game.Debris:AddItem(Point4,0)
- game.Debris:AddItem(Point5,0)
- game.Debris:AddItem(Point6,0)
- game.Debris:AddItem(Point7,0)
- game.Debris:AddItem(Point8,0)
- game.Debris:AddItem(Point9,0)
- game.Debris:AddItem(Point10,0)
- game.Debris:AddItem(Point11,0)
- game.Debris:AddItem(Point12,0)
- while true do
- wait(0.4)
- Model:Destroy()
- end
- end
- end)
- elseif msg == "Card Demon" then
- chatfunc("SPELL CARD! CARD DEMON!")
- sick.Volume = 0
- local RbxAssetReached = " :RBCX2"
- warn('This script is still indevelopment so becareful for glitches or bugs'..RbxAssetReached)
- wait(2)
- warn('YOU WILL NOT SURVIVE THIS TIME'..RbxAssetReached)
- --Hey guys was making this script i can't make the attacks cause i'm lazy, but i will add damege bricks, made by animescapetower
- local player = game.Players.LocalPlayer
- local Arm1 = game.Players.LocalPlayer.Character["Left Arm"]
- local Arm2 = game.Players.LocalPlayer.Character["Right Arm"]
- local Leg1 = game.Players.LocalPlayer.Character["Left Leg"]
- local Leg2 = game.Players.LocalPlayer.Character["Right Leg"]
- local humanoid = player.Character.Humanoid
- local mouse = player:GetMouse()
- local anim1= Instance.new("Animation")
- anim1.AnimationId = "http://www.roblox.com/asset/?id=235542946"
- local anim2 = Instance.new("Animation")
- anim2.AnimationId = "http://www.roblox.com/asset/?id=32326240"
- local anim23 = Instance.new("Animation")
- anim23.AnimationId = "http://www.roblox.com/asset/?id=105371766"
- local bg = Instance.new("BillboardGui")
- bg.Name = "Bamma"
- bg.Parent = game.Players.LocalPlayer.Character.Head
- bg.Adornee = game.Players.LocalPlayer.Character.Head
- -- Same size as Head
- bg.Size = UDim2.new(1, 0, 1, 0)
- -- Above (defaults to inside)
- bg.StudsOffset = Vector3.new(0, 2, 0)
- local frame = Instance.new("Frame")
- frame.Parent = bg
- frame.Size = UDim2.new(1, 0, 1, 0)
- frame.BackgroundTransparency = 0.7
- frame.BackgroundColor3 = Color3.new(1, 1, 1)
- local text = Instance.new("TextLabel")
- text.Parent = frame
- text.Position = UDim2.new(0.25, 0, 0.25, 0)
- text.Size = UDim2.new(0.5, 0, 0.5, 0)
- text.BackgroundTransparency =1
- text.Text = "Dragon Slayer"
- mouse.KeyDown:connect(function(key)
- if key == "z" then
- text.Text = "Spin"
- wait(4)
- local playAnim = humanoid:LoadAnimation(anim1)
- playAnim:Play()
- wait(1)
- text.Text = "Dragon Slayer"
- wait(3)
- playAnim:Stop()
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "f" then
- text.Text = "Punch"
- local playAnim = humanoid:LoadAnimation(anim2)
- playAnim:Play()
- wait(5)
- text.Text = "Dragon Slayer"
- playAnim:Stop()
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "k" then
- text.Text = "DOOM DRAGON"
- local playAnim = humanoid:LoadAnimation(anim23)
- playAnim:Play()
- wait(5)
- text.Text = "Dragon Slayer"
- playAnim:Stop()
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "e" then--Activates the damege part
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- h.Health = h.Health -5 -- The most not so damegeing part is this
- wait(2.00)
- end
- end
- Arm2.Touched:connect(onTouched)
- end
- end)
- game.Players.LocalPlayer.Character.Head.CanCollide = false
- game.Players.LocalPlayer.Character.Torso.CanCollide = false
- local vy = Instance.new("Sound")
- vy.Name = "SongyName"
- vy.SoundId = "rbxassetid://0"
- vy.Volume = 10
- vy.PlaybackSpeed = 1
- vy.Parent = game.Players.LocalPlayer.Character.Torso
- vy.Looped = true
- vy:Play()
- game.Players.LocalPlayer.Character.Humanoid.MaxHealth = math.huge
- game.Players.LocalPlayer.Character.Humanoid.Health = math.huge
- while true do
- game:GetService("RunService").Stepped:wait()
- game.Players.LocalPlayer.Character.Head.CanCollide = false
- game.Players.LocalPlayer.Character.Torso.CanCollide = false
- Arm1.Transparency = 0.6
- Arm2.Transparency = 0.6
- Leg1.Transparency = 0.6
- Leg2.Transparency = 0.6
- game.Players.LocalPlayer.Character.Torso.Transparency = 0.6
- game.Players.LocalPlayer.Character.Head.Transparency = 0.6
- wait(0.1)
- Arm1.Transparency = 1
- Arm2.Transparency = 1
- Leg1.Transparency = 1
- Leg2.Transparency = 1
- game.Players.LocalPlayer.Character.Torso.Transparency = 1
- game.Players.LocalPlayer.Character.Head.Transparency = 1
- wait(0.1)
- Arm1.Transparency = 0
- Arm2.Transparency = 0
- Leg1.Transparency = 0
- Leg2.Transparency = 0
- game.Players.LocalPlayer.Character.Torso.Transparency = 0
- game.Players.LocalPlayer.Character.Head.Transparency = 0
- wait(0.1)
- game.Players.LocalPlayer.Character.Head.CanCollide = false
- game.Players.LocalPlayer.Character.Torso.CanCollide = false
- end
- elseif msg == "Card Madness" then
- StartPosition()
- chatfunc("SPELL CARD! CARD MADNESS!")
- wait(1)
- chatfunc("So you wanna die like the others")
- wait(1)
- chatfunc("THEN DIE")
- wait(1)
- chatfunc("ULTIMATE CARD MADNESS ATTACK")
- MailboxMadness()
- MagicSphere()
- MailmansWrath()
- FinalInbox()
- MailboxMadness()
- MagicSphere()
- MailmansWrath()
- sick.SoundId = "rbxassetid://264359638"
- sick.Volume = 0.6
- sick:Play()
- end
- end
- Player.Chatted:connect(onChatted)
- --//=================================\\
- --|| DANMAKU MADNESS
- --\\=================================//
- local Mail = Instance.new("Part")
- Mail.Size = Vector3.new(2, 0.05, 1)
- Mail.Color = Color3.new(1,1,1)
- Mail.CanCollide = false
- local maildecal = Instance.new("Decal",Mail)
- maildecal.Face = "Top"
- maildecal.Texture = "http://www.roblox.com/asset/?id=8052441"
- Mail.BottomSurface = "Smooth"
- Mail.Name = "Mail"
- function ShootMail(part,strength,debris)
- local mail = Mail:Clone()
- mail.CFrame = part.CFrame
- mail.Parent = Effects
- game:GetService("Debris"):AddItem(mail ,debris)
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = part.CFrame.lookVector*strength
- bv.Parent = mail
- bv.Name = "DASH"
- local hit = mail.Touched:connect(function(hit)
- if hit.Parent ~= Character and hit.Parent.ClassName ~= "Accessory" and hit.Name ~= "Mail" then
- dealdamage(hit,15,45,40)
- end
- end)
- return mail
- end
- function MagicSphere(BRICKCOLOR, MATERIAL, PART, CFRAME, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
- end
- function StartPosition()
- ATTACK = true
- Rooted = true
- for i=0, 1, 0.1 / Animation_Speed/1.2 do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, -0 * Player_Size, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size -0.25, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.25, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- end
- end
- function MailmansWrath()
- local twist = 0
- local twist2 = false
- local twist3 = 1
- local spinpart = Instance.new("Part",Weapon)
- spinpart.Anchored = true
- spinpart.CanCollide = false
- spinpart.Transparency = 1
- spinpart.CFrame = Opening.CFrame
- local spinpart2 = Instance.new("Part",Weapon)
- spinpart2.Anchored = true
- spinpart2.CanCollide = false
- spinpart2.Transparency = 1
- spinpart2.CFrame = Opening.CFrame
- for i = 1, 30 do
- chuck:Play()
- MagicSphere("Really black", "Neon", Opening.CFrame, CF(0,0,0), VT(0,0,0), 50, 50, 50, -0.1, -0.1, -0.1, 0.02)
- twist = twist + 1
- spinpart.CFrame = spinpart.CFrame * CFrame.fromEulerAnglesXYZ(0, 0.1, 0)
- spinpart2.CFrame = spinpart2.CFrame * CFrame.fromEulerAnglesXYZ(0, -0.1, 0)
- if twist == 10 then
- spinpart.CFrame = Opening.CFrame
- spinpart2.CFrame = Opening.CFrame
- twist = 0
- end
- ShootMail(spinpart,65,2)
- ShootMail(spinpart2,65,2)
- Swait(5)
- end
- spinpart.CFrame = Opening.CFrame
- spinpart2.CFrame = Opening.CFrame
- twist = 10
- for i = 1, 40 do
- chuck:Play()
- MagicSphere("Really black", "Neon", Opening.CFrame, CF(0,0,0), VT(0,0,0), 50, 50, 50, -0.1, -0.1, -0.1, 0.02)
- twist = twist + 1
- if twist2 == true then
- spinpart.CFrame = spinpart.CFrame * CFrame.fromEulerAnglesXYZ(0, 0.2, 0)
- spinpart2.CFrame = spinpart2.CFrame * CFrame.fromEulerAnglesXYZ(0, 0.1, 0)
- elseif twist2 == false then
- spinpart.CFrame = spinpart.CFrame * CFrame.fromEulerAnglesXYZ(0, -0.2, 0)
- spinpart2.CFrame = spinpart2.CFrame * CFrame.fromEulerAnglesXYZ(0, -0.1, 0)
- end
- if twist == 20 then
- if twist2 == false then
- twist2 = true
- elseif twist2 == true then
- twist2 = false
- end
- twist = 0
- end
- ShootMail(spinpart,65,2)
- ShootMail(spinpart2,65,2)
- Swait(5)
- end
- spinpart.CFrame = Opening.CFrame
- spinpart2.CFrame = Opening.CFrame
- twist = 0
- for i = 1, 30 do
- chuck:Play()
- MagicSphere("Really black", "Neon", Opening.CFrame, CF(0,0,0), VT(0,0,0), 50, 50, 50, -0.1, -0.1, -0.1, 0.02)
- twist = twist + 1
- spinpart.CFrame = spinpart.CFrame * CFrame.fromEulerAnglesXYZ(0, 0.15, 0)
- spinpart2.CFrame = spinpart2.CFrame * CFrame.fromEulerAnglesXYZ(0, -0.15, 0)
- if twist == 10 then
- spinpart.CFrame = Opening.CFrame
- spinpart2.CFrame = Opening.CFrame
- twist = 0
- end
- ShootMail(spinpart,75,2)
- ShootMail(spinpart2,75,2)
- Swait(5)
- end
- spinpart:remove()
- spinpart2:remove()
- ATTACK = false
- Rooted = false
- end
- function PapercutChaos()
- local twist = 0
- for i = 1, 5 do
- chuck:Play()
- MagicSphere("Really black", "Neon", Opening.CFrame, CF(0,0,0), VT(0,0,0), 50, 50, 50, -0.1, -0.1, -0.1, 0.02)
- local mail = ShootMail(Opening,25,20)
- for i = 1, 15 do
- chuck:Play()
- local spinpart = Instance.new("Part",Weapon)
- spinpart.Anchored = true
- spinpart.CanCollide = false
- spinpart.Transparency = 1
- spinpart.CFrame = mail.CFrame
- local spinpart2 = Instance.new("Part",Weapon)
- spinpart2.Anchored = true
- spinpart2.CanCollide = false
- spinpart2.Transparency = 1
- spinpart2.CFrame = mail.CFrame
- spinpart.CFrame = spinpart.CFrame * CFrame.fromEulerAnglesXYZ(0, 70, 0)
- spinpart2.CFrame = spinpart2.CFrame * CFrame.fromEulerAnglesXYZ(0, -70, 0)
- MagicSphere("Really black", "Neon", mail.CFrame, CF(0,0,0), VT(0,0,0), 50, 50, 50, -0.1, -0.1, -0.1, 0.02)
- ShootMail(spinpart,35,2)
- ShootMail(spinpart2,35,2)
- spinpart:remove()
- spinpart2:remove()
- Swait(5)
- end
- mail:remove()
- end
- for i = 1, 2 do
- chuck:Play()
- MagicSphere("Really black", "Neon", Opening.CFrame, CF(0,0,0), VT(0,0,0), 50, 50, 50, -0.1, -0.1, -0.1, 0.02)
- local mail = ShootMail(Opening,45,20)
- for i = 1, 20 do
- twist = twist + 1
- chuck:Play()
- local spinpart = Instance.new("Part",Weapon)
- spinpart.Anchored = true
- spinpart.CanCollide = false
- spinpart.Transparency = 1
- spinpart.CFrame = mail.CFrame
- local spinpart2 = Instance.new("Part",Weapon)
- spinpart2.Anchored = true
- spinpart2.CanCollide = false
- spinpart2.Transparency = 1
- spinpart2.CFrame = mail.CFrame
- spinpart.CFrame = mail.CFrame * CFrame.fromEulerAnglesXYZ(0, twist, 0)
- spinpart2.CFrame = mail.CFrame * CFrame.fromEulerAnglesXYZ(0, -twist, 0)
- MagicSphere("Really black", "Neon", mail.CFrame, CF(0,0,0), VT(0,0,0), 50, 50, 50, -0.1, -0.1, -0.1, 0.02)
- ShootMail(spinpart,35,2)
- ShootMail(spinpart2,35,2)
- spinpart:remove()
- spinpart2:remove()
- Swait(5)
- end
- twist = 0
- mail:remove()
- end
- ATTACK = false
- Rooted = false
- end
- function MailboxMadness()
- for i = 1, 15 do
- chuck:Play()
- local part = Instance.new("Part")
- part.CFrame = RootPart.CFrame * CF(math.random(-35,35),0,math.random(-70,-35))
- part.Orientation = RootPart.Orientation
- part.CanCollide = false
- part.Anchored = true
- MagicSphere("Really black", "Neon", part.CFrame, CF(0,0,0), VT(0,0,0), 50, 50, 50, -0.1, -0.1, -0.1, 0.02)
- local spinpart = Instance.new("Part",Weapon)
- spinpart.Anchored = true
- spinpart.CanCollide = false
- spinpart.Transparency = 1
- spinpart.CFrame = part.CFrame
- local spinpart2 = Instance.new("Part",Weapon)
- spinpart2.Anchored = true
- spinpart2.CanCollide = false
- spinpart2.Transparency = 1
- spinpart2.CFrame = part.CFrame
- MagicSphere("Really black", "Neon", part.CFrame, CF(0,0,0), VT(0,0,0), 50, 50, 50, -0.1, -0.1, -0.1, 0.02)
- part:remove()
- for i = 1, 15 do
- spinpart.CFrame = spinpart.CFrame * CFrame.fromEulerAnglesXYZ(0, 0.2, 0)
- spinpart2.CFrame = spinpart2.CFrame * CFrame.fromEulerAnglesXYZ(0, -0.2, 0)
- ShootMail(spinpart,50,2)
- ShootMail(spinpart2,50,2)
- end
- spinpart:remove()
- spinpart2:remove()
- Swait(35)
- end
- ATTACK = false
- Rooted = false
- end
- function FinalInbox()
- local twist = 0
- local twist2 = false
- for i = 1, 5 do
- local part = Instance.new("Part")
- part.CFrame = RootPart.CFrame * CF(math.random(-35,35),0,math.random(-70,-35))
- part.Orientation = RootPart.Orientation
- part.CanCollide = false
- part.Anchored = true
- MagicSphere("Really black", "Neon", part.CFrame, CF(0,0,0), VT(0,0,0), 50, 50, 50, -0.1, -0.1, -0.1, 0.02)
- local spinpart = Instance.new("Part",Weapon)
- spinpart.Anchored = true
- spinpart.CanCollide = false
- spinpart.Transparency = 1
- spinpart.CFrame = part.CFrame
- local spinpart2 = Instance.new("Part",Weapon)
- spinpart2.Anchored = true
- spinpart2.CanCollide = false
- spinpart2.Transparency = 1
- spinpart2.CFrame = part.CFrame
- MagicSphere("Really black", "Neon", part.CFrame, CF(0,0,0), VT(0,0,0), 50, 50, 50, -0.1, -0.1, -0.1, 0.02)
- part:remove()
- local spinpart3 = Instance.new("Part",Weapon)
- spinpart3.Anchored = true
- spinpart3.CanCollide = false
- spinpart3.Transparency = 1
- spinpart3.CFrame = RootPart.CFrame * CF(0,0,-50)
- local spinpart4 = Instance.new("Part",Weapon)
- spinpart4.Anchored = true
- spinpart4.CanCollide = false
- spinpart4.Transparency = 1
- spinpart4.CFrame = RootPart.CFrame * CF(0,0,-50)
- for i = 1, 30 do
- chuck:Play()
- spinpart3.CFrame = spinpart3.CFrame * CFrame.fromEulerAnglesXYZ(0, 0.2, 0)
- spinpart4.CFrame = spinpart4.CFrame * CFrame.fromEulerAnglesXYZ(0, 0.2, 0)
- spinpart.CFrame = spinpart.CFrame * CFrame.fromEulerAnglesXYZ(0, 0.2, 0)
- spinpart2.CFrame = spinpart2.CFrame * CFrame.fromEulerAnglesXYZ(0, 0.2, 0)
- ShootMail(spinpart,50,2)
- ShootMail(spinpart2,-50,2)
- ShootMail(spinpart3,100,1)
- ShootMail(spinpart4,-100,1)
- Swait(10)
- end
- spinpart:remove()
- spinpart2:remove()
- spinpart3:remove()
- spinpart4:remove()
- end
- chuck:Play()
- MagicSphere("Really black", "Neon", Opening.CFrame, CF(0,0,0), VT(0,0,0), 50, 50, 50, -0.1, -0.1, -0.1, 0.02)
- for i = 1, 2 do
- twist = 10
- local spinpart = Instance.new("Part",Weapon)
- spinpart.Anchored = true
- spinpart.CanCollide = false
- spinpart.Transparency = 1
- spinpart.CFrame = Opening.CFrame
- local spinpart2 = Instance.new("Part",Weapon)
- spinpart2.Anchored = true
- spinpart2.CanCollide = false
- spinpart2.Transparency = 1
- spinpart2.CFrame = Opening.CFrame
- local mail = ShootMail(Opening,25,20)
- for i = 1, 50 do
- chuck:Play()
- MagicSphere("Really black", "Neon", Opening.CFrame, CF(0,0,0), VT(0,0,0), 50, 50, 50, -0.1, -0.1, -0.1, 0.02)
- twist = twist + 1
- if twist2 == true then
- spinpart.CFrame = spinpart.CFrame * CFrame.fromEulerAnglesXYZ(0, 0.2, 0)
- spinpart2.CFrame = spinpart2.CFrame * CFrame.fromEulerAnglesXYZ(0, 0.1, 0)
- elseif twist2 == false then
- spinpart.CFrame = spinpart.CFrame * CFrame.fromEulerAnglesXYZ(0, -0.2, 0)
- spinpart2.CFrame = spinpart2.CFrame * CFrame.fromEulerAnglesXYZ(0, -0.1, 0)
- end
- if twist == 20 then
- if twist2 == false then
- twist2 = true
- elseif twist2 == true then
- twist2 = false
- end
- twist = 0
- end
- ShootMail(spinpart,125,1)
- ShootMail(spinpart2,125,1)
- local spinpart3 = Instance.new("Part",Weapon)
- spinpart3.Anchored = true
- spinpart3.CanCollide = false
- spinpart3.Transparency = 1
- spinpart3.CFrame = mail.CFrame
- local spinpart4 = Instance.new("Part",Weapon)
- spinpart4.Anchored = true
- spinpart4.CanCollide = false
- spinpart4.Transparency = 1
- spinpart4.CFrame = mail.CFrame
- spinpart3.CFrame = mail.CFrame * CFrame.fromEulerAnglesXYZ(0, twist, 0)
- spinpart4.CFrame = mail.CFrame * CFrame.fromEulerAnglesXYZ(0, -twist, 0)
- MagicSphere("Really black", "Neon", mail.CFrame, CF(0,0,0), VT(0,0,0), 50, 50, 50, -0.1, -0.1, -0.1, 0.02)
- ShootMail(spinpart3,85,1)
- ShootMail(spinpart4,85,1)
- spinpart3:remove()
- spinpart4:remove()
- Swait(10)
- end
- spinpart:remove()
- spinpart2:remove()
- twist = 0
- mail:remove()
- end
- for i = 1, 4 do
- twist = 10
- local spinpart = Instance.new("Part",Weapon)
- spinpart.Anchored = true
- spinpart.CanCollide = false
- spinpart.Transparency = 1
- spinpart.CFrame = Opening.CFrame
- local spinpart2 = Instance.new("Part",Weapon)
- spinpart2.Anchored = true
- spinpart2.CanCollide = false
- spinpart2.Transparency = 1
- spinpart2.CFrame = Opening.CFrame
- local spinpart5 = Instance.new("Part",Weapon)
- spinpart5.Anchored = true
- spinpart5.CanCollide = false
- spinpart5.Transparency = 1
- spinpart5.CFrame = RootPart.CFrame * CF(0,0,-50)
- local spinpart6 = Instance.new("Part",Weapon)
- spinpart6.Anchored = true
- spinpart6.CanCollide = false
- spinpart6.Transparency = 1
- spinpart6.CFrame = RootPart.CFrame * CF(0,0,-50)
- local mail = ShootMail(Opening,25,20)
- for i = 1, 50 do
- chuck:Play()
- MagicSphere("Really black", "Neon", Opening.CFrame, CF(0,0,0), VT(0,0,0), 50, 50, 50, -0.1, -0.1, -0.1, 0.02)
- twist = twist + 1
- spinpart5.CFrame = spinpart5.CFrame * CFrame.fromEulerAnglesXYZ(0, 0.4, 0)
- spinpart6.CFrame = spinpart6.CFrame * CFrame.fromEulerAnglesXYZ(0, 0.4, 0)
- if twist2 == true then
- spinpart.CFrame = spinpart.CFrame * CFrame.fromEulerAnglesXYZ(0, 0.2, 0)
- spinpart2.CFrame = spinpart2.CFrame * CFrame.fromEulerAnglesXYZ(0, 0.1, 0)
- elseif twist2 == false then
- spinpart.CFrame = spinpart.CFrame * CFrame.fromEulerAnglesXYZ(0, -0.2, 0)
- spinpart2.CFrame = spinpart2.CFrame * CFrame.fromEulerAnglesXYZ(0, -0.1, 0)
- end
- if twist == 20 then
- if twist2 == false then
- twist2 = true
- elseif twist2 == true then
- twist2 = false
- end
- twist = 0
- end
- ShootMail(spinpart,125,1)
- ShootMail(spinpart2,125,1)
- ShootMail(spinpart5,100,1)
- ShootMail(spinpart6,-100,1)
- local spinpart3 = Instance.new("Part",Weapon)
- spinpart3.Anchored = true
- spinpart3.CanCollide = false
- spinpart3.Transparency = 1
- spinpart3.CFrame = mail.CFrame
- local spinpart4 = Instance.new("Part",Weapon)
- spinpart4.Anchored = true
- spinpart4.CanCollide = false
- spinpart4.Transparency = 1
- spinpart4.CFrame = mail.CFrame
- spinpart3.CFrame = mail.CFrame * CFrame.fromEulerAnglesXYZ(0, twist, 0)
- spinpart4.CFrame = mail.CFrame * CFrame.fromEulerAnglesXYZ(0, -twist, 0)
- MagicSphere("Really black", "Neon", mail.CFrame, CF(0,0,0), VT(0,0,0), 50, 50, 50, -0.1, -0.1, -0.1, 0.02)
- ShootMail(spinpart3,85,1)
- ShootMail(spinpart4,85,1)
- spinpart3:remove()
- spinpart4:remove()
- Swait(10)
- end
- spinpart:remove()
- spinpart2:remove()
- spinpart5:remove()
- spinpart6:remove()
- twist = 0
- mail:remove()
- end
- ATTACK = false
- Rooted = false
- end
- --//=================================\\
- --|| ASSIGN THINGS TO KEYS
- --\\=================================//
- Humanoid.Changed:connect(function(Jump)
- if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
- Humanoid.Jump = false
- end
- end)
- --//=================================\\
- --\\=================================//
- function unanchor()
- if UNANCHOR == true then
- g = Character:GetChildren()
- for i = 1, #g do
- if g[i].ClassName == "Part" then
- g[i].Anchored = false
- end
- end
- end
- end
- --//=================================\\
- --|| WRAP THE WHOLE SCRIPT UP
- --\\=================================//
- Humanoid.Changed:connect(function(Jump)
- if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
- Humanoid.Jump = false
- end
- end)
- ANIMATE.Parent = nil
- local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
- IDLEANIMATION:Play()
- Swait()
- ANIMATOR.Parent = nil
- Disable_Jump = true
- while true do
- Swait()
- SINE = SINE + CHANGE
- local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
- local TORSOVERTICALVELOCITY = RootPart.Velocity.y
- local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
- local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
- local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
- if ANIM == "Walk" and TORSOVELOCITY > 1 then
- RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
- Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
- RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
- LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
- elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
- RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- end
- if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
- ANIM = "Jump"
- if ATTACK == false then
- RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
- end
- elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
- ANIM = "Fall"
- if ATTACK == false then
- RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
- end
- elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
- ANIM = "Idle"
- if ATTACK == false then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, -0 * Player_Size, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size -0.25, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.25, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- end
- elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
- ANIM = "Walk"
- WALK = WALK + 1 / Animation_Speed
- if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
- WALK = 0
- if WALKINGANIM == true then
- WALKINGANIM = false
- elseif WALKINGANIM == false then
- WALKINGANIM = true
- end
- end
- --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
- --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
- if ATTACK == false then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0) * ANGLES(RAD(0), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.15 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- end
- end
- if #Effects2>0 then
- for e=1,#Effects2 do
- if Effects2[e]~=nil then
- local Thing=Effects2[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]
- local Part2=Thing[8]
- if Thing[1].Transparency<=1 then
- if Thing[2]=="Block1" then
- Thing[1].CFrame=Part2.CFrame
- Mesh=Thing[1].Mesh
- Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Cylinder" then
- Mesh=Thing[1].Mesh
- Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Blood" then
- Mesh=Thing[7]
- Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
- Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Elec" then
- Mesh=Thing[1].Mesh
- Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Disappear" then
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- end
- else
- Part.Parent=nil
- table.remove(Effects2,e)
- end
- end
- end
- end
- end
- unanchor()
- Humanoid.MaxHealth = "inf"
- Humanoid.Health = "inf"
- if Rooted == false then
- --Disable_Jump = false
- Humanoid.WalkSpeed = Speed
- elseif Rooted == true then
- Disable_Jump = true
- Humanoid.WalkSpeed = 0
- end
- --print(TORSOVELOCITY)
- end
- --//=================================\\
- --\\=================================//
- --//====================================================\\--
- --|| END OF SCRIPT
- --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement