Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- [[ Name: Hotline by Helkern ]] --
- -- [[ Converted/Fixed/Aligned: By Melon ]] --
- -- [[ Reanimate: By Emper ]] --
- -- [[ https://www.roblox.com/catalog/4819740796/Robox ]] --
- -- [[ https://www.roblox.com/catalog/5552252553/Kinetic-Staff] ]] --
- -- [[ https://www.roblox.com/catalog/9867487176/Le-Rouge-Cross-body-Bag-3-0 ]] --
- -- [[ https://www.roblox.com/catalog/9867481700/Le-Rouge-Cross-body-Bag-1-0 ]] --
- -- [[ https://www.roblox.com/catalog/3409612660/International-Fedora-USA ]] --
- -- [[ https://www.roblox.com/catalog/3033910400/International-Fedora-Germany ]] --
- -- [[ https://www.roblox.com/catalog/3033908130/International-Fedora-France ]] --
- -- [[ https://www.roblox.com/catalog/3398308134/International-Fedora-Canada ]] --
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "Melon's (FE) Converts/Scripts";
- Text = "Thanks for using!";
- Icon = "rbxthumb://type=Asset&id=11561641603&w=150&h=150"})
- Duration = 3;
- if not game:IsLoaded() then
- game.Loaded:Wait()
- end
- local function FindInstance(Parent, ClassName, Name)
- for _, Instance in pairs(Parent:GetChildren()) do
- if Instance:IsA(ClassName) and Instance.Name == Name then
- return Instance
- end
- end
- end
- local function WaitForClass(Parent, ClassName)
- local Instance = Parent:FindFirstChildOfClass(ClassName)
- while not Instance and Parent do
- Parent.ChildAdded:Wait()
- Instance = Parent:FindFirstChildOfClass(ClassName)
- end
- return Instance
- end
- local function WaitForClassOfName(Parent, ...)
- local Instance = FindInstance(Parent, ...)
- while not Instance and Parent do
- Parent.ChildAdded:Wait()
- Instance = FindInstance(Parent, ...)
- end
- return Instance
- end
- local Fling = { }
- local Aligns = { }
- local Blacklist = { }
- local Accessories = { }
- local Attachments = { }
- local Instancenew = Instance.new
- local taskwait = task.wait
- local taskspawn = task.spawn
- local taskdefer = task.defer
- local mathabs = math.abs
- local mathcos = math.cos
- local mathrandom = math.random
- local stringmatch = string.match
- local osclock = os.clock
- local tableinsert = table.insert
- local tableclear = table.clear
- local tablefind = table.find
- local CFramenew = CFrame.new
- local CFrameAngles = CFrame.Angles
- local CFrameidentity = CFrame.identity
- local Vector3new = Vector3.new
- local Vector3zero = Vector3.zero
- local Sleep = CFrameidentity
- local Velocity = Vector3new(0, 16384, 0)
- local Angular = 0
- local Linear = 0
- local Workspace = game:FindFirstChildOfClass("Workspace")
- local CurrentCamera = Workspace.CurrentCamera
- local Players = game:FindFirstChildOfClass("Players")
- local LocalPlayer = Players.LocalPlayer
- local Mouse = LocalPlayer:GetMouse()
- local PostSimulation = game:FindFirstChildOfClass("RunService").PostSimulation
- local Character = LocalPlayer.Character
- local CharacterClone = Instancenew("Model")
- local StarterGui = game:FindFirstChildOfClass("StarterGui")
- local BindableEvent = Instancenew("BindableEvent")
- local UserInputService = game:FindFirstChildOfClass("UserInputService")
- local UserInputType = Enum.UserInputType
- local MouseButton1 = UserInputType.MouseButton1
- local Touch = UserInputType.Touch
- local InputBegan = UserInputService.InputBegan:Connect(function(Input, GameProcessed)
- local Type = Input.UserInputType
- if not GameProcessed and ( Type == MouseButton1 or Type == Touch ) then
- local Target = Mouse.Target
- if Target and not Target.Anchored and not Target:IsDescendantOf(CharacterClone) and not Target:IsDescendantOf(Character) and not tablefind(Fling, Target) then
- local Parent = Target.Parent
- if Parent:IsA("Model") and Parent ~= Character and Parent:FindFirstChildOfClass("Humanoid") then
- local HumanoidRootPart = FindInstance(Parent, "BasePart", "HumanoidRootPart") or FindInstance(Parent, "BasePart", "Torso") or FindInstance(Parent, "BasePart", "Head")
- if HumanoidRootPart and not tablefind(Fling, HumanoidRootPart) then
- tableinsert(Fling, HumanoidRootPart)
- return
- end
- end
- tableinsert(Fling, Target)
- end
- end
- end)
- local function Part(Name, Size)
- local Part = Instancenew("Part")
- Part.Name = Name
- Part.Size = Size
- Part.Transparency = 1
- Part.Parent = CharacterClone
- return Part
- end
- local function Motor6D(Name, Part0, Part1, C0, C1)
- local Motor6D = Instancenew("Motor6D")
- Motor6D.Name = Name
- Motor6D.Part0 = Part0
- Motor6D.Part1 = Part1
- Motor6D.C0 = C0
- Motor6D.C1 = C1
- Motor6D.Parent = Part0
- return Motor6D
- end
- local function Attachment(Name, CFrame, Parent)
- local Attachment = Instancenew("Attachment")
- Attachment.Name = Name
- Attachment.CFrame = CFrame
- Attachment.Parent = Parent
- tableinsert(Attachments, Attachment)
- return Attachment
- end
- local LimbSize = Vector3new(1, 2, 1)
- local TorsoSize = Vector3new(2, 2, 1)
- local Head = Part("Head", Vector3new(2, 1, 1))
- local Torso = Part("Torso", TorsoSize)
- local LeftArm = Part("Left Arm", LimbSize)
- local RightArm = Part("Right Arm", LimbSize)
- local LeftLeg = Part("Left Leg", LimbSize)
- local RightLeg = Part("Right Leg", LimbSize)
- local HumanoidRootPart = Part("HumanoidRootPart", TorsoSize)
- local FakeRA = Instance.new("Part")
- FakeRA.Size = Vector3.new(1,2,1)
- FakeRA.Transparency = 1
- FakeRA.BrickColor = BrickColor.new("Institutional White")
- FakeRA.Parent = RightArm
- local FRAW = Instance.new("Weld")
- FRAW.Part0 = RightArm
- FRAW.Part1 = FakeRA
- FRAW.C0 = CFrame.new(0, 0, 0)
- FRAW.Parent = RightArm
- local FakeRA2 = Instance.new("Part")
- FakeRA2.Size = Vector3.new(1,2,1)
- FakeRA2.Transparency = 1
- FakeRA2.BrickColor = BrickColor.new("Institutional White")
- FakeRA2.Parent = RightArm
- local FRAW2 = Instance.new("Weld")
- FRAW2.Part0 = RightArm
- FRAW2.Part1 = FakeRA2
- FRAW2.C0 = CFrame.new(0, 0, 0)
- FRAW2.Parent = RightArm
- local FakeRA3 = Instance.new("Part")
- FakeRA3.Size = Vector3.new(1,2,1)
- FakeRA3.Transparency = 1
- FakeRA3.BrickColor = BrickColor.new("Institutional White")
- FakeRA3.Parent = RightArm
- local FRAW3 = Instance.new("Weld")
- FRAW3.Part0 = RightArm
- FRAW3.Part1 = FakeRA3
- FRAW3.C0 = CFrame.new(0, 0, 0)
- FRAW3.Parent = RightArm
- -- 3 welds and parts :skul:
- local Part = nil
- if Character then
- Part = FindInstance(Character, "BasePart", "HumanoidRootPart") or FindInstance(Character, "BasePart", "Head") or FindInstance(Character, "BasePart", "Torso") or FindInstance(Character, "BasePart", "UpperTorso")
- end
- if Part then
- HumanoidRootPart.CFrame = Part.CFrame
- else
- local SpawnLocations = { }
- for _, SpawnLocation in pairs(Workspace:GetDescendants()) do
- if SpawnLocation:IsA("SpawnLocation") then
- tableinsert(SpawnLocations, SpawnLocation)
- end
- end
- local Amount = # SpawnLocations
- if Amount > 0 then
- local SpawnLocation = SpawnLocations[mathrandom(1, Amount)]
- HumanoidRootPart.CFrame = SpawnLocation.CFrame * CFramenew(0, SpawnLocation.Size.Y / 2 + 3, 0)
- else
- HumanoidRootPart.CFrame = CFrameidentity
- end
- end
- local face = Instancenew("Decal")
- face.Name = "face"
- face.Parent = Head
- local AccessoryTable = {
- -- Please give credits if used. --
- -- Free --
- { Mesh = "4819720316", Texture = "4819722776", Instance = Torso, CFrame = CFrameAngles(0, 0, 105) },
- { Mesh = "3030546036", Texture = "3033903209", Instance = RightArm, CFrame = CFrameAngles(-90, 0, -89.5) },
- { Mesh = "3030546036", Texture = "3360978739", Instance = LeftArm, CFrame = CFrameAngles(-90, 0, 89.5) },
- { Mesh = "3030546036", Texture = "3409604993", Instance = RightLeg, CFrame = CFrameAngles(-90, 0, -89.5) },
- { Mesh = "3030546036", Texture = "3033898741", Instance = LeftLeg, CFrame = CFrameAngles(-90, 0, 89.5) },
- { Mesh = "9867442567", Texture = "9867451480", Instance = FakeRA, CFrame = CFramenew(-0.25, -1.45, -0.45) * CFrameAngles(0,0,-0.75) },
- { Mesh = "9867442661", Texture = "9867451480", Instance = FakeRA2, CFrame = CFramenew(-0.25, -3.45, -0.45) * CFrameAngles(0.05,0,-0.75) },
- { Mesh = "5548423017", Texture = "5548423938", Instance = FakeRA3, CFrame = CFramenew(-0.30,-0.15,-0.15) * CFrameAngles(0, -1.55, 0.60) },
- }
- for _, Table in pairs(AccessoryTable) do
- if type(Table.Mesh) ~= "string" then
- Table.Mesh = ""
- end
- if type(Table.Texture) ~= "string" then
- Table.Texture = ""
- end
- end
- Motor6D("Right Shoulder", Torso, RightArm, CFramenew(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), CFramenew(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0))
- Motor6D("Left Shoulder", Torso, LeftArm, CFramenew(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), CFramenew(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0))
- Motor6D("Right Hip", Torso, RightLeg, CFramenew(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), CFramenew(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0))
- Motor6D("Left Hip", Torso, LeftLeg, CFramenew(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), CFramenew(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0))
- Motor6D("Neck", Torso, Head, CFramenew(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), CFramenew(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
- Motor6D("RootJoint", HumanoidRootPart, Torso, CFramenew(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), CFramenew(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
- Attachment("HairAttachment", CFramenew(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
- Attachment("HatAttachment", CFramenew(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
- Attachment("FaceFrontAttachment", CFramenew(0, 0, -0.600000024, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
- Attachment("FaceCenterAttachment", CFramenew(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
- Attachment("NeckAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
- Attachment("BodyFrontAttachment", CFramenew(0, 0, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
- Attachment("BodyBackAttachment", CFramenew(0, 0, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
- Attachment("LeftCollarAttachment", CFramenew(-1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
- Attachment("RightCollarAttachment", CFramenew(1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
- Attachment("WaistFrontAttachment", CFramenew(0, -1, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
- Attachment("WaistCenterAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
- Attachment("WaistBackAttachment", CFramenew(0, -1, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
- Attachment("LeftShoulderAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftArm)
- Attachment("LeftGripAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftArm)
- Attachment("RightShoulderAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightArm)
- Attachment("RightGripAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightArm)
- Attachment("LeftFootAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftLeg)
- Attachment("RightFootAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightLeg)
- Attachment("RootAttachment", CFramenew(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), HumanoidRootPart)
- local Humanoid = Instancenew("Humanoid", CharacterClone)
- Instancenew("Animator", Humanoid)
- Instancenew("LocalScript", CharacterClone).Name = "Animate"
- CharacterClone.PrimaryPart = Head
- CharacterClone.Parent = Workspace
- local function DescendantAdded(Instance)
- if Instance:IsA("Accessory") then
- taskspawn(function()
- local Handle = WaitForClassOfName(Instance, "BasePart", "Handle")
- local Attachment = WaitForClass(Handle, "Attachment")
- local Clone = Instance:Clone()
- local CloneHandle = FindInstance(Clone, "BasePart", "Handle")
- CloneHandle.Transparency = 1
- CloneHandle:BreakJoints()
- local AccessoryWeld = Instancenew("Weld")
- AccessoryWeld.Name = "AccessoryWeld"
- AccessoryWeld.Part0 = CloneHandle
- AccessoryWeld.C0 = Attachment.CFrame
- local Name = Attachment.Name
- for _, TableAttachment in pairs(Attachments) do
- if TableAttachment.Name == Name then
- AccessoryWeld.Part1 = TableAttachment.Parent
- AccessoryWeld.C1 = TableAttachment.CFrame
- end
- end
- AccessoryWeld.Parent = CloneHandle
- Clone.Parent = CharacterClone
- tableinsert(Accessories, Clone)
- local IsAMeshPart = CloneHandle:IsA("MeshPart")
- local Mesh = IsAMeshPart and CloneHandle or WaitForClass(CloneHandle, "SpecialMesh")
- local Id = IsAMeshPart and "TextureID" or "TextureId"
- for _, Table in pairs(AccessoryTable) do
- local Instance = Table.Instance
- if Instance then
- if stringmatch(Mesh.MeshId, Table.Mesh) and stringmatch(Mesh[Id], Table.Texture) and not tablefind(Blacklist, Instance) then
- tableinsert(Blacklist, Instance)
- tableinsert(Aligns, { Handle, Instance, Table.CFrame or CFrameidentity })
- return
- end
- end
- end
- tableinsert(Aligns, { Handle, CloneHandle, CFrameidentity })
- end)
- elseif Instance:IsA("JointInstance") then
- taskspawn(function()
- taskwait()
- Instance:Destroy()
- end)
- end
- end
- local function CharacterAdded(Character)
- if Character ~= CharacterClone then
- PostSimulation:Wait()
- local Backpack = LocalPlayer:FindFirstChildOfClass("Backpack")
- if Backpack then
- Backpack:ClearAllChildren()
- end
- tableclear(Aligns)
- tableclear(Blacklist)
- for _, Accessory in pairs(Accessories) do
- Accessory:Destroy()
- end
- local CurrentCameraCFrame = CurrentCamera.CFrame
- LocalPlayer.Character = CharacterClone
- CurrentCamera.CameraSubject = CharacterClone.Head
- taskspawn(function()
- CurrentCamera:GetPropertyChangedSignal("CFrame"):Wait()
- CurrentCamera.CFrame = CurrentCameraCFrame
- end)
- local CharacterHumanoidRootPart = WaitForClassOfName(Character, "BasePart", "HumanoidRootPart")
- for Index, Value in pairs(Fling) do
- local BasePart = nil
- if typeof(Value) == "Instance" then
- if Value:IsA("BasePart") then
- BasePart = Value
- elseif Value:IsA("Humanoid") then
- local Model = Value.Parent
- if Model ~= Character and Model:IsA("Model") then
- BasePart = FindInstance(Model, "BasePart", "HumanoidRootPart") or FindInstance(Model, "BasePart", "Head") or Model:FindFirstChildOfClass("BasePart")
- end
- elseif Value:IsA("Model") and Value ~= Character then
- BasePart = FindInstance(Value, "BasePart", "HumanoidRootPart") or FindInstance(Value, "BasePart", "Head") or Value:FindFirstChildOfClass("BasePart")
- end
- end
- if BasePart then
- local clock = osclock()
- while CharacterHumanoidRootPart and BasePart and osclock() - clock <= 1 and BasePart.AssemblyLinearVelocity.Magnitude <= 60 do
- CharacterHumanoidRootPart.AssemblyAngularVelocity = Velocity
- CharacterHumanoidRootPart.AssemblyLinearVelocity = Velocity
- CharacterHumanoidRootPart.CFrame = BasePart.CFrame + Vector3new(0, - 1, 0)
- PostSimulation:Wait()
- end
- end
- end
- tableclear(Fling)
- if CharacterHumanoidRootPart then
- CharacterHumanoidRootPart.AssemblyAngularVelocity = Vector3zero
- CharacterHumanoidRootPart.AssemblyLinearVelocity = Vector3zero
- CharacterHumanoidRootPart.CFrame = CFramenew(HumanoidRootPart.Position + Vector3new(mathrandom(- 32, 32), 0, mathrandom(- 32, 32)))
- PostSimulation:Wait()
- end
- Character:BreakJoints()
- for _, Instance in pairs(Character:GetDescendants()) do
- DescendantAdded(Instance)
- end
- Character.DescendantAdded:Connect(DescendantAdded)
- end
- end
- local function Align(Part0, Part1, CFrame)
- if Part0.ReceiveAge == 0 and not Part0.Anchored and # Part0:GetJoints() == 0 then
- Part0.AssemblyAngularVelocity = Vector3new(0, Angular, 0)
- local Part1CFrame = Part1.CFrame
- local LinearVelocity = Part1.AssemblyLinearVelocity * Linear
- local Magnitude = LinearVelocity.Magnitude < Linear
- if Magnitude then
- local LookVector = Part1CFrame.LookVector * Linear
- Part0.AssemblyLinearVelocity = Vector3new(LookVector.X, Linear, LookVector.Z)
- else
- Part0.AssemblyLinearVelocity = Vector3new(LinearVelocity.X, Linear, LinearVelocity.Z)
- end
- Part0.CFrame = Part1CFrame * ( Magnitude and Sleep or CFrameidentity ) * CFrame
- end
- end
- if Character then
- CharacterAdded(Character)
- end
- local Added = LocalPlayer.CharacterAdded:Connect(CharacterAdded)
- local Connection = game:FindFirstChildOfClass("RunService").PostSimulation:Connect(function()
- local osclock = osclock()
- local Axis = 0.004 * mathcos(osclock * 17.5)
- Sleep = CFramenew(0, Axis, 0)
- Angular = mathcos(osclock)
- Linear = 26
- for _, Table in pairs(Aligns) do
- Align(Table[1], Table[2], Table[3])
- end
- if sethiddenproperty then
- sethiddenproperty(LocalPlayer, "SimulationRadius", 10000000)
- end
- StarterGui:SetCore("ResetButtonCallback", BindableEvent) -- This is if it gets overriden, just like in MyWorld testing place.
- end)
- local function Event()
- CharacterClone:Destroy()
- end
- BindableEvent.Event:Connect(Event)
- CharacterClone:GetPropertyChangedSignal("Parent"):Connect(function()
- if not CharacterClone.Parent then
- Added:Disconnect()
- Connection:Disconnect()
- CharacterClone:Destroy()
- if BindableEvent then
- BindableEvent:Destroy()
- end
- StarterGui:SetCore("ResetButtonCallback", true)
- end
- end)
- BindableEvent:GetPropertyChangedSignal("Parent"):Connect(Event)
- local me = game.Players.LocalPlayer
- local char = me.Character
- selected = false
- attacking = false
- attack = false
- dela = 0.4
- normdmg = 9
- avgdmg = normdmg
- normal = 14
- speed = 14
- normchance = 9333333333333
- criticalchance = normchance
- splashdist = 14333333333333333333333333333333333333333333333333
- plat = 1
- healcols = {"Bright blue", "Light blue", "Medium blue", "White"}
- if char:findFirstChild("Sword",true) ~= nil then
- char:findFirstChild("Sword",true).Parent = nil
- end
- function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
- part.Parent = parent
- part.formFactor = form
- part.CanCollide = collide
- part.Transparency = tran
- part.Reflectance = ref
- part.Size = Vector3.new(x,y,z)
- part.BrickColor = BrickColor.new(color)
- part.TopSurface = 0
- part.BottomSurface = 0
- part.Anchored = anchor
- part.Locked = true
- part:BreakJoints()
- end
- function weld(w, p, p1, a, b, c, x, y, z)
- w.Parent = p
- w.Part0 = p
- w.Part1 = p1
- w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
- end
- function mesh(mesh, parent, x, y, z, type)
- mesh.Parent = parent
- mesh.Scale = Vector3.new(x, y, z)
- mesh.MeshType = type
- end
- function getcharparts(path)
- local objs = {}
- for _,v in pairs(path:children()) do
- if v:IsA("Model") and v.Name ~= name then
- for _,k in pairs(v:children()) do
- if k.Name == "Torso" then
- table.insert(objs,k)
- end
- end
- end
- end
- return objs
- end
- sword = Instance.new("Model",me.Character)
- sword.Name = "Sword"
- --Parts-------------------------Parts-------------------------Parts-------------------------Parts----------------------
- rarm = char:findFirstChild("Right Arm")
- larm = char:findFirstChild("Left Arm")
- torso = char:findFirstChild("Torso")
- hum = char:findFirstChild("Humanoid")
- main = Instance.new("Part")
- prop(main, sword, false, 0, 0, 0.38, 2.2, 0.38, "White", false, "Custom")
- mme = Instance.new("SpecialMesh")
- mesh(mme,main,1,1,1,"Head")
- part1 = Instance.new("Part")
- prop(part1, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
- p1m = Instance.new("BlockMesh",part1)
- w1 = Instance.new("Weld")
- weld(w1, main, part1, 0, 0, 0, 0, 0.9, 0)
- part2 = Instance.new("Part")
- prop(part2, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
- p2m = Instance.new("BlockMesh",part2)
- w2 = Instance.new("Weld")
- weld(w2, main, part2, 0, 0, 0.8, 0.5, 0.85, 0)
- part3 = Instance.new("Part")
- prop(part3, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
- p3m = Instance.new("BlockMesh",part3)
- w3 = Instance.new("Weld")
- weld(w3, main, part3, 0, 0, -0.8, -0.5, 0.85, 0)
- part4 = Instance.new("Part")
- prop(part4, sword, false, 0, 0, 1.3, 0.45, 0.4, "Medium blue", false, "Custom")
- p4m = Instance.new("BlockMesh",part4)
- w4 = Instance.new("Weld")
- weld(w4, main, part4, 0, 0, -1.25, 0.8, 1, 0)
- part5 = Instance.new("Part")
- prop(part5, sword, false, 0, 0, 1.3, 0.45, 0.4, "Medium blue", false, "Custom")
- p5m = Instance.new("BlockMesh",part5)
- w5 = Instance.new("Weld")
- weld(w5, main, part5, 0, 0, 1.25, -0.8, 1, 0)
- part6 = Instance.new("Part")
- prop(part6, sword, false, 0, 0, 0.45, 0.6, 0.45, "Light blue", false, "Custom")
- p6m = Instance.new("SpecialMesh")
- mesh(p6m,part6,1.3,1.2,1.3,"Sphere")
- w6 = Instance.new("Weld")
- weld(w6, main, part6, 0, 0, 0, 0, -0.9, 0)
- blade1 = Instance.new("Part")
- prop(blade1, sword, false, 0, 0.2, 0.85, 2, 0.1, "Light blue", false, "Custom")
- b1m = Instance.new("SpecialMesh")
- mesh(b1m,blade1,1,1,1,"Torso")
- bw1 = Instance.new("Weld")
- weld(bw1, main, blade1, 0, 0, 0, 0, 2, 0)
- uns = Instance.new("Sound",blade1)
- uns.Volume = 1
- uns.Pitch = 1
- uns.SoundId = "rbxasset://sounds\\unsheath.wav"
- slash = Instance.new("Sound",blade1)
- slash.Volume = 1
- slash.Pitch = 1
- slash.SoundId = "rbxasset://sounds\\swordslash.wav"
- shea = Instance.new("Sound",blade1)
- shea.Volume = 1
- shea.Pitch = -0.9
- shea.SoundId = "rbxasset://sounds\\unsheath.wav"
- spi = Instance.new("Sound",blade1)
- spi.Volume = 1
- spi.Pitch = 1
- spi.SoundId = "http://www.roblox.com/asset/?id=28144268"
- charge = Instance.new("Sound",blade1)
- charge.Volume = 1
- charge.Pitch = 0.5
- charge.SoundId = "http://www.roblox.com/asset/?id=2692844"
- boom = Instance.new("Sound",blade1)
- boom.Volume = 1
- boom.Pitch = 2.2
- boom.SoundId = "rbxasset://sounds\\Rocket shot.wav"
- blade2 = Instance.new("Part")
- prop(blade2, sword, false, 0, 0.2, 1.2, 1.2, 0.1, "Light blue", false, "Custom")
- b2m = Instance.new("BlockMesh",blade2)
- bw2 = Instance.new("Weld")
- weld(bw2, main, blade2, 0, 0, math.pi/4, 0, 3, 0)
- blade3 = Instance.new("Part")
- prop(blade3, sword, false, 0, 0.2, 0.1, 4.5, 0.6, "Light blue", false, "Custom")
- b3m = Instance.new("SpecialMesh")
- mesh(b3m,blade3,1,1,1,"Wedge")
- bw3 = Instance.new("Weld")
- weld(bw3, main, blade3, math.pi, math.pi/2, 0, 0.3, 5.2, 0)
- blade4 = Instance.new("Part")
- prop(blade4, sword, false, 0, 0.2, 0.1, 4.5, 0.6, "Light blue", false, "Custom")
- b4m = Instance.new("SpecialMesh")
- mesh(b4m,blade4,1,1,1,"Wedge")
- bw4 = Instance.new("Weld")
- weld(bw4, main, blade4, math.pi, -math.pi/2, 0, -0.3, 5.2, 0)
- blade5 = Instance.new("Part")
- prop(blade5, sword, false, 0, 0.2, 0.6, 0.6, 0.1, "Light blue", false, "Custom")
- b5m = Instance.new("BlockMesh",blade5)
- bw5 = Instance.new("Weld")
- weld(bw5, main, blade5, 0, 0, math.pi/4, 0, 6.6, 0)
- part7 = Instance.new("Part")
- prop(part7, sword, false, 0.2, 0.2, 0.7, 1.6, 0.22, "Medium blue", false, "Custom")
- p7m = Instance.new("SpecialMesh")
- mesh(p7m,part7,1.3,1.2,1.3,"Sphere")
- w7 = Instance.new("Weld")
- weld(w7, main, part7, 0, 0, 0, 0, 3, 0)
- tup1 = Instance.new("Part")
- prop(tup1, sword, false, 0, 0.4, 1.2, 0.7, 0.4, "Bright blue", false, "Custom")
- tw1 = Instance.new("Weld")
- weld(tw1, torso, tup1, -0.3+(math.pi/2), -0.3, 0.2+(math.pi/2), 1.1, 1.2, 0)
- holdpart = Instance.new("Part")
- prop(holdpart, char, false, 1, 0, 0.5, 0.5, 0.5, "White", false, "Custom")
- hu = Instance.new("Weld")
- weld(hu, rarm, holdpart, 0, 0, 0, 0, 1, 0)
- holdweld = Instance.new("Weld")
- weld(holdweld, main, tup1, 0, 0, 0, 0, 1.5, 0)
- weaponweld = Instance.new("Weld")
- weld(weaponweld, holdpart, nil, -(math.pi/2), 0, (math.pi/2), 0, 0, 0)
- --Arm connections----------Arm connections----------Arm connections----------Arm connections--------
- rb = Instance.new("Part")
- prop(rb, char, false, 1, 0, 1, 1, 1, "White", false, "Symmetric")
- rh = Instance.new("Weld")
- weld(rh, rb, torso, 0, 0, 0, 1.5, 0.5, 0)
- lb = Instance.new("Part")
- prop(lb, char, false, 1, 0, 1, 1, 1, "White", false, "Symmetric")
- lh = Instance.new("Weld")
- weld(lh, lb, torso, 0, 0, 0, -1.5, 0.5, 0)
- rw = Instance.new("Weld")
- weld(rw, rb, nil, 0, 0, 0, 0, 0.5, 0)
- lw = Instance.new("Weld")
- weld(lw, lb, nil, 0, 0, 0, 0, 0.5 ,0)
- neck = torso.Neck
- neor = neck.C1
- rightfight = CFrame.fromEulerAnglesXYZ(0.85,0.7,0) * CFrame.new(-0.23,-0.25,-0.1)
- leftfight = CFrame.fromEulerAnglesXYZ(0.3,0,0.4) * CFrame.new(0.2,-0.4,0.1)
- function selectmotion()
- weaponweld.C0 = CFrame.new(0,0,0)
- rw.C0 = CFrame.new(0,0,0)
- lw.C0 = CFrame.new(0,0,0)
- rw.Part1 = rarm
- lw.Part1 = larm
- for i=1, 15 do
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.04,0,-0.07) * CFrame.new(0,0,0)
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.07,0.16,0.04) * CFrame.new(-0.01,-0.05,-0.04)
- lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.04,0.08,0.01) * CFrame.new(0,0,0)
- wait()
- end
- weaponweld.Part1 = main
- holdweld.Part1 = nil
- wait(0.14)
- uns:play()
- for i=1, 4 do
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03) * CFrame.new(0,0,0)
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.12,-0.03,0.26)
- lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0.04,0.03) * CFrame.new(0,0,0)
- wait()
- end
- for i=1, 10 do
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0.15) * CFrame.new(0,0,0)
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.15,-0.22,0.1) * CFrame.new(0.05,0.1,0.05)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0.07,0)
- lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0.06,0.03) * CFrame.new(0,0,0)
- wait()
- end
- wait(0.1)
- for i=1, 6 do
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,-0.04,-0.09) * CFrame.new(0,0,0)
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0.18,-0.14) * CFrame.new(-0.08,0.05,0.05)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.2,0,0) * CFrame.new(0,0,0)
- lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0,0,-0.12) * CFrame.new(0,-0.04,0)
- wait()
- end
- rw.C0 = rightfight
- lw.C0 = leftfight
- neck.C1 = neor
- weaponweld.C0 = CFrame.new(0,0,0)
- selected = true
- end
- function deselmotion()
- for i=1, 12 do
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.04,0,-0.07) * CFrame.new(0,0,0)
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.07,0.16,0.04) * CFrame.new(0.02,-0.05,-0.04)
- lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0,-0.05) * CFrame.new(-0.02,0.03,0)
- wait()
- end
- shea:play()
- weaponweld.Part1 = nil
- holdweld.Part1 = tup1
- wait(0.1)
- for i=1, 8 do
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.09) * CFrame.new(0,0,0)
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.12,0,-0.12) * CFrame.new(-0.07,0.11,0)
- lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0.04) * CFrame.new(0,0,0)
- wait()
- end
- rw.Part1 = nil
- lw.Part1 = nil
- rw.C0 = CFrame.new(0,0,0)
- lw.C0 = CFrame.new(0,0,0)
- neck.C1 = neor
- weaponweld.C0 = CFrame.new(0,0,0)
- selected = false
- end
- ----Effects--------------------------Effects--------------------------Effects--------------------------Effects----------------------
- function fade(brick,mesh,scale,tran,speed)
- coroutine.resume(coroutine.create(function()
- for i=tran,1,speed do
- wait()
- brick.Transparency = i
- mesh.Scale = mesh.Scale - Vector3.new(scale,scale,scale)
- end
- brick:remove()
- end))
- end
- function block(part,avg,cols)
- for i=1, math.random(1,3) do
- local s = (avg*1.4)*100
- local s2 = (avg/5)*100
- local size = math.random(s2,s)/100
- local p = Instance.new("Part",me.Character)
- prop(p,me.Character,false,math.random(15,50)/100,0,size,size,size,cols[math.random(1,#cols)],true,"Custom")
- p.CFrame = CFrame.new(part.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
- coroutine.resume(coroutine.create(function()
- for i=p.Transparency, 1, 0.2 do
- wait(0.15)
- p.Transparency = i
- local cf = p.CFrame
- p.Size = Vector3.new(size,size,size)
- p.CFrame = cf * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
- size = size - 0.2
- end
- p:remove()
- end))
- end
- end
- function blocks(part,avg,cols)
- for i=1, math.random(1,3) do
- local s = (avg*1.4)*100
- local s2 = (avg/5)*100
- local size = math.random(s2,s)/100
- local p = Instance.new("Part",me.Character)
- local pos = p.CFrame
- local pos2 = pos * CFrame.new(0,12,-15)
- local pos3 = pos2 * CFrame.new(0,-12,-12)
- local bv = Instance.new("BodyPosition",p)
- bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- bv.position = pos2.p
- local bg = Instance.new("BodyGyro",p)
- bg.cframe = CFrame.new(pos.p,pos3.p)
- bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
- bg.P = 30000
- prop(p,me.Character,false,math.random(15,50)/100,0,size,size,size,cols[math.random(1,#cols)],true,"Custom")
- p.CFrame = CFrame.new(part.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
- coroutine.resume(coroutine.create(function()
- for i=p.Transparency, 1, 0.2 do
- wait(0.15)
- p.Transparency = i
- local cf = p.CFrame
- p.Size = Vector3.new(size,size,size)
- p.CFrame = cf * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
- size = size - 0.2
- end
- p:remove()
- end))
- end
- end
- function blading(part,color)
- local p = Instance.new("Part",me.Character)
- prop(p,me.Character,false,0.4,0,0.2,1.4,3.8,color,true,"Custom")
- p.CFrame = part.CFrame
- coroutine.resume(coroutine.create(function()
- for i=p.Transparency, 1, 0.04 do
- wait()
- p.Transparency = i
- end
- p:remove()
- end))
- end
- function spikes(part,color)
- local p = Instance.new("Part",me.Character)
- prop(p,me.Character,false,0.4,0,0.2,0.2,0.2,color,true,"Custom")
- p.CFrame = part.CFrame * CFrame.new(0,-3,0)
- local mww = Instance.new("SpecialMesh")
- mesh(mww,p,6,5,6,"FileMesh")
- mww.MeshId = "http://www.roblox.com/asset/?id=20329976"
- fade(p,mww,0.55,p.Transparency,0.08)
- end
- function spikes2(part,color)
- local p = Instance.new("Part",me.Character)
- prop(p,me.Character,false,0.4,0,0.2,0.2,0.2,color,true,"Custom")
- p.CFrame = part.CFrame * CFrame.new(0,0,6) * CFrame.Angles(math.pi/2,0,0)
- local mww = Instance.new("SpecialMesh")
- mesh(mww,p,8,7,8,"FileMesh")
- mww.MeshId = "http://www.roblox.com/asset/?id=20329976"
- fade(p,mww,0.55,p.Transparency,0.06)
- end
- function bal(part,color,dist)
- local p = Instance.new("Part",me.Character)
- prop(p,me.Character,false,0.4,0,1,1,1,color,true,"Custom")
- p.CFrame = part.CFrame
- local mww = Instance.new("SpecialMesh")
- mesh(mww,p,dist,dist,dist,"Sphere")
- fade(p,mww,3,p.Transparency,0.06)
- end
- --Kill function----------------------Kill function----------------------Kill function--------------------
- function blast(dmg,part,crit)
- local randomposx = math.random(-30,30)
- local randomposy = math.random(-50,-10)
- local bil = Instance.new("BillboardGui",part)
- bil.Adornee = bil.Parent
- bil.Size = UDim2.new(0,110,0,70)
- local img = Instance.new("ImageLabel",bil)
- img.Size = UDim2.new(1,0,1,0)
- img.Image = "http://www.roblox.com/asset/?id=42621332"
- img.Position = UDim2.new(0,randomposx,0,randomposy)
- img.BackgroundTransparency = 1
- local txt = Instance.new("TextLabel",img)
- txt.Size = UDim2.new(1,0,1,0)
- txt.BackgroundTransparency = 1
- txt.Text = dmg
- txt.TextColor3 = Color3.new(0,0,0)
- txt.FontSize = "Size18"
- if crit then
- img.Image = "http://www.roblox.com/asset/?id=42621315"
- txt.FontSize = "Size24"
- txt.TextColor3 = Color3.new(0.6,0,0)
- end
- coroutine.resume(coroutine.create(function()
- wait(0.2)
- for i=1, math.random(30,50) do
- img.Position = UDim2.new(0,randomposx,0,randomposy)
- randomposy = randomposy - 4
- wait()
- end
- bil:remove()
- end))
- end
- deb = true
- function kill(hit,mod)
- if deb and attack and hit.Parent.Name ~= name then
- local ch = hit.Parent
- if ch:findFirstChild("Humanoid") and ch:findFirstChild("Head") and ch:findFirstChild("Torso") then
- deb = false
- local dm = math.random(0,avgdmg*2)
- local cri = false
- local cripro = math.random(1,criticalchance)
- if cripro == 1 then
- cri = true
- dm = math.random(avgdmg*1.5,avgdmg*4.5)
- end
- ch["Humanoid"].Health = ch["Humanoid"].Health - dm
- blast(dm,ch.Head,cri)
- if cri then
- coroutine.resume(coroutine.create(function()
- local lol = math.random(1,plat)
- if lol == 1 then
- ch["Humanoid"].PlatformStand = true
- ch.Torso.RotVelocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
- wait(0.9)
- ch["Humanoid"].PlatformStand = false
- if mod == true then
- ch.Torso.RotVelocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
- ch.Torso.Velocity = Vector3.new(math.random(-30,30),math.random(15,70),math.random(-30,30))
- end
- end
- end))
- end
- wait(dela)
- deb = true
- end
- end
- end
- function ris(hit,mod)
- if deb and attack and hit.Parent.Name ~= name then
- local ch = hit.Parent
- if ch:findFirstChild("Humanoid") and ch:findFirstChild("Head") and ch:findFirstChild("Torso") then
- deb = false
- local dm = math.random(0,avgdmg*2)
- local cri = false
- local cripro = math.random(1,criticalchance)
- if cripro == 1 then
- cri = true
- dm = math.random(avgdmg*1.5,avgdmg*4.5)
- end
- ch["Humanoid"].Health = ch["Humanoid"].Health - dm
- blast(dm,ch.Head,cri)
- if cri then
- coroutine.resume(coroutine.create(function()
- local lol = math.random(1,plat)
- if lol == 1 then
- ch["Humanoid"].PlatformStand = true
- ch.Torso.RotVelocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
- wait(0.9)
- ch["Humanoid"].PlatformStand = false
- if mod == true then
- ch.Torso.RotVelocity = Vector3.new(math.random(-100,100),math.random(-100,100),math.random(-100,100))
- ch.Torso.Velocity = Vector3.new(math.random(-100,100),math.random(105,170),math.random(-100,100))
- end
- end
- end))
- end
- wait(dela)
- deb = true
- end
- end
- end
- blade3.Touched:connect(kill)
- blade4.Touched:connect(kill)
- blade2.Touched:connect(kill)
- blade1.Touched:connect(kill)
- blade5.Touched:connect(kill)
- blade5.Touched:connect(ris)
- ----Attacks----------------------Attacks----------------------Attacks----------------------Attacks------------------
- -- block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
- -- blading(blade2,"Bright red")
- function att()
- attacking = true
- for i=1,8 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
- wait()
- end
- slash:play()
- wait(0.13)
- attack = true
- for i=1,6 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
- block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
- wait()
- end
- attack = false
- wait(0.08)
- for i=1,3 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
- wait()
- end
- rw.C0 = rightfight
- lw.C0 = leftfight
- neck.C1 = neor
- weaponweld.C0 = CFrame.new(0,0,0)
- attacking = false
- end
- function stab()
- attacking = true
- for i=1,8 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
- wait()
- end
- slash:play()
- avgdmg = 15
- criticalchance = 95
- wait(0.13)
- attack = true
- for i=1,6 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,-0.44,-0.8) * CFrame.new(0,0,0)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
- block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
- bal(blade5,"Tr. Blue",25)
- wait()
- end
- attack = false
- wait(0.08)
- for i=1,3 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
- blocks(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
- bal(blade5,"Tr. Blue",25)
- wait()
- end
- rw.C0 = rightfight
- lw.C0 = leftfight
- neck.C1 = neor
- weaponweld.C0 = CFrame.new(0,0,0)
- attacking = false
- end
- function attas()
- attacking = true
- local pos = torso.CFrame
- local pos2 = pos * CFrame.new(0,12,-15)
- local pos3 = pos2 * CFrame.new(0,-12,-12)
- for i=1,6 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
- spikes(torso,"Light blue")
- spikes2(torso,"Bright blue")
- bal(torso,"Tr. Blue",25)
- wait()
- end
- slash:play()
- avgdmg = 15
- criticalchance = 65
- wait(0.13)
- attack = true
- local bv = Instance.new("BodyPosition",torso)
- bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- bv.position = pos2.p
- local bg = Instance.new("BodyGyro",torso)
- bg.cframe = CFrame.new(pos.p,pos3.p)
- bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
- bg.P = 30000
- for i=1,6 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.54,0.08,0) * CFrame.new(0,0,0)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0,0) * CFrame.new(0,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.24,0,0)
- block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
- wait()
- end
- attack = false
- wait(0.08)
- for i=1,3 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
- wait()
- end
- rw.C0 = rightfight
- lw.C0 = leftfight
- bv:remove()
- bg:remove()
- neck.C1 = neor
- weaponweld.C0 = CFrame.new(0,0,0)
- attacking = false
- end
- function spin()
- attacking = true
- hum.WalkSpeed = 0
- for i=1,7 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
- wait()
- end
- spi:play()
- wait(0.3)
- spi:play()
- dela = 0.1
- avgdmg = 6
- criticalchance = 12
- local bv = Instance.new("BodyVelocity",torso)
- bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- bv.velocity = torso.CFrame.lookVector * 22
- local bav = Instance.new("BodyAngularVelocity",torso)
- bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
- bav.angularvelocity = Vector3.new(0,36,0)
- bav.P = 15000
- attack = true
- for i=1, 30 do
- wait()
- spikes(torso,"Medium blue")
- end
- bv:remove()
- bav:remove()
- hum.WalkSpeed = normal
- attack = false
- avgdmg = normdmg
- for i=1,5 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
- wait()
- end
- dela = 0.4
- rw.C0 = rightfight
- lw.C0 = leftfight
- neck.C1 = neor
- weaponweld.C0 = CFrame.new(0,0,0)
- attacking = false
- criticalchance = normchance
- end
- function spins()
- attacking = true
- hum.WalkSpeed = 0
- for i=1,7 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
- bal(torso,"Tr. Blue",25)
- wait()
- end
- spi:play()
- wait(0.3)
- spi:play()
- dela = 0.1
- avgdmg = 6
- criticalchance = 12
- local bv = Instance.new("BodyVelocity",torso)
- bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- bv.velocity = torso.CFrame.lookVector * 22
- local bav = Instance.new("BodyAngularVelocity",torso)
- bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
- bav.angularvelocity = Vector3.new(0,36,0)
- bav.P = 15000
- attack = true
- for i=1, 30 do
- wait()
- spikes(torso,"Medium blue")
- end
- bv:remove()
- bav:remove()
- hum.WalkSpeed = normal
- attack = false
- avgdmg = normdmg
- for i=1,5 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
- wait()
- end
- dela = 0.4
- rw.C0 = rightfight
- lw.C0 = leftfight
- neck.C1 = neor
- weaponweld.C0 = CFrame.new(0,0,0)
- attacking = false
- criticalchance = normchance
- end
- function rise()
- attacking = true
- local pos = torso.CFrame
- local pos2 = pos * CFrame.new(0,5,-15)
- local pos3 = pos2 * CFrame.new(0,-3,-12)
- hum.WalkSpeed = 0
- for i=1,7 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
- bal(torso,"Tr. Blue",25)
- wait()
- end
- spi:play()
- wait(0.3)
- spi:play()
- dela = 0.1
- avgdmg = 6
- criticalchance = 12
- local bv = Instance.new("BodyPosition",torso)
- bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- bv.position = pos2.p
- local bg = Instance.new("BodyGyro",torso)
- bg.cframe = CFrame.new(pos.p,pos3.p)
- bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
- bg.P = 30000
- attack = true
- for i=1, 30 do
- wait()
- spikes2(torso,"Medium blue")
- end
- bv:remove()
- bg:remove()
- hum.WalkSpeed = normal
- attack = false
- avgdmg = normdmg
- for i=1,5 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
- wait()
- end
- dela = 0.4
- rw.C0 = rightfight
- lw.C0 = leftfight
- neck.C1 = neor
- weaponweld.C0 = CFrame.new(0,0,0)
- attacking = false
- criticalchance = normchance
- end
- function sprint()
- attacking = true
- hum.WalkSpeed = 0
- local pos = torso.CFrame
- local pos2 = pos * CFrame.new(0,12,-15)
- local pos3 = pos2 * CFrame.new(0,-12,-12)
- for i=1,6 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
- lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,0) * CFrame.new(0,0,0)
- wait()
- end
- avgdmg = 14
- local bv = Instance.new("BodyPosition",torso)
- bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- bv.position = pos2.p
- local bg = Instance.new("BodyGyro",torso)
- bg.cframe = CFrame.new(pos.p,pos3.p)
- bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
- bg.P = 30000
- for i=1, 7 do
- wait()
- spikes2(torso,"Medium blue")
- end
- wait(0.1)
- coroutine.resume(coroutine.create(function()
- for i=1, 17 do
- wait()
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.15,0,-0.04)
- lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.16,0,0.05)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.02,0,0) * CFrame.new(0,0,0)
- end
- end))
- coroutine.resume(coroutine.create(function()
- for i=0.4, 5.3,0.07 do
- wait(0.04)
- block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
- end
- end))
- charge:play()
- coroutine.resume(coroutine.create(function()
- wait(2.5)
- for i=1, 11 do
- wait()
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
- lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0,0)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0,-(math.pi/11),0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.03,0,0) * CFrame.new(0,0,0)
- end
- end))
- criticalchance = 1
- plat = 1
- dela = 0
- wait(3.8)
- boom:play()
- attack = true
- coroutine.resume(coroutine.create(function()
- for i=1, 5 do
- wait()
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
- lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
- end
- end))
- bv.position = pos3.p
- for i=1, 7 do
- wait()
- spikes2(torso,"Medium blue")
- end
- coroutine.resume(coroutine.create(function()
- for i=1, 12 do
- wait()
- bal(blade5,"Medium blue",splashdist*2)
- end
- end))
- local parts = getcharparts(workspace)
- for _,v in pairs(parts) do
- if (v.Position - blade5.Position).magnitude < 14 then
- kill(v,true)
- end
- end
- wait(0.3)
- attack = false
- bv:remove()
- bg:remove()
- hum.WalkSpeed = normal
- avgdmg = normdmg
- rw.C0 = rightfight
- lw.C0 = leftfight
- neck.C1 = neor
- weaponweld.C0 = CFrame.new(0,0,0)
- attacking = false
- criticalchance = normchance
- plat = 2
- end
- function sprint2()
- attacking = true
- hum.WalkSpeed = 0
- local pos = torso.CFrame
- local pos2 = pos * CFrame.new(0,15,-15)
- local pos3 = pos2 * CFrame.new(0,-13,-12)
- for i=1,6 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
- lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,0) * CFrame.new(0,0,0)
- wait()
- end
- avgdmg = 14
- local bv = Instance.new("BodyPosition",torso)
- bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- bv.position = pos2.p
- local bg = Instance.new("BodyGyro",torso)
- bg.cframe = CFrame.new(pos.p,pos3.p)
- bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
- bg.P = 30000
- for i=1, 4 do
- wait()
- spikes2(torso,"Medium blue")
- spikes2(torso,"Light blue")
- spikes2(torso,"Bright blue")
- end
- wait(0.1)
- coroutine.resume(coroutine.create(function()
- for i=1, 34 do
- wait()
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.15,0,-0.04)
- lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.16,0,0.05)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.02,0,0) * CFrame.new(0,0,0)
- end
- end))
- coroutine.resume(coroutine.create(function()
- for i=0.4, 5.3,0.07 do
- wait(0.04)
- block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
- end
- end))
- charge:play()
- coroutine.resume(coroutine.create(function()
- wait(2.5)
- for i=1, 11 do
- wait()
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
- lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0,0)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0,-(math.pi/11),0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.03,0,0) * CFrame.new(0,0,0)
- end
- end))
- criticalchance = 1
- plat = 1
- dela = 0
- wait(3.8)
- boom:play()
- attack = true
- coroutine.resume(coroutine.create(function()
- for i=1, 5 do
- wait()
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
- lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
- end
- end))
- bv.position = pos3.p
- for i=1, 7 do
- wait()
- spikes2(torso,"Medium blue")
- end
- coroutine.resume(coroutine.create(function()
- for i=1, 12 do
- wait()
- bal(blade5,"Medium blue",splashdist*2)
- end
- end))
- local parts = getcharparts(workspace)
- for _,v in pairs(parts) do
- if (v.Position - blade5.Position).magnitude < 14 then
- kill(v,true)
- end
- end
- wait(0.3)
- attack = false
- bv:remove()
- bg:remove()
- hum.WalkSpeed = normal
- avgdmg = normdmg
- rw.C0 = rightfight
- lw.C0 = leftfight
- neck.C1 = neor
- weaponweld.C0 = CFrame.new(0,0,0)
- attacking = false
- criticalchance = normchance
- plat = 2
- end
- function combo()
- att()
- attas()
- sprint()
- spin()
- end
- function run()
- spin()
- spin()
- spin()
- end
- function rush()
- attacking = true
- for i=1,8 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.03,0.1,0) * CFrame.new(0,0,0)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-(math.pi/2)/12,0.03,0.07) * CFrame.new(0,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
- wait(0.1)
- end
- slash:play()
- wait(0.13)
- attack = true
- local bv = Instance.new("BodyVelocity",torso)
- bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- bv.velocity = torso.CFrame.lookVector * 220
- local bav = Instance.new("BodyAngularVelocity",torso)
- bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
- bav.angularvelocity = Vector3.new(0,36,0)
- bav.P = 15000
- for i=1,6 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
- block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
- wait()
- end
- attack = false
- wait(0.08)
- for i=1,3 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
- block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
- wait()
- end
- rw.C0 = rightfight
- lw.C0 = leftfight
- bv:remove()
- bav:remove()
- neck.C1 = neor
- weaponweld.C0 = CFrame.new(0,0,0)
- attacking = false
- end
- function masta()
- attacking = true
- for i=1,8 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.03,0.1,0) * CFrame.new(0,0,0)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-(math.pi/2)/12,0.03,0.07) * CFrame.new(0,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
- bal(torso,"Tr. Blue",25)
- spikes2(torso,"Medium blue")
- block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
- wait(0.1)
- end
- slash:play()
- avgdmg = 37
- criticalchance = 125
- wait(0.13)
- attack = true
- local bv = Instance.new("BodyVelocity",torso)
- bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- bv.velocity = torso.CFrame.lookVector * 220
- local bav = Instance.new("BodyAngularVelocity",torso)
- bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
- bav.angularvelocity = Vector3.new(0,36,0)
- bav.P = 15000
- for i=1,6 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
- bal(torso,"Tr. Blue",25)
- spikes2(torso,"Medium blue")
- block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
- wait()
- end
- attack = false
- wait(0.08)
- for i=1,3 do
- rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
- weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
- bal(torso,"Tr. Blue",25)
- spikes2(torso,"Medium blue")
- block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
- wait()
- end
- rw.C0 = rightfight
- lw.C0 = leftfight
- bv:remove()
- bav:remove()
- neck.C1 = neor
- weaponweld.C0 = CFrame.new(0,0,0)
- attacking = false
- end
- if script.Parent.className ~= "HopperBin" then
- local h = Instance.new("HopperBin",me.Backpack)
- h.Name = "SoulSword"
- script.Parent = h
- end
- local bin = script.Parent
- function sel(mouse)
- neck.C1 = neor
- if (selected == false) then
- selectmotion()
- end
- mouse.Button1Down:connect(function()
- if (attacking == false) then
- att()
- end
- end)
- mouse.KeyDown:connect(function(kuu)
- local kai = kuu:lower()
- if attacking == false then
- if (kai == "q") then
- spin()
- elseif (kai == "e") then
- att()
- elseif (kai == "r") then
- sprint()
- elseif (kai == "l") then
- stab()
- elseif (kai == "t") then
- attas()
- elseif (kai == "z") then
- masta()
- elseif (kai == "y") then
- spins()
- elseif (kai == "g") then
- combo()
- elseif (kai == "p") then
- rise()
- elseif (kai == "j") then
- sprint2()
- elseif (kai == "h") then
- run()
- elseif (kai == "f") then
- rush()
- end
- end
- end)
- while selected do
- wait(0.8)
- local k = math.random(1,5)
- if k == 1 then
- if hum.Health < 50 then
- for i=1, math.random(4,24) do
- wait(0.1)
- local col = healcols[math.random(1,#healcols)]
- local sa = math.random(30,90)/100
- local p = Instance.new("Part")
- prop(p,me.Character,false,0.1,0.05,1,1,1,col,false,"Symmetric")
- p.CFrame = CFrame.new(torso.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100) * CFrame.new(0,0,math.random(4,12))
- local mes = Instance.new("SpecialMesh")
- mesh(mes,p,sa,sa,sa,"Sphere")
- local bg = Instance.new("BodyPosition",p)
- bg.maxForce = Vector3.new(1000000,1000000,1000000)
- bg.P = 100000
- bg.position = torso.Position
- coroutine.resume(coroutine.create(function()
- repeat
- bg.position = torso.Position
- wait()
- until (p.Position - torso.Position).magnitude < 1.8
- hum.Health = hum.Health + 1.2
- p:remove()
- end))
- end
- end
- end
- end
- end
- function desel()
- neck.C1 = neor
- if selected then
- deselmotion()
- end
- end
- bin.Selected:connect(sel)
- bin.Deselected:connect(desel)
- print 'Hello world!'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement