Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Sound3 = Instance.new("Sound")
- Part4 = Instance.new("Part")
- Fire5 = Instance.new("Fire")
- LocalScript6 = Instance.new("LocalScript")
- Script7 = Instance.new("Script")
- Script8 = Instance.new("Script")
- Script9 = Instance.new("Script")
- LocalScript10 = Instance.new("LocalScript")
- Animation11 = Instance.new("Animation")
- Animation12 = Instance.new("Animation")
- Animation13 = Instance.new("Animation")
- Animation14 = Instance.new("Animation")
- BoolValue15 = Instance.new("BoolValue")
- BoolValue16 = Instance.new("BoolValue")
- Weld17 = Instance.new("Weld")
- Tool0.Name = "HarbingerEnd"
- Tool0.Parent = mas
- Tool0.GripForward = Vector3.new(-1, 0, -0)
- Tool0.GripPos = Vector3.new(0, -2.29999995, 0)
- Tool0.GripRight = Vector3.new(0, 0, -1)
- Tool0.CanBeDropped = false
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.Material = Enum.Material.Concrete
- Part1.BrickColor = BrickColor.new("Dark stone grey")
- Part1.Rotation = Vector3.new(0, 90, 0)
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.Size = Vector3.new(0.550000012, 5.24000025, 0.200000003)
- Part1.CFrame = CFrame.new(-116.639999, 2.61999989, -27.2250004, -0, 0, 1, -0, 1, 0, -1, 0, 0)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part1.Position = Vector3.new(-116.639999, 2.61999989, -27.2250004)
- Part1.Orientation = Vector3.new(0, 90, 0)
- Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=93180631"
- SpecialMesh2.Scale = Vector3.new(0.649999976, 0.649999976, 0.5)
- SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=161316302"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- SpecialMesh2.Scale = Vector3.new(0.649999976, 0.649999976, 0.5)
- Sound3.Name = "SlashSound"
- Sound3.Parent = Part1
- Sound3.SoundId = "http://www.roblox.com/asset/?id=62337944 "
- Part4.Name = "FirePart"
- Part4.Parent = Part1
- Part4.Transparency = 1
- Part4.Rotation = Vector3.new(0, 90, 0)
- Part4.FormFactor = Enum.FormFactor.Custom
- Part4.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part4.CFrame = CFrame.new(-116.639999, 2.61999989, -27.2250004, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part4.Position = Vector3.new(-116.639999, 2.61999989, -27.2250004)
- Part4.Orientation = Vector3.new(0, 90, 0)
- Fire5.Parent = Part4
- Fire5.Size = 2
- Fire5.Color = Color3.new(0, 0, 0)
- Fire5.Heat = 18
- Fire5.SecondaryColor = Color3.new(1, 1, 1)
- Fire5.Color = Color3.new(0, 0, 0)
- LocalScript6.Name = "Local Gui"
- LocalScript6.Parent = Tool0
- table.insert(cors,sandbox(LocalScript6,function()
- Tool = script.Parent
- local stillEquipped = true
- function onEquippedLocal(mouse)
- stillEquipped = true
- if mouse == nil then
- print("Mouse not found")
- return
- end
- while stillEquipped do
- print("Setting Mouse to go")
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- while Tool.Enabled and stillEquipped do
- wait(0.01)
- end
- print("Setting Mouse to wait")
- mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
- while not Tool.Enabled and stillEquipped do
- wait(0.01)
- end
- end
- end
- function onUnequippedLocal()
- stillEquipped = false
- end
- Tool.Equipped:connect(onEquippedLocal)
- Tool.Unequipped:connect(onUnequippedLocal)
- end))
- Script7.Name = "SwordScript"
- Script7.Parent = Tool0
- table.insert(cors,sandbox(Script7,function()
- --[[
- // TelaMonster, The Chaos Edge
- // Written by Sorcus
- // If you find any bugs or have questions about this script PM Sorcus on ROBLOX
- // or @Canavus on Twitter
- ]]
- local function WaitForChild(parent, child)
- while parent:FindFirstChild(child) == nil do
- print(parent, child)
- wait()
- end
- return parent[child]
- end
- local Player
- local Character
- local Torso
- local Humanoid
- local Tool = script.Parent
- local Sword = Tool.Handle
- local LastAttack = 0
- local FireWeld = WaitForChild(Tool, 'FireWeld')
- local FirePart = WaitForChild(Sword, 'FirePart')
- local Fire = WaitForChild(FirePart, 'Fire')
- Fire.Size = 2.5
- local RunService = Game:GetService('RunService')
- local DebrisService = Game:GetService('Debris')
- local Lunging = false
- local TrailPart = Instance.new('Part')
- TrailPart.FormFactor = 3
- TrailPart.Size = Vector3.new(1, 1, 1)
- TrailPart.Anchored = true
- TrailPart.CanCollide = false
- TrailPart.Transparency = 1.0
- local Fire = Instance.new('Fire')
- Fire.Name = 'TrailFire'
- Fire.Heat = 25
- Fire.Size = 4
- Fire.Color = Color3.new (0/255,0/255,0/255)
- Fire.SecondaryColor = Color3.new (0/255,0/255,0/255)
- Fire.Parent = TrailPart
- local EffectPart = Instance.new('Part')
- EffectPart.FormFactor =3
- EffectPart.Size = Vector3.new(2, 2, 2)
- EffectPart.Name = 'WingCutter'
- -- TODO: Add the mesh and texture IDs
- local EffectMesh = Instance.new('SpecialMesh')
- EffectMesh.Scale = Vector3.new(1, 1, 1)
- EffectMesh.Parent = EffectPart
- local EffectFire = Instance.new('Fire')
- EffectFire.Heat = 25
- EffectFire.Size = 5.0
- EffectFire.Parent = EffectPart
- local SwordDamage = 25
- Tool.Enabled = true
- local TrailDamage = 5 -- move to separate script perhaps?
- local CutValue
- local BindValue
- local function blow(hitPart, damage, part)
- if hitPart and hitPart.Parent then
- local humanoid = hitPart.Parent:FindFirstChild('Humanoid')
- if hitPart.Parent:IsA('Hat') and hitPart.Parent.Parent then
- humanoid = hitPart.Parent.Parent:FindFirstChild('Humanoid')
- end
- if humanoid and Humanoid and humanoid ~= Humanoid then
- humanoid:TakeDamage(damage)
- if humanoid.Parent:FindFirstChild('Torso') and not humanoid.Parent.Torso:FindFirstChild('TrailFire') and part and part:FindFirstChild('TrailFire') then
- local fire = part.TrailFire:Clone()
- fire.Parent = humanoid.Parent:FindFirstChild('Torso')
- DebrisService:AddItem(fire, 2.5)
- Spawn(function()
- local duration = 2.25
- while duration > 0 do
- humanoid:TakeDamage(2.5)
- duration = duration - wait(0.25)
- wait(0.25)
- end
- end)
- end
- end
- end
- end
- local function Lunge()
- Lunging = true
- local target = Humanoid.TargetPoint
- local direction = (target - Torso.Position) * Vector3.new(1, 0, 1)
- local newBV = nil
- Tool.Grip = CFrame.new(0, -2.29999995, 0, 0, 1, -0, 0, -0, -1, -1, 0, -0)
- if direction.magnitude > .01 then
- direction = direction.unit
- newBV = Instance.new("BodyVelocity")
- newBV.P = 100000
- newBV.maxForce = Vector3.new(newBV.P, 0, newBV.P)
- newBV.velocity = direction * 50
- newBV.Parent = Torso
- Torso.CFrame = CFrame.new(Torso.Position, target * Vector3.new(1, 0, 1) + Vector3.new(0, Torso.Position.Y, 0))
- end
- Spawn(function()
- while Lunging do
- local tPart = TrailPart:Clone()
- tPart.CFrame = Torso.CFrame - Vector3.new(0, 3, 0)
- tPart.Parent = Game.Workspace
- tPart.Touched:connect(function(hitPart) blow(hitPart, TrailDamage) end)
- DebrisService:AddItem(tPart, 1.20)
- wait(0.08)
- end
- end)
- wait(0.75)
- if newBV ~= nil then
- newBV:Destroy()
- end
- Lunging = false
- Tool.Grip = CFrame.new(0, -2.29999995, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- wait(0.5)
- end
- local function Attack()
- -- do stuff here
- Tool.Grip = CFrame.new(0, -2.29999995, 0, 0, 1, -0, 0, -0, -1, -1, 0, -0)
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- Tool.Grip = CFrame.new(0, -2.29999995, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- end
- local function OnActivated()
- if not Humanoid or not Torso then
- return
- end
- if not Tool.Enabled then
- return
- end
- Tool.Enabled = false
- print(timestep, LastAttack)
- local timestep = RunService.Stepped:wait()
- if (timestep - LastAttack < 0.2) then
- Lunge()
- else
- Attack()
- end
- LastAttack = timestep
- Tool.Enabled = true
- end
- local function OnEquipped()
- Character = Tool.Parent
- Player = Game.Players:GetPlayerFromCharacter(Character)
- Torso = WaitForChild(Character, 'Torso')
- Humanoid = WaitForChild(Character, 'Humanoid')
- if FireWeld then
- FireWeld.Parent = Sword
- end
- end
- local function OnUnequipped()
- Tool.Grip = CFrame.new(0, -2.29999995, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- end
- Tool.Equipped:connect(OnEquipped)
- Tool.Activated:connect(OnActivated)
- Sword.Touched:connect(function(hitPart) blow(hitPart, SwordDamage) end)
- BindValue = WaitForChild(Tool, 'Bind')
- CutValue = WaitForChild(Tool, 'Cut')
- BindValue.Changed:connect(function()
- if BindValue and BindValue.Value == true then
- local bindAOE = Vector3.new(15, 15, 15)
- local players = Game.Players:GetPlayers()
- for _, player in pairs(players) do
- if player and player ~= Player then
- local character = Player.Character
- if character and character ~= Character and character:FindFirstChild('Torso') then
- local torso = character.Torso
- local distance = (torso.Position - Torso.Position).magnitude
- if distance < 50 and not character:FindFirstChild('TelaThornScript') then
- local tScript = script.TelaThornScript:Clone()
- tScript.Parent = character
- tScript.Disabled = false
- end
- end
- end
- end
- local parts = Game.Workspace:FindPartsInRegion3(Region3.new(Torso.Position - bindAOE, Torso.Position + bindAOE), Character, 100)
- for _, part in pairs(parts) do
- if part and part.Parent and part.Parent:FindFirstChild('Humanoid') then
- local character = part.Parent
- if not character:FindFirstChild('TelaThornScript') then
- local tScript = script.TelaThornScript:Clone()
- tScript.Parent = character
- tScript.Disabled = false
- end
- end
- end
- wait(20.0)
- BindValue.Value = false
- end
- end)
- CutValue.Changed:connect(function()
- if CutValue and CutValue.Value == true then
- local players = Game.Players:GetPlayers()
- for i = 1, #players do
- if players[i] and players[i] ~= Player and players[i].Character then
- local torso = players[i].Character:FindFirstChild('Torso')
- if torso then
- local humanoid = players[i].Character:FindFirstChild('Humanoid')
- local distance = (Torso.Position - torso.Position).magnitude
- local tChildren = torso:GetChildren()
- local tabooCount = 0
- -- All flight scripts will have these 3 forces
- -- Need to unify this, but for now this will nuke all of them
- local taboo_List = {['FlightSpin'] = true, ['FlightPower'] = true, ['FlightHold'] = true}
- for j = 1, #tChildren do
- if taboo_List[tChildren[j].Name] then
- tabooCount = tabooCount + 1
- end
- end
- if distance < 120 and tabooCount >= 3 then
- local ePart = EffectPart:Clone()
- ePart.CFrame = Torso.CFrame
- ePart.CanCollide = false
- local bForce = Instance.new('BodyForce')
- bForce.Name = 'Float'
- bForce.force = Vector3.new(0, ePart:GetMass() * 196.2, 0)
- bForce.Parent = ePart
- -- I know, this is super fast, but that's how I roll
- ePart.Velocity = (torso.Position - Torso.Position).unit * 200.0
- ePart.Parent = game.Workspace
- DebrisService:AddItem(ePart, 5.0)
- ePart.Touched:connect(function(hit)
- if hit and hit.Parent and torso and hit.Parent == torso then
- if humanoid then
- humanoid:TakeDamage(65)
- end
- end
- end)
- -- Now, to add the actual effect, lets make this cool
- if torso.Parent:FindFirstChild('UnwingScript') == nil then
- local tScript = script.UnwingScript:Clone()
- tScript.Parent = torso.Parent
- tScript.Disabled = false
- end
- end
- end
- end
- end
- wait(22.0)
- CutValue.Value = false
- end
- end)
- end))
- Script8.Name = "TelaThornScript"
- Script8.Parent = Script7
- Script8.Disabled = true
- table.insert(cors,sandbox(Script8,function()
- local Character = script.Parent
- local Torso = Character:FindFirstChild("Torso")
- local Humanoid = Character:FindFirstChild("Humanoid")
- local Thorn
- local ThornWeld
- local Duration = 3.5
- local Damage = 4.5
- local DebrisService = Game:GetService('Debris')
- if Torso and Humanoid then
- Humanoid.WalkSpeed = 0
- Thorn = Instance.new("Part")
- Thorn.FormFactor = 3
- Thorn.Shape = "Block"
- Thorn.Size = Vector3.new(2, 4, 2)
- Thorn.CanCollide = true
- Thorn.Position = Torso.Position
- Thorn.Parent = Character
- ThornMesh = Instance.new("SpecialMesh")
- ThornMesh.MeshId = "http://www.roblox.com/asset/?id=54653968"
- ThornMesh.TextureId = "http://www.roblox.com/asset/?id=54654008"
- ThornMesh.Scale = Vector3.new(1.0, 1.0, 0.8)
- ThornMesh.Parent = Thorn
- ThornMesh.VertexColor = Vector3.new(1, 0, 0)
- ThornWeld = Instance.new("Weld")
- ThornWeld.Parent = Torso
- ThornWeld.Part0 = Torso
- ThornWeld.Part1 = Thorn
- ThornWeld.C1 = CFrame.new(Vector3.new(0, 0, 0))
- Torso.Anchored = true
- local fire = Instance.new('Fire')
- fire.Parent = Torso
- DebrisService:AddItem(fire, 3.0)
- end
- while Duration > 0 do
- Duration = Duration - 0.5
- Humanoid:TakeDamage(Damage)
- wait(0.5)
- end
- if Thorn then Thorn:Remove() end
- if ThornWeld then ThornWeld:Remove() end
- if Torso then Torso.Anchored = false end
- if Humanoid then Humanoid.WalkSpeed = 16 end
- wait(2.0)
- script:Destroy()
- end))
- Script9.Name = "UnwingScript"
- Script9.Parent = Script7
- Script9.Disabled = true
- table.insert(cors,sandbox(Script9,function()
- -- Unwing this flyer!
- local function WaitForChild(parent, child)
- while parent:FindFirstChild(child) == nil do
- wait()
- end
- return parent[child]
- end
- local Character = script.Parent
- local Torso = WaitForChild(Character, 'Torso')
- local Humanoid = WaitForChild(Character, 'Humanoid')
- local RBX_Debris = game:GetService('Debris')
- local Wing_List = {['RightWing'] = true, ['LeftWing'] = true}
- local cChildren = Character:GetChildren()
- for k = 1, #cChildren do
- if cChildren[k]:IsA('BasePart') and Wing_List[cChildren[k].Name] then
- local wing = cChildren[i]
- wing:BreakJoints()
- RBX_Debris:AddItem(wing, 7.5)
- end
- if cChildren[k]:IsA('Tool') then
- cChildren[k]:Destroy()
- end
- end
- Torso.Anchored = true
- local Thorn_Part = Instance.new('Part')
- Thorn_Part.CanCollide = false
- Thorn_Part.Size = Vector3.new(2, 4, 2)
- Thorn_Part.CFrame = Torso.CFrame
- Thorn_Part.Anchored = true
- Thorn_Part.Parent = Character
- Thorn_Mesh = Instance.new("SpecialMesh")
- Thorn_Mesh.MeshId = "http://www.roblox.com/asset/?id=54653968"
- Thorn_Mesh.TextureId = "http://www.roblox.com/asset/?id=54654008"
- Thorn_Mesh.Scale = Vector3.new(1.0, 1.0, 0.6)
- Thorn_Mesh.Parent = Thorn_Part
- Thorn_Mesh.VertexColor = Vector3.new(1, 0, 0)
- local tChildren = Torso:GetChildren()
- for i = 1, #tChildren do
- if tChildren[i] and string.sub(tChildren[i].Name, 1, 6) == 'Flight' then
- tChildren[i]:Destroy()
- end
- end
- wait(3.75)
- Torso.Anchored = false
- Thorn_Part:Destroy()
- wait(1.0)
- script:Destroy()
- end))
- LocalScript10.Name = "AnimateScript"
- LocalScript10.Parent = Tool0
- table.insert(cors,sandbox(LocalScript10,function()
- local function WaitForChild(parent, child)
- while parent:FindFirstChild(child) == nil do
- wait()
- end
- return parent[child]
- end
- local Tool = script.Parent
- local Sword = Tool.Handle
- local Player = game.Players.LocalPlayer
- local Character
- local Torso
- local Humanoid
- local Mouse
- local BindValue
- local CutValue
- local BindAnimation
- local CutAnimation
- local TelaPwned = Instance.new('BoolValue')
- TelaPwned.Name = 'TelaPwned'
- local DebrisService = Game:GetService('Debris')
- local function ApplyPower(key)
- key = key:lower()
- if key == 'q' then
- BindValue = WaitForChild(Tool, 'Bind')
- BindAnimation = Humanoid:LoadAnimation(Tool.SlashAnim)
- BindAnimation:Play()
- if not Game.Workspace:FindFirstChild('TelaPwned') then
- local tPwned = TelaPwned:Clone()
- tPwned.Parent = Game.Workspace
- DebrisService:AddItem(tPwned, 4.0)
- Spawn(function()
- local cTime = Game.Lighting.TimeOfDay
- Game.Lighting.TimeOfDay = "20:00:00"
- wait(2.25)
- Game.Lighting.TimeOfDay = cTime
- end)
- end
- wait(1.5)
- BindValue.Value = true
- elseif key == 'e' then
- CutValue = WaitForChild(Tool, 'Cut')
- CutAnimation = Humanoid:LoadAnimation(Tool.DarkenAnim)
- CutAnimation:Play()
- if not Game.Workspace:FindFirstChild('TelaPwned') then
- local tPwned = TelaPwned:Clone()
- tPwned.Parent = Game.Workspace
- DebrisService:AddItem(tPwned, 4.0)
- Spawn(function()
- local cTime = Game.Lighting.TimeOfDay
- Game.Lighting.TimeOfDay = "20:00:00"
- wait(2.25)
- Game.Lighting.TimeOfDay = cTime
- end)
- end
- wait(1.5)
- CutValue.Value = true
- end
- end
- local function OnEquipped(mouse)
- if mouse then
- Mouse = mouse
- Mouse.KeyDown:connect(ApplyPower)
- end
- Character = Tool.Parent
- Torso = WaitForChild(Character, 'Torso')
- Humanoid = WaitForChild(Character, 'Humanoid')
- end
- local function OnUnequipped()
- --
- if BindAnimation then BindAnimation:Stop() end
- if CutAnimation then CutAnimation:Stop() end
- end
- Tool.Equipped:connect(OnEquipped)
- Tool.Unequipped:connect(OnUnequipped)
- end))
- Animation11.Name = "StabAnim"
- Animation11.Parent = Tool0
- Animation11.AnimationId = "http://www.roblox.com/Asset?ID=77319318"
- Animation12.Name = "ChargeAnim"
- Animation12.Parent = Tool0
- Animation12.AnimationId = "http://www.roblox.com/Asset?ID=77320917"
- Animation13.Name = "DarkenAnim"
- Animation13.Parent = Tool0
- Animation13.AnimationId = "http://www.roblox.com/Asset?ID=77329203"
- Animation14.Name = "SlashAnim"
- Animation14.Parent = Tool0
- Animation14.AnimationId = "http://www.roblox.com/Asset?ID=54584713"
- BoolValue15.Name = "Bind"
- BoolValue15.Parent = Tool0
- BoolValue16.Name = "Cut"
- BoolValue16.Parent = Tool0
- Weld17.Name = "FireWeld"
- Weld17.Parent = Tool0
- Weld17.Part0 = Part1
- Weld17.Part1 = Part4
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement