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")
- BoolValue1 = Instance.new("BoolValue")
- BoolValue2 = Instance.new("BoolValue")
- BoolValue3 = Instance.new("BoolValue")
- Animation4 = Instance.new("Animation")
- Animation5 = Instance.new("Animation")
- Animation6 = Instance.new("Animation")
- Animation7 = Instance.new("Animation")
- Animation8 = Instance.new("Animation")
- Animation9 = Instance.new("Animation")
- Animation10 = Instance.new("Animation")
- LocalScript11 = Instance.new("LocalScript")
- LocalScript12 = Instance.new("LocalScript")
- Script13 = Instance.new("Script")
- LocalScript14 = Instance.new("LocalScript")
- Animation15 = Instance.new("Animation")
- Animation16 = Instance.new("Animation")
- ParticleEmitter17 = Instance.new("ParticleEmitter")
- Script18 = Instance.new("Script")
- Animation19 = Instance.new("Animation")
- Animation20 = Instance.new("Animation")
- CFrameValue21 = Instance.new("CFrameValue")
- ScreenGui22 = Instance.new("ScreenGui")
- Frame23 = Instance.new("Frame")
- TextButton24 = Instance.new("TextButton")
- Script25 = Instance.new("Script")
- Frame26 = Instance.new("Frame")
- ScrollingFrame27 = Instance.new("ScrollingFrame")
- ImageButton28 = Instance.new("ImageButton")
- ImageLabel29 = Instance.new("ImageLabel")
- Color3Value30 = Instance.new("Color3Value")
- Color3Value31 = Instance.new("Color3Value")
- Script32 = Instance.new("Script")
- BrickColorValue33 = Instance.new("BrickColorValue")
- ImageButton34 = Instance.new("ImageButton")
- ImageLabel35 = Instance.new("ImageLabel")
- Color3Value36 = Instance.new("Color3Value")
- Color3Value37 = Instance.new("Color3Value")
- Script38 = Instance.new("Script")
- BrickColorValue39 = Instance.new("BrickColorValue")
- ImageButton40 = Instance.new("ImageButton")
- ImageLabel41 = Instance.new("ImageLabel")
- Color3Value42 = Instance.new("Color3Value")
- Color3Value43 = Instance.new("Color3Value")
- Script44 = Instance.new("Script")
- BrickColorValue45 = Instance.new("BrickColorValue")
- ImageButton46 = Instance.new("ImageButton")
- ImageLabel47 = Instance.new("ImageLabel")
- Color3Value48 = Instance.new("Color3Value")
- Color3Value49 = Instance.new("Color3Value")
- Script50 = Instance.new("Script")
- BrickColorValue51 = Instance.new("BrickColorValue")
- ImageButton52 = Instance.new("ImageButton")
- ImageLabel53 = Instance.new("ImageLabel")
- Color3Value54 = Instance.new("Color3Value")
- Color3Value55 = Instance.new("Color3Value")
- Script56 = Instance.new("Script")
- BrickColorValue57 = Instance.new("BrickColorValue")
- ImageButton58 = Instance.new("ImageButton")
- ImageLabel59 = Instance.new("ImageLabel")
- Color3Value60 = Instance.new("Color3Value")
- Color3Value61 = Instance.new("Color3Value")
- Script62 = Instance.new("Script")
- BrickColorValue63 = Instance.new("BrickColorValue")
- ImageButton64 = Instance.new("ImageButton")
- ImageLabel65 = Instance.new("ImageLabel")
- Color3Value66 = Instance.new("Color3Value")
- Color3Value67 = Instance.new("Color3Value")
- Script68 = Instance.new("Script")
- BrickColorValue69 = Instance.new("BrickColorValue")
- Script70 = Instance.new("Script")
- Part71 = Instance.new("Part")
- ManualWeld72 = Instance.new("ManualWeld")
- CylinderMesh73 = Instance.new("CylinderMesh")
- StringValue74 = Instance.new("StringValue")
- CylinderMesh75 = Instance.new("CylinderMesh")
- CylinderMesh76 = Instance.new("CylinderMesh")
- Script77 = Instance.new("Script")
- BindableEvent78 = Instance.new("BindableEvent")
- Part79 = Instance.new("Part")
- Sound80 = Instance.new("Sound")
- Sound81 = Instance.new("Sound")
- Sound82 = Instance.new("Sound")
- Sound83 = Instance.new("Sound")
- Sound84 = Instance.new("Sound")
- Sound85 = Instance.new("Sound")
- Sound86 = Instance.new("Sound")
- Sound87 = Instance.new("Sound")
- Sound88 = Instance.new("Sound")
- Sound89 = Instance.new("Sound")
- Sound90 = Instance.new("Sound")
- Folder91 = Instance.new("Folder")
- ParticleEmitter92 = Instance.new("ParticleEmitter")
- Sound93 = Instance.new("Sound")
- Fire94 = Instance.new("Fire")
- SpecialMesh95 = Instance.new("SpecialMesh")
- Sound96 = Instance.new("Sound")
- Sound97 = Instance.new("Sound")
- Sound98 = Instance.new("Sound")
- Sound99 = Instance.new("Sound")
- Sound100 = Instance.new("Sound")
- Animation101 = Instance.new("Animation")
- Script102 = Instance.new("Script")
- LocalScript103 = Instance.new("LocalScript")
- Folder104 = Instance.new("Folder")
- NumberValue105 = Instance.new("NumberValue")
- Script106 = Instance.new("Script")
- Model107 = Instance.new("Model")
- Part108 = Instance.new("Part")
- SpecialMesh109 = Instance.new("SpecialMesh")
- Sound110 = Instance.new("Sound")
- Part111 = Instance.new("Part")
- SpecialMesh112 = Instance.new("SpecialMesh")
- Sound113 = Instance.new("Sound")
- Part114 = Instance.new("Part")
- SpecialMesh115 = Instance.new("SpecialMesh")
- Sound116 = Instance.new("Sound")
- Part117 = Instance.new("Part")
- SpecialMesh118 = Instance.new("SpecialMesh")
- Sound119 = Instance.new("Sound")
- Part120 = Instance.new("Part")
- SpecialMesh121 = Instance.new("SpecialMesh")
- Sound122 = Instance.new("Sound")
- Part123 = Instance.new("Part")
- SpecialMesh124 = Instance.new("SpecialMesh")
- Sound125 = Instance.new("Sound")
- Part126 = Instance.new("Part")
- SpecialMesh127 = Instance.new("SpecialMesh")
- Sound128 = Instance.new("Sound")
- Part129 = Instance.new("Part")
- SpecialMesh130 = Instance.new("SpecialMesh")
- Sound131 = Instance.new("Sound")
- Part132 = Instance.new("Part")
- SpecialMesh133 = Instance.new("SpecialMesh")
- Sound134 = Instance.new("Sound")
- Part135 = Instance.new("Part")
- SpecialMesh136 = Instance.new("SpecialMesh")
- Sound137 = Instance.new("Sound")
- Part138 = Instance.new("Part")
- SpecialMesh139 = Instance.new("SpecialMesh")
- Sound140 = Instance.new("Sound")
- Part141 = Instance.new("Part")
- SpecialMesh142 = Instance.new("SpecialMesh")
- Sound143 = Instance.new("Sound")
- Part144 = Instance.new("Part")
- SpecialMesh145 = Instance.new("SpecialMesh")
- Sound146 = Instance.new("Sound")
- BoolValue147 = Instance.new("BoolValue")
- LocalScript148 = Instance.new("LocalScript")
- Script149 = Instance.new("Script")
- Animation150 = Instance.new("Animation")
- LocalScript151 = Instance.new("LocalScript")
- RemoteEvent152 = Instance.new("RemoteEvent")
- RemoteEvent153 = Instance.new("RemoteEvent")
- RemoteEvent154 = Instance.new("RemoteEvent")
- Animation155 = Instance.new("Animation")
- Animation156 = Instance.new("Animation")
- Script157 = Instance.new("Script")
- Script158 = Instance.new("Script")
- Tool0.Name = "Ultimate Hammer scythe"
- Tool0.Parent = mas
- Tool0.GripForward = Vector3.new(1, -0, -0)
- Tool0.GripPos = Vector3.new(0, 0.0776660442, 0.10033416)
- Tool0.GripRight = Vector3.new(0, 0, 1)
- Tool0.ToolTip = "Press e"
- Tool0.CanBeDropped = false
- BoolValue1.Name = "PlayOverhead"
- BoolValue1.Parent = Tool0
- BoolValue2.Name = "PlaySlash"
- BoolValue2.Parent = Tool0
- BoolValue3.Name = "PlayThrust"
- BoolValue3.Parent = Tool0
- Animation4.Name = "IdleAnim3"
- Animation4.Parent = Tool0
- Animation4.AnimationId = "rbxassetid://846744780"
- Animation5.Name = "OverheadAnim2"
- Animation5.Parent = Tool0
- Animation5.AnimationId = "rbxassetid://846744780"
- Animation6.Name = "SlashAnim2"
- Animation6.Parent = Tool0
- Animation6.AnimationId = "rbxassetid://846754447"
- Animation7.Name = "ThrustAnim2"
- Animation7.Parent = Tool0
- Animation7.AnimationId = "rbxassetid://846744780"
- Animation8.Name = "UnequipAnim2"
- Animation8.Parent = Tool0
- Animation8.AnimationId = "rbxassetid://846744780"
- Animation9.Name = "EquipAnim5"
- Animation9.Parent = Tool0
- Animation9.AnimationId = "rbxassetid://846744780"
- Animation10.Name = "Swing1"
- Animation10.Parent = Tool0
- Animation10.AnimationId = "rbxassetid://218504594"
- LocalScript11.Name = "AnimationScript"
- LocalScript11.Parent = Tool0
- table.insert(cors,sandbox(LocalScript11,function()
- -- Waits for the child of the specified parent
- local function WaitForChild(parent, childName)
- while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
- return parent[childName]
- end
- local Tool = script.Parent
- local Animations = {}
- local MyHumanoid
- local MyCharacter
- local function PlayAnimation(animationName)
- if Animations[animationName] then
- Animations[animationName]:Play()
- end
- end
- local function StopAnimation(animationName)
- if Animations[animationName] then
- Animations[animationName]:Stop()
- end
- end
- function OnEquipped(mouse)
- MyCharacter = Tool.Parent
- MyHumanoid = WaitForChild(MyCharacter, 'Humanoid')
- if MyHumanoid then
- Animations['EquipAnim'] = MyHumanoid:LoadAnimation(WaitForChild(Tool, 'EquipAnim5'))
- Animations['IdleAnim'] = MyHumanoid:LoadAnimation(WaitForChild(Tool, 'IdleAnim3'))
- Animations['OverheadAnim'] = MyHumanoid:LoadAnimation(WaitForChild(Tool, 'OverheadAnim2'))
- Animations['SlashAnim'] = MyHumanoid:LoadAnimation(WaitForChild(Tool, 'SlashAnim2'))
- Animations['ThrustAnim'] = MyHumanoid:LoadAnimation(WaitForChild(Tool, 'ThrustAnim2'))
- Animations['UnequipAnim'] = MyHumanoid:LoadAnimation(WaitForChild(Tool, 'UnequipAnim2'))
- end
- Animations['EquipAnim']:Play(.1,.8,1)
- PlayAnimation('IdleAnim')
- end
- function OnUnequipped()
- Tool.Handle.deactivate:Play()
- for animName, _ in pairs(Animations) do
- StopAnimation(animName)
- end
- end
- Tool.Equipped:connect(OnEquipped)
- Tool.Unequipped:connect(OnUnequipped)
- WaitForChild(Tool, 'PlaySlash').Changed:connect(
- function (value)
- --if value then
- PlayAnimation('SlashAnim')
- --else
- -- StopAnimation('SlashAnim')
- --end
- end)
- WaitForChild(Tool, 'PlayThrust').Changed:connect(
- function (value)
- --if value then
- PlayAnimation('ThrustAnim')
- --else
- -- StopAnimation('ThrustAnim')
- --end
- end)
- WaitForChild(Tool, 'PlayOverhead').Changed:connect(
- function (value)
- --if value then
- Animations['OverheadAnim']:Play()
- --else
- -- StopAnimation('OverheadAnim')
- --end
- end)
- end))
- LocalScript12.Name = "Local Gui"
- LocalScript12.Parent = Tool0
- table.insert(cors,sandbox(LocalScript12,function()
- local Tool = script.Parent;
- enabled = true
- function onButton1Down(mouse)
- if not enabled then
- return
- end
- enabled = false
- mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
- while not Tool.Enabled do
- wait(0.05)
- end
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- enabled = true
- end
- function onEquippedLocal(mouse)
- for _, part in pairs(script.Parent.Parent:GetChildren()) do
- if part.Name == "Saber" then
- part:remove()
- end
- end
- wait(1)
- spawn(function()
- emitters={}
- local rnswdch=Tool:GetChildren()
- for i, v in pairs(rnswdch) do
- if v.Name=='BladeGlow1' then
- v.Transparency=0
- local bldch2=v:GetChildren()
- for i, v in pairs(bldch2) do
- if v.ClassName=='ParticleEmitter' or v.ClassName == 'Trail' then
- table.insert(emitters,v)
- end
- end
- end
- end
- for i, v in pairs(emitters) do
- v.Enabled=true
- end
- end)
- wait(0.2)
- spawn(function()
- emitters2={}
- local rnswdch=Tool:GetChildren()
- for i, v in pairs(rnswdch) do
- if v.Name=='BladeGlow2' or v.Name=='BladeGlow3' then
- v.Transparency=0
- local bldch2=v:GetChildren()
- for i, v in pairs(bldch2) do
- if v.ClassName=='ParticleEmitter' or v.ClassName == 'Trail' then
- table.insert(emitters2,v)
- end
- end
- end
- end
- for i, v in pairs(emitters2) do
- v.Enabled=true
- end
- end)
- if mouse == nil then
- print("Mouse not found")
- return
- end
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- end
- Tool.Unequipped:connect(function()
- spawn(function()
- local rnswdch=Tool:GetChildren()
- for i, v in pairs(rnswdch) do
- if v.Name=='BladeGlow2' or v.Name=='BladeGlow3' then
- v.Transparency=1
- end
- end
- for i, v in pairs(emitters) do
- v.Enabled=false
- end
- end)
- spawn(function()
- local rnswdch=Tool:GetChildren()
- for i, v in pairs(rnswdch) do
- if v.Name=='BladeGlow1' then
- v.Transparency=1
- end
- end
- for i, v in pairs(emitters2) do
- v.Enabled=false
- end
- end)
- wait(0.002)
- if script.Parent.Parent ~= game.Workspace then
- ready = true
- m = Instance.new("Model")
- m.Name = "Saber"
- m.Parent = script.Parent.Parent.Parent.Character
- for _, part in pairs(script.Parent:GetChildren()) do
- if part.ClassName == "Part" or part.ClassName == 'UnionOperation' then
- if part.Name~='BladeGlow1' and part.Name~='BladeGlow2' and part.Name~='BladeGlow3' and part.Name~='Cord'then
- p = part:clone()
- p.Anchored = false
- p.CanCollide = false
- p.Parent = m
- print(p)
- end
- end
- end
- s = script.AutoWeld:clone()
- s.Parent = m
- s.Disabled = false
- for _, parts in pairs(m:GetChildren()) do
- if parts.ClassName == "Part" or parts.ClassName == 'UnionOperation' then
- p.Anchored = false
- print(p)
- end
- end
- w = Instance.new("Weld")
- w.Parent = m.Handle
- w.Part0 = script.Parent.Parent.Parent.Character["Left Leg"]
- w.Part1 = m.Handle
- w.C0 = CFrame.new(-.6, .8, .1)*CFrame.Angles(math.pi*1.6, 0, 0)
- end
- end)
- Tool.Equipped:connect(onEquippedLocal)
- end))
- Script13.Name = "AutoWeld"
- Script13.Parent = LocalScript12
- Script13.Disabled = true
- table.insert(cors,sandbox(Script13,function()
- --This script automatically welds your tool (if it's a tool)
- --Else place it inside a model full of bricks to weld them together!
- --Script from free models, Modified to be universal by Redyz!
- --Sure you can edit both the script and the comment but the latter would be mean, no?
- PartFound = nil
- function Weld(x,y)
- local W = Instance.new("Weld")
- W.Part0 = x
- W.Part1 = y
- local CJ = CFrame.new(x.Position)
- local C0 = x.CFrame:inverse()*CJ
- local C1 = y.CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = x
- end
- function Get(A) --Get all parts
- if A.className == "Part" then
- if script.Parent:FindFirstChild("Handle") ~= nil then
- Weld(script.Parent.Handle, A) --You're a tool
- else
- Weld(PartFound, A) --Not a tool
- end
- A.Anchored = false
- else
- local C = A:GetChildren()
- for i=1, #C do
- Get(C[i])
- end
- end
- end
- function Finale()
- if(script.Parent:FindFirstChild("Handle")) ~= nil then -- A tool
- Get(script.Parent)
- else -- Something else~!
- List = script.Parent:GetChildren()
- for i = 1, #List do
- if List[i].ClassName == "Part" then --Find First Part
- PartFound = List[i]
- break
- end
- end
- Get(PartFound.Parent)
- end
- end
- if script.Parent.ClassName == "Tool" then
- Finale() --In case the tool is sitting in the workspace
- script.Parent.Equipped:connect(Finale) --When you equip it
- script.Parent.Unequipped:connect(Finale) --And when you unequip it
- else
- Finale() --But I'm not a tool!
- end
- end))
- LocalScript14.Name = "Force Powers"
- LocalScript14.Parent = Tool0
- table.insert(cors,sandbox(LocalScript14,function()
- script.Parent.Equipped:connect(function(m)
- plr=game.Players:GetPlayerFromCharacter(script.Parent.Parent)
- char=script.Parent.Parent
- MyHumanoid=char.Humanoid
- LastSpace=0
- LastTeleport=0
- t=char.Torso
- childList={}
- local Animations = {}
- local function WaitForChild(parent, childName)
- while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
- return parent[childName]
- end
- Animations['EquipAnim'] = MyHumanoid:LoadAnimation(WaitForChild(script, 'EquipAnim5'))
- Animations['Roar'] = MyHumanoid:LoadAnimation(WaitForChild(script, 'Roar'))
- Animations['Jump'] = MyHumanoid:LoadAnimation(WaitForChild(script, 'Jump'))
- Animations['Force'] = MyHumanoid:LoadAnimation(WaitForChild(script, 'Force'))
- function f (p)
- p.RocketPropulsion:Fire()
- end
- m.KeyDown:connect(function(key)
- if key == 'g' then
- t=m.Target
- if t.Parent.ClassName=='Tool' and (plr.Character['Right Arm'].Position - t.Position).magnitude<=50 then
- Animations['Force']:Play(.1,.8,2)
- rp=Instance.new('RocketPropulsion')
- rp.Target=plr.Character['Right Arm']
- print(plr.Character.Name)
- rp.Parent=m.Target
- f(rp.Parent)
- t.Parent.Equipped:connect(function()
- rp:remove()
- end)
- else return
- end
- t=plr.Character.Torso
- --print (nkey)
- elseif key == 'u' then
- if tick()-LastSpace < 1 and tick()-LastTeleport >3 then
- fury()
- LastTeleport = tick()
- Animations['Jump']:Play(.1,1,3)
- t.Velocity = t.Velocity + Vector3.new(0,120,0)
- wait(3)
- elseif tick()-LastTeleport >3 then
- LastSpace = tick()
- wait(12)
- Animations['Jump']:Stop()
- end
- elseif key=='f' and d==nil then
- d=true
- fury()
- Animations['Roar']:Play()
- freeze()
- script.Parent.Handle.Fire:Play()
- wait(15)
- script.Parent.Handle.PowerUp:Play()
- wait(12)
- d=nil
- elseif key == 'q' then
- if d2==nil then
- d2=true
- Animations['Force']:Play(.1,.8,2)
- Taunt()
- wait(5)
- d2=nil
- end
- elseif key == 'e' then
- if debounce2==nil then
- debounce2=true
- Animations['EquipAnim']:Play(.1,.8,2)
- rTaunt()
- wait(5)
- debounce2=nil
- end
- end
- end)
- function Taunt()
- --gather all of the humanoids in a 30stud radius
- local torsos = {}
- for _, p in pairs(game.Players:GetChildren()) do
- if p ~= plr then
- if p.Character and p.Character:FindFirstChild('Torso') then
- torsos[#torsos+1] = p.Character.Torso
- end
- end
- end
- --now pull them in towards us
- local mpos = char.Torso.Position
- for _, torso in pairs(torsos) do
- if (mpos-torso.Position).magnitude < 40 then
- local dir = (mpos-torso.Position).unit
- ------------ stolen from dagger of time to make a character "fly" in some direction
- local force = Instance.new("BodyVelocity")
- force.velocity = Vector3.new(0,1,0)
- force.Parent = torso
- torso.Velocity = dir*250
- game.Debris:AddItem(force, 0.5)
- ------------
- end
- end
- end
- function rTaunt()
- --gather all of the humanoids in a 30stud radius
- local torsos = {}
- for _, p in pairs(game.Players:GetChildren()) do
- if p ~= game.Players:GetPlayerFromCharacter(char) then
- if p.Character and p.Character:FindFirstChild('Torso') then
- torsos[#torsos+1] = p.Character.Torso
- end
- end
- end
- --now pull them in towards us
- local mpos = char.Torso.Position
- for _, torso in pairs(torsos) do
- if (mpos-torso.Position).magnitude < 40 then
- local dir = (mpos-torso.Position).unit
- ------------ stolen from dagger of time to make a character "fly" in some direction
- local force = Instance.new("BodyVelocity")
- force.velocity = Vector3.new(0,1,0)
- force.Parent = torso
- torso.Velocity = -dir*250
- game.Debris:AddItem(force, 0.5)
- ------------
- end
- end
- end
- function freeze()
- checkObject(workspace)
- for i, v in pairs(childList) do
- if (v.Position-char.Torso.Position).magnitude<=50 then
- v.Anchored=true
- wait(7)
- v.Anchored=false
- else return
- end
- end
- end
- function checkObject(obj) -- This is basically a function that finds all unanchored parts and adds them to childList.
- if (obj.className == "Part") and not (obj:IsDescendantOf(char)) then
- if (obj.Anchored == false) then
- table.insert(childList, 1, obj)
- end
- elseif (obj.className == "Model") or (obj.className == "Hat") or (obj.className == "Tool") or (obj == workspace) then
- local child = obj:GetChildren()
- for x = 1, #child do
- checkObject(child[x])
- end
- obj.ChildAdded:connect(checkObject)
- end
- end
- function fury()
- ch=char:GetChildren()
- for i, v in pairs(ch) do
- if v.ClassName=='Part' then
- fp=script:WaitForChild('EffectFire'):Clone()
- fp.Enabled=true
- fp.Parent=v
- fp.Script.Disabled=false
- end
- end
- end
- end)
- end))
- Animation15.Name = "EquipAnim5"
- Animation15.Parent = LocalScript14
- Animation15.AnimationId = "rbxassetid://27751170"
- Animation16.Name = "Jump"
- Animation16.Parent = LocalScript14
- Animation16.AnimationId = "rbxassetid://235542946"
- ParticleEmitter17.Name = "EffectFire"
- ParticleEmitter17.Parent = LocalScript14
- ParticleEmitter17.Transparency = NumberSequence.new(0.89999997615814,0.89999997615814)
- ParticleEmitter17.Size = NumberSequence.new(10,10)
- ParticleEmitter17.Color = ColorSequence.new(Color3.new(1, 1, 0),Color3.new(0.333333, 1, 0),Color3.new(0.333333, 1, 1),Color3.new(0, 0.333333, 1),Color3.new(0.333333, 0, 1),Color3.new(1, 0, 1),Color3.new(1, 0, 0),Color3.new(0, 1, 1),Color3.new(0, 1, 0),Color3.new(1, 1, 0))
- ParticleEmitter17.Enabled = false
- ParticleEmitter17.LightEmission = 0.25
- ParticleEmitter17.Texture = "rbxassetid://1242655587"
- ParticleEmitter17.ZOffset = 1
- ParticleEmitter17.Acceleration = Vector3.new(0, 1.5, 0)
- ParticleEmitter17.Lifetime = NumberRange.new(1, 1)
- ParticleEmitter17.Rate = 50
- ParticleEmitter17.Speed = NumberRange.new(45, 45)
- ParticleEmitter17.VelocitySpread = 700
- ParticleEmitter17.Color = ColorSequence.new(Color3.new(1, 1, 0),Color3.new(0.333333, 1, 0),Color3.new(0.333333, 1, 1),Color3.new(0, 0.333333, 1),Color3.new(0.333333, 0, 1),Color3.new(1, 0, 1),Color3.new(1, 0, 0),Color3.new(0, 1, 1),Color3.new(0, 1, 0),Color3.new(1, 1, 0))
- Script18.Parent = ParticleEmitter17
- Script18.Disabled = true
- table.insert(cors,sandbox(Script18,function()
- wait(3)
- script.Parent:remove()
- end))
- Animation19.Name = "Roar"
- Animation19.Parent = LocalScript14
- Animation19.AnimationId = "rbxassetid://105371766"
- Animation20.Name = "Force"
- Animation20.Parent = LocalScript14
- Animation20.AnimationId = "rbxassetid://32326240"
- CFrameValue21.Name = "og"
- CFrameValue21.Parent = Tool0
- CFrameValue21.Value = CFrame.new(0, -2.21224976, -0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- ScreenGui22.Name = "SaberColorGui"
- ScreenGui22.Parent = Tool0
- Frame23.Parent = ScreenGui22
- Frame23.Transparency = 1
- Frame23.Size = UDim2.new(0.100000001, 0, 0.300000012, 0)
- Frame23.Position = UDim2.new(-0.100000001, 0, 0.5, 0)
- Frame23.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame23.BackgroundTransparency = 1
- TextButton24.Name = "Open/Close"
- TextButton24.Parent = Frame23
- TextButton24.Rotation = 90
- TextButton24.Size = UDim2.new(1.10000002, 0, 0.300000012, 0)
- TextButton24.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
- TextButton24.Text = "Saber Color"
- TextButton24.Position = UDim2.new(0.649999976, 0, 0.340000004, 0)
- TextButton24.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton24.FontSize = Enum.FontSize.Size14
- TextButton24.TextWrapped = true
- Script25.Parent = TextButton24
- table.insert(cors,sandbox(Script25,function()
- out=false
- script.Parent.MouseButton1Click:connect(function()
- if out==false then
- out=true
- for i=1, 20 do
- script.Parent.Parent.Position=script.Parent.Parent.Position+UDim2.new((0.1/20),0,0,0)
- wait(0.02)
- end
- elseif out==true then
- out=false
- for i=1, 20 do
- script.Parent.Parent.Position=script.Parent.Parent.Position+UDim2.new((-0.1/20),0,0,0)
- wait(0.02)
- end
- end
- end)
- end))
- Frame26.Parent = Frame23
- Frame26.Transparency = 1
- Frame26.Size = UDim2.new(1, 0, 1, 0)
- Frame26.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame26.BackgroundTransparency = 1
- ScrollingFrame27.Parent = Frame26
- ScrollingFrame27.Transparency = 0.20000000298023
- ScrollingFrame27.Size = UDim2.new(1, 0, 1, 0)
- ScrollingFrame27.BackgroundColor3 = Color3.new(0.32549, 0.32549, 0.32549)
- ScrollingFrame27.BackgroundTransparency = 0.20000000298023
- ScrollingFrame27.ZIndex = 2
- ImageButton28.Name = "Color Option"
- ImageButton28.Parent = ScrollingFrame27
- ImageButton28.Size = UDim2.new(0.899999976, 0, 0.100000001, 0)
- ImageButton28.BackgroundColor3 = Color3.new(0, 0.666667, 1)
- ImageButton28.ZIndex = 3
- ImageLabel29.Name = "CoreDisplay"
- ImageLabel29.Parent = ImageButton28
- ImageLabel29.Size = UDim2.new(1, 0, 0.699999988, 0)
- ImageLabel29.Position = UDim2.new(0, 0, 0.100000001, 0)
- ImageLabel29.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel29.BorderSizePixel = 0
- ImageLabel29.ZIndex = 4
- Color3Value30.Name = "Core"
- Color3Value30.Parent = ImageButton28
- Color3Value30.Value = Color3.new(1, 1, 1)
- Color3Value31.Name = "Glow"
- Color3Value31.Parent = ImageButton28
- Color3Value31.Value = Color3.new(0, 1, 0)
- Script32.Parent = ImageButton28
- table.insert(cors,sandbox(Script32,function()
- script.Parent.BackgroundColor3=script.Parent.Glow.Value
- script.Parent.CoreDisplay.BackgroundColor3=script.Parent.Core.Value
- end))
- BrickColorValue33.Name = "Neon"
- BrickColorValue33.Parent = ImageButton28
- BrickColorValue33.Value = BrickColor.new("Institutional white")
- ImageButton34.Name = "Color Option"
- ImageButton34.Parent = ScrollingFrame27
- ImageButton34.Size = UDim2.new(0.899999976, 0, 0.100000001, 0)
- ImageButton34.Position = UDim2.new(0, 0, 0.109999999, 0)
- ImageButton34.BackgroundColor3 = Color3.new(0, 0.666667, 1)
- ImageButton34.ZIndex = 3
- ImageLabel35.Name = "CoreDisplay"
- ImageLabel35.Parent = ImageButton34
- ImageLabel35.Size = UDim2.new(1, 0, 0.699999988, 0)
- ImageLabel35.Position = UDim2.new(0, 0, 0.100000001, 0)
- ImageLabel35.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel35.BorderSizePixel = 0
- ImageLabel35.ZIndex = 4
- Color3Value36.Name = "Core"
- Color3Value36.Parent = ImageButton34
- Color3Value36.Value = Color3.new(1, 1, 1)
- Color3Value37.Name = "Glow"
- Color3Value37.Parent = ImageButton34
- Color3Value37.Value = Color3.new(1, 0, 0)
- Script38.Parent = ImageButton34
- table.insert(cors,sandbox(Script38,function()
- script.Parent.BackgroundColor3=script.Parent.Glow.Value
- script.Parent.CoreDisplay.BackgroundColor3=script.Parent.Core.Value
- end))
- BrickColorValue39.Name = "Neon"
- BrickColorValue39.Parent = ImageButton34
- BrickColorValue39.Value = BrickColor.new("Light orange")
- ImageButton40.Name = "Color Option"
- ImageButton40.Parent = ScrollingFrame27
- ImageButton40.Size = UDim2.new(0.899999976, 0, 0.100000001, 0)
- ImageButton40.Position = UDim2.new(0, 0, 0.219999999, 0)
- ImageButton40.BackgroundColor3 = Color3.new(0, 0.666667, 1)
- ImageButton40.ZIndex = 3
- ImageLabel41.Name = "CoreDisplay"
- ImageLabel41.Parent = ImageButton40
- ImageLabel41.Size = UDim2.new(1, 0, 0.699999988, 0)
- ImageLabel41.Position = UDim2.new(0, 0, 0.100000001, 0)
- ImageLabel41.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel41.BorderSizePixel = 0
- ImageLabel41.ZIndex = 4
- Color3Value42.Name = "Core"
- Color3Value42.Parent = ImageButton40
- Color3Value43.Name = "Glow"
- Color3Value43.Parent = ImageButton40
- Color3Value43.Value = Color3.new(1, 1, 1)
- Script44.Parent = ImageButton40
- table.insert(cors,sandbox(Script44,function()
- script.Parent.BackgroundColor3=script.Parent.Glow.Value
- script.Parent.CoreDisplay.BackgroundColor3=script.Parent.Core.Value
- end))
- BrickColorValue45.Name = "Neon"
- BrickColorValue45.Parent = ImageButton40
- BrickColorValue45.Value = BrickColor.new("Really black")
- ImageButton46.Name = "Color Option"
- ImageButton46.Parent = ScrollingFrame27
- ImageButton46.Size = UDim2.new(0.899999976, 0, 0.100000001, 0)
- ImageButton46.Position = UDim2.new(0, 0, 0.330000013, 0)
- ImageButton46.BackgroundColor3 = Color3.new(0, 0.666667, 1)
- ImageButton46.ZIndex = 3
- ImageLabel47.Name = "CoreDisplay"
- ImageLabel47.Parent = ImageButton46
- ImageLabel47.Size = UDim2.new(1, 0, 0.699999988, 0)
- ImageLabel47.Position = UDim2.new(0, 0, 0.100000001, 0)
- ImageLabel47.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel47.BorderSizePixel = 0
- ImageLabel47.ZIndex = 4
- Color3Value48.Name = "Core"
- Color3Value48.Parent = ImageButton46
- Color3Value48.Value = Color3.new(1, 1, 1)
- Color3Value49.Name = "Glow"
- Color3Value49.Parent = ImageButton46
- Color3Value49.Value = Color3.new(0, 0.333333, 1)
- Script50.Parent = ImageButton46
- table.insert(cors,sandbox(Script50,function()
- script.Parent.BackgroundColor3=script.Parent.Glow.Value
- script.Parent.CoreDisplay.BackgroundColor3=script.Parent.Core.Value
- end))
- BrickColorValue51.Name = "Neon"
- BrickColorValue51.Parent = ImageButton46
- BrickColorValue51.Value = BrickColor.new("Institutional white")
- ImageButton52.Name = "Color Option"
- ImageButton52.Parent = ScrollingFrame27
- ImageButton52.Size = UDim2.new(0.899999976, 0, 0.100000001, 0)
- ImageButton52.Position = UDim2.new(0, 0, 0.439999998, 0)
- ImageButton52.BackgroundColor3 = Color3.new(0, 0.666667, 1)
- ImageButton52.ZIndex = 3
- ImageLabel53.Name = "CoreDisplay"
- ImageLabel53.Parent = ImageButton52
- ImageLabel53.Size = UDim2.new(1, 0, 0.699999988, 0)
- ImageLabel53.Position = UDim2.new(0, 0, 0.100000001, 0)
- ImageLabel53.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel53.BorderSizePixel = 0
- ImageLabel53.ZIndex = 4
- Color3Value54.Name = "Core"
- Color3Value54.Parent = ImageButton52
- Color3Value54.Value = Color3.new(1, 1, 1)
- Color3Value55.Name = "Glow"
- Color3Value55.Parent = ImageButton52
- Color3Value55.Value = Color3.new(1, 1, 1)
- Script56.Parent = ImageButton52
- table.insert(cors,sandbox(Script56,function()
- script.Parent.BackgroundColor3=script.Parent.Glow.Value
- script.Parent.CoreDisplay.BackgroundColor3=script.Parent.Core.Value
- end))
- BrickColorValue57.Name = "Neon"
- BrickColorValue57.Parent = ImageButton52
- BrickColorValue57.Value = BrickColor.new("Institutional white")
- ImageButton58.Name = "Color Option"
- ImageButton58.Parent = ScrollingFrame27
- ImageButton58.Size = UDim2.new(0.899999976, 0, 0.100000001, 0)
- ImageButton58.Position = UDim2.new(0, 0, 0.550000012, 0)
- ImageButton58.BackgroundColor3 = Color3.new(0, 0.666667, 1)
- ImageButton58.ZIndex = 3
- ImageLabel59.Name = "CoreDisplay"
- ImageLabel59.Parent = ImageButton58
- ImageLabel59.Size = UDim2.new(1, 0, 0.699999988, 0)
- ImageLabel59.Position = UDim2.new(0, 0, 0.100000001, 0)
- ImageLabel59.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel59.BorderSizePixel = 0
- ImageLabel59.ZIndex = 4
- Color3Value60.Name = "Core"
- Color3Value60.Parent = ImageButton58
- Color3Value60.Value = Color3.new(1, 1, 1)
- Color3Value61.Name = "Glow"
- Color3Value61.Parent = ImageButton58
- Color3Value61.Value = Color3.new(0.666667, 0, 0.498039)
- Script62.Parent = ImageButton58
- table.insert(cors,sandbox(Script62,function()
- script.Parent.BackgroundColor3=script.Parent.Glow.Value
- script.Parent.CoreDisplay.BackgroundColor3=script.Parent.Core.Value
- end))
- BrickColorValue63.Name = "Neon"
- BrickColorValue63.Parent = ImageButton58
- BrickColorValue63.Value = BrickColor.new("Institutional white")
- ImageButton64.Name = "Color Option"
- ImageButton64.Parent = ScrollingFrame27
- ImageButton64.Size = UDim2.new(0.899999976, 0, 0.100000001, 0)
- ImageButton64.Position = UDim2.new(0, 0, 0.660000026, 0)
- ImageButton64.BackgroundColor3 = Color3.new(0, 0.666667, 1)
- ImageButton64.ZIndex = 3
- ImageLabel65.Name = "CoreDisplay"
- ImageLabel65.Parent = ImageButton64
- ImageLabel65.Size = UDim2.new(1, 0, 0.699999988, 0)
- ImageLabel65.Position = UDim2.new(0, 0, 0.100000001, 0)
- ImageLabel65.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel65.BorderSizePixel = 0
- ImageLabel65.ZIndex = 4
- Color3Value66.Name = "Core"
- Color3Value66.Parent = ImageButton64
- Color3Value66.Value = Color3.new(1, 1, 1)
- Color3Value67.Name = "Glow"
- Color3Value67.Parent = ImageButton64
- Color3Value67.Value = Color3.new(1, 1, 0.498039)
- Script68.Parent = ImageButton64
- table.insert(cors,sandbox(Script68,function()
- script.Parent.BackgroundColor3=script.Parent.Glow.Value
- script.Parent.CoreDisplay.BackgroundColor3=script.Parent.Core.Value
- end))
- BrickColorValue69.Name = "Neon"
- BrickColorValue69.Parent = ImageButton64
- BrickColorValue69.Value = BrickColor.new("Institutional white")
- Script70.Name = "qPerfectionWeld"
- Script70.Parent = Tool0
- table.insert(cors,sandbox(Script70,function()
- -- Created by Quenty (@Quenty, follow me on twitter).
- -- Should work with only ONE copy, seamlessly with weapons, trains, et cetera.
- -- Parts should be ANCHORED before use. It will, however, store relatives values and so when tools are reparented, it'll fix them.
- --[[ INSTRUCTIONS
- - Place in the model
- - Make sure model is anchored
- - That's it. It will weld the model and all children.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- This script is designed to be used is a regular script. In a local script it will weld, but it will not attempt to handle ancestory changes.
- ]]
- --[[ DOCUMENTATION
- - Will work in tools. If ran more than once it will not create more than one weld. This is especially useful for tools that are dropped and then picked up again.
- - Will work in PBS servers
- - Will work as long as it starts out with the part anchored
- - Stores the relative CFrame as a CFrame value
- - Takes careful measure to reduce lag by not having a joint set off or affected by the parts offset from origin
- - Utilizes a recursive algorith to find all parts in the model
- - Will reweld on script reparent if the script is initially parented to a tool.
- - Welds as fast as possible
- ]]
- -- qPerfectionWeld.lua
- -- Created 10/6/2014
- -- Author: Quenty
- -- Version 1.0.3
- -- Updated 10/14/2014 - Updated to 1.0.1
- --- Bug fix with existing ROBLOX welds ? Repro by asimo3089
- -- Updated 10/14/2014 - Updated to 1.0.2
- --- Fixed bug fix.
- -- Updated 10/14/2014 - Updated to 1.0.3
- --- Now handles joints semi-acceptably. May be rather hacky with some joints. :/
- local NEVER_BREAK_JOINTS = false -- If you set this to true it will never break joints (this can create some welding issues, but can save stuff like hinges).
- local function CallOnChildren(Instance, FunctionToCall)
- -- Calls a function on each of the children of a certain object, using recursion.
- FunctionToCall(Instance)
- for _, Child in next, Instance:GetChildren() do
- CallOnChildren(Child, FunctionToCall)
- end
- end
- local function GetNearestParent(Instance, ClassName)
- -- Returns the nearest parent of a certain class, or returns nil
- local Ancestor = Instance
- repeat
- Ancestor = Ancestor.Parent
- if Ancestor == nil then
- return nil
- end
- until Ancestor:IsA(ClassName)
- return Ancestor
- end
- local function GetBricks(StartInstance)
- local List = {}
- -- if StartInstance:IsA("BasePart") then
- -- List[#List+1] = StartInstance
- -- end
- CallOnChildren(StartInstance, function(Item)
- if Item:IsA("BasePart") then
- List[#List+1] = Item;
- end
- end)
- return List
- end
- local function Modify(Instance, Values)
- -- Modifies an Instance by using a table.
- assert(type(Values) == "table", "Values is not a table");
- for Index, Value in next, Values do
- if type(Index) == "number" then
- Value.Parent = Instance
- else
- Instance[Index] = Value
- end
- end
- return Instance
- end
- local function Make(ClassType, Properties)
- -- Using a syntax hack to create a nice way to Make new items.
- return Modify(Instance.new(ClassType), Properties)
- end
- local Surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
- local HingSurfaces = {"Hinge", "Motor", "SteppingMotor"}
- local function HasWheelJoint(Part)
- for _, SurfaceName in pairs(Surfaces) do
- for _, HingSurfaceName in pairs(HingSurfaces) do
- if Part[SurfaceName].Name == HingSurfaceName then
- return true
- end
- end
- end
- return false
- end
- local function ShouldBreakJoints(Part)
- --- We do not want to break joints of wheels/hinges. This takes the utmost care to not do this. There are
- -- definitely some edge cases.
- if NEVER_BREAK_JOINTS then
- return false
- end
- if HasWheelJoint(Part) then
- return false
- end
- local Connected = Part:GetConnectedParts()
- if #Connected == 1 then
- return false
- end
- for _, Item in pairs(Connected) do
- if HasWheelJoint(Item) then
- return false
- elseif not Item:IsDescendantOf(script.Parent) then
- return false
- end
- end
- return true
- end
- local function WeldTogether(Part0, Part1, JointType, WeldParent)
- --- Weld's 2 parts together
- -- @param Part0 The first part
- -- @param Part1 The second part (Dependent part most of the time).
- -- @param [JointType] The type of joint. Defaults to weld.
- -- @param [WeldParent] Parent of the weld, Defaults to Part0 (so GC is better).
- -- @return The weld created.
- JointType = JointType or "Weld"
- local RelativeValue = Part1:FindFirstChild("qRelativeCFrameWeldValue")
- local NewWeld = Part1:FindFirstChild("qCFrameWeldThingy") or Instance.new(JointType)
- Modify(NewWeld, {
- Name = "qCFrameWeldThingy";
- Part0 = Part0;
- Part1 = Part1;
- C0 = CFrame.new();--Part0.CFrame:inverse();
- C1 = RelativeValue and RelativeValue.Value or Part1.CFrame:toObjectSpace(Part0.CFrame); --Part1.CFrame:inverse() * Part0.CFrame;-- Part1.CFrame:inverse();
- Parent = Part1;
- })
- if not RelativeValue then
- RelativeValue = Make("CFrameValue", {
- Parent = Part1;
- Name = "qRelativeCFrameWeldValue";
- Archivable = true;
- Value = NewWeld.C1;
- })
- end
- return NewWeld
- end
- local function WeldParts(Parts, MainPart, JointType, DoNotUnanchor)
- -- @param Parts The Parts to weld. Should be anchored to prevent really horrible results.
- -- @param MainPart The part to weld the model to (can be in the model).
- -- @param [JointType] The type of joint. Defaults to weld.
- -- @parm DoNotUnanchor Boolean, if true, will not unachor the model after cmopletion.
- for _, Part in pairs(Parts) do
- if ShouldBreakJoints(Part) then
- Part:BreakJoints()
- end
- end
- for _, Part in pairs(Parts) do
- if Part ~= MainPart then
- WeldTogether(MainPart, Part, JointType, MainPart)
- end
- end
- if not DoNotUnanchor then
- for _, Part in pairs(Parts) do
- Part.Anchored = false
- end
- MainPart.Anchored = false
- end
- end
- local function PerfectionWeld()
- local Tool = GetNearestParent(script, "Tool")
- local Parts = GetBricks(script.Parent)
- local PrimaryPart = Tool and Tool:FindFirstChild("Handle") and Tool.Handle:IsA("BasePart") and Tool.Handle or script.Parent:IsA("Model") and script.Parent.PrimaryPart or Parts[1]
- if PrimaryPart then
- WeldParts(Parts, PrimaryPart, "Weld", false)
- else
- warn("qWeld - Unable to weld part")
- end
- return Tool
- end
- local Tool = PerfectionWeld()
- if Tool and script.ClassName == "Script" then
- --- Don't bother with local scripts
- script.Parent.AncestryChanged:connect(function()
- PerfectionWeld()
- end)
- end
- -- Created by Quenty (@Quenty, follow me on twitter).
- end))
- Part71.Name = "HitBox"
- Part71.Parent = Tool0
- Part71.Transparency = 1
- Part71.Rotation = Vector3.new(0, 0, -50)
- Part71.CanCollide = false
- Part71.FormFactor = Enum.FormFactor.Custom
- Part71.Size = Vector3.new(2.55149984, 6.80400038, 0.283499986)
- Part71.CFrame = CFrame.new(-18.7105408, 0.498775721, -17.0065994, 0.64278698, 0.766044974, 0, -0.766044974, 0.64278698, 0, 0, 0, 1)
- Part71.Position = Vector3.new(-18.7105408, 0.498775721, -17.0065994)
- Part71.Orientation = Vector3.new(0, 0, -50)
- ManualWeld72.Name = "Weld"
- ManualWeld72.Parent = mas
- ManualWeld72.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 1, -5.96046377e-08, 0, -5.96046377e-08, -1, -0)
- ManualWeld72.C1 = CFrame.new(-0.588226318, 0.638020515, -0.0725708008, 0.990511596, 0, -0.137429506, 0, 1, 0, 0.137429506, 0, 0.990511596)
- ManualWeld72.Part0 = nil
- CylinderMesh73.Parent = mas
- CylinderMesh73.Scale = Vector3.new(4, 1.20000005, 4)
- CylinderMesh73.Scale = Vector3.new(4, 1.20000005, 4)
- StringValue74.Name = "Credits To TheDoctorTD"
- StringValue74.Parent = Tool0
- StringValue74.Value = "For the hilt"
- CylinderMesh75.Parent = mas
- CylinderMesh75.Scale = Vector3.new(4, 1.20000005, 4)
- CylinderMesh75.Scale = Vector3.new(4, 1.20000005, 4)
- CylinderMesh76.Parent = mas
- CylinderMesh76.Scale = Vector3.new(4, 1, 4)
- CylinderMesh76.Scale = Vector3.new(4, 1, 4)
- Script77.Parent = Tool0
- table.insert(cors,sandbox(Script77,function()
- while true do
- wait(0.2)
- script.Parent.BladeGlow1.Transparency = 1
- script.Parent.BladeGlow2.Transparency = 1
- script.Parent.BladeGlow3.Transparency = 1
- end
- end))
- BindableEvent78.Name = "MouseDown"
- BindableEvent78.Parent = Tool0
- Part79.Name = "Handle"
- Part79.Parent = Tool0
- Part79.Material = Enum.Material.Metal
- Part79.BrickColor = BrickColor.new("Really blue")
- Part79.Transparency = 1
- Part79.Rotation = Vector3.new(90, -88, 6)
- Part79.Anchored = true
- Part79.CanCollide = false
- Part79.Size = Vector3.new(0.13984479, 2.09378719, 0.149556234)
- Part79.CFrame = CFrame.new(-18.4848976, 1.18167353, -16.7329369, 0.0347090028, -0.00364701357, -0.9993909, -0.993916094, 0.104464389, -0.0349000804, 0.104528017, 0.994522035, 1.02913452e-06)
- Part79.BottomSurface = Enum.SurfaceType.Smooth
- Part79.TopSurface = Enum.SurfaceType.Smooth
- Part79.Color = Color3.new(0, 0, 1)
- Part79.Position = Vector3.new(-18.4848976, 1.18167353, -16.7329369)
- Part79.Orientation = Vector3.new(2, -90, -84)
- Part79.Color = Color3.new(0, 0, 1)
- Sound80.Name = "HitSound"
- Sound80.Parent = Part79
- Sound80.SoundId = "http://www.roblox.com/asset/?id=247718165"
- Sound80.Volume = 1
- Sound81.Name = "LungeSound"
- Sound81.Parent = Part79
- Sound81.Pitch = 0.80000001192093
- Sound81.SoundId = "rbxassetid://935843979"
- Sound81.Volume = 1
- Sound82.Name = "OverheadSound"
- Sound82.Parent = Part79
- Sound82.Pitch = 1.1699999570847
- Sound82.SoundId = "rbxassetid://210946558"
- Sound82.Volume = 3
- Sound83.Name = "SlashSound"
- Sound83.Parent = Part79
- Sound83.SoundId = "rbxassetid://260430015"
- Sound83.Volume = 1
- Sound84.Name = "UnsheathSound"
- Sound84.Parent = Part79
- Sound84.SoundId = "rbxassetid://260411317"
- Sound84.Volume = 3
- Sound85.Name = "deactivate"
- Sound85.Parent = Part79
- Sound85.Pitch = 0.5
- Sound85.SoundId = "rbxassetid://260411317"
- Sound85.Volume = 5
- Sound86.Name = "Fire"
- Sound86.Parent = Part79
- Sound86.Pitch = 2
- Sound86.SoundId = "rbxassetid://366825104"
- Sound86.Volume = 3
- Sound87.Name = "BigSlash"
- Sound87.Parent = Part79
- Sound87.Pitch = 0.69999998807907
- Sound87.SoundId = "rbxassetid://186936370"
- Sound87.Volume = 1
- Sound88.Name = "Blood"
- Sound88.Parent = Part79
- Sound88.Pitch = 0.5
- Sound88.SoundId = "rbxassetid://96667969"
- Sound88.TimePosition = 0.05
- Sound88.Volume = 1
- Sound89.Name = "Hit"
- Sound89.Parent = Part79
- Sound89.Pitch = 0.5
- Sound89.SoundId = "rbxassetid://96667969"
- Sound89.TimePosition = 0.05
- Sound89.Volume = 2
- Sound90.Parent = Part79
- Sound90.SoundId = "rbxasset://sounds/SwordSlash.wav"
- Sound90.Volume = 1
- Folder91.Name = "Storage"
- Folder91.Parent = Part79
- ParticleEmitter92.Name = "Footparticles"
- ParticleEmitter92.Parent = Folder91
- ParticleEmitter92.Transparency = NumberSequence.new(0,0,1)
- ParticleEmitter92.Size = NumberSequence.new(0.10000000149012,0.10000000149012)
- ParticleEmitter92.Color = ColorSequence.new(Color3.new(0, 1, 1),Color3.new(0, 1, 1))
- ParticleEmitter92.Enabled = false
- ParticleEmitter92.LightEmission = 1
- ParticleEmitter92.Acceleration = Vector3.new(0, 0.100000001, 0)
- ParticleEmitter92.Lifetime = NumberRange.new(2, 2)
- ParticleEmitter92.Rate = 100
- ParticleEmitter92.Speed = NumberRange.new(3, 3)
- ParticleEmitter92.VelocitySpread = 20
- ParticleEmitter92.Color = ColorSequence.new(Color3.new(0, 1, 1),Color3.new(0, 1, 1))
- Sound93.Name = "SwingSpecial"
- Sound93.Parent = Part79
- Sound93.Pitch = 1.2000000476837
- Sound93.SoundId = "rbxassetid://169310429"
- Sound93.Volume = 1
- Fire94.Parent = Part79
- Fire94.Color = Color3.new(0.92549, 0.545098, 0.27451)
- Fire94.Enabled = false
- Fire94.Color = Color3.new(0.92549, 0.545098, 0.27451)
- SpecialMesh95.Parent = Part79
- SpecialMesh95.MeshId = "rbxassetid://32"
- SpecialMesh95.Scale = Vector3.new(2, 2, 2)
- SpecialMesh95.TextureId = "rbxassetid://845822608"
- SpecialMesh95.VertexColor = Vector3.new(0.649999976, 0, 1)
- SpecialMesh95.MeshType = Enum.MeshType.FileMesh
- SpecialMesh95.Scale = Vector3.new(2, 2, 2)
- Sound96.Name = "Swing"
- Sound96.Parent = Part79
- Sound96.SoundId = "rbxassetid://168615093"
- Sound96.Volume = 1
- Sound97.Name = "PowerUp"
- Sound97.Parent = Part79
- Sound97.SoundId = "rbxassetid://520231478"
- Sound98.Name = "Engine"
- Sound98.Parent = Part79
- Sound98.SoundId = "rbxassetid://143350696"
- Sound98.Looped = true
- Sound99.Name = "Mus"
- Sound99.Parent = Part79
- Sound99.Volume = 0
- Sound99.Looped = true
- Sound100.Name = "Shot"
- Sound100.Parent = Part79
- Sound100.SoundId = "rbxassetid://268931220"
- Sound100.Volume = 4
- Animation101.Name = "SwingAnim2"
- Animation101.Parent = Tool0
- Animation101.AnimationId = "rbxassetid://846744780"
- Script102.Name = "All animations"
- Script102.Parent = Animation101
- table.insert(cors,sandbox(Script102,function()
- while true do
- script.Parent.AnimationId="http://www.roblox.com/Asset?ID=86313418"
- wait(0.001)--Default swing1
- script.Parent.AnimationId="http://www.roblox.com/Asset?ID=86313260"
- wait(0.001)--Default swing2
- end
- end))
- LocalScript103.Name = "Special"
- LocalScript103.Parent = Tool0
- LocalScript103.Disabled = true
- table.insert(cors,sandbox(LocalScript103,function()
- local Tool = script.Parent
- local Staff = Tool.Handle
- local vCharacter
- local myHumanoid
- local animate
- local slamAnim
- local swingAnim2
- function onEquipped(mouse)
- vCharacter = Tool.Parent
- myHumanoid = vCharacter:FindFirstChild("Humanoid")
- if mouse then
- mouse.KeyDown:connect(function(key)
- if key:lower() == "f" and myHumanoid then
- animate = Tool:FindFirstChild("Animate")
- swingAnim2 = myHumanoid:LoadAnimation(Tool.SwingAnim2)
- if swingAnim2 then swingAnim2:Play() end
- Staff.SwingSpecial:Play()
- script.Settings.CoolDown.Value = script.Settings.CoolDown.Value -1
- script.Timer.Disabled = false
- script.Disabled = true
- script.Parent.Handle.SpecialDamage.Disabled = false
- lol = script.Parent.Parent.Torso
- lol.Velocity = script.Parent.Parent.Head.CFrame.lookVector * 200 -- Foward Dash
- wait(0.1)
- lol.Velocity = script.Parent.Parent.Head.CFrame.lookVector * 180 -- Foward Dash
- wait(0.1)
- lol.Velocity = script.Parent.Parent.Head.CFrame.lookVector * 300 -- Foward Dash
- wait(0.1)
- script.Parent.Handle.SpecialDamage.Disabled = true
- wait(15)
- wait(12)
- end
- end)
- end
- end
- function onUnequipped()
- if slamAnim then slamAnim:Stop() end
- if swingAnim2 then swingAnim2:Stop() end
- end
- Tool.Equipped:connect(onEquipped)
- Tool.Unequipped:connect(onUnequipped)
- animate = Tool:FindFirstChild("Animate")
- while animate == nil do
- animate = Tool:FindFirstChild("Animate")
- wait()
- end
- animate.Changed:connect(function()
- animate = Tool:FindFirstChild("Animate")
- if animate and animate.Value == 1 and myHumanoid then
- slamAnim = myHumanoid:LoadAnimation(Tool.SlamAnim)
- if slamAnim then slamAnim:Play() end
- myHumanoid.Jump = true
- wait(2.2)
- animate.Value = 0
- end
- end)
- --Tool.GripUp = Vector3.new(0, 0.2, -0.8)
- --wait(0.0001)
- --Tool.GripUp = Vector3.new(0, 0.4, -0.6)
- --wait(0.0001)
- --Tool.GripUp = Vector3.new(0, 0.6, -0.4)
- --wait(0.0001)
- --Tool.GripUp = Vector3.new(0, 0.8, -0.2)
- --wait(0.0001)
- --Tool.GripUp = Vector3.new(0, 1, -0.0)
- --wait(0.0001)
- --Tool.GripUp = Vector3.new(0, 0.8, 0.2)
- --wait(0.0001)
- --Tool.GripUp = Vector3.new(0, 0.6, 0.4)
- --wait(0.0001)
- --Tool.GripUp = Vector3.new(0, 0.4, 0.6)
- -- wait(0.0001)
- -- Tool.GripUp = Vector3.new(0, 0.2, 0.8)
- -- wait(0.0001)
- -- Tool.GripUp = Vector3.new(0, 0.0, 1)
- -- wait(0.0001)
- -- Tool.GripUp = Vector3.new(0.0, -0.2, 0.8)
- -- wait(0.0001)
- -- Tool.GripUp = Vector3.new(0, -0.4, 0.6)
- -- wait(0.0001)
- -- Tool.GripUp = Vector3.new(0.0, -0.6, 0.4)
- -- wait(0.0001)
- -- Tool.GripUp = Vector3.new(0, -0.8, 0.2)
- -- wait(0.0001)
- -- Tool.GripUp = Vector3.new(0.0, -1, 0.0)
- -- wait(0.0001)
- -- Tool.GripUp = Vector3.new(0, -0.8, -0.2)
- -- wait(0.0001)
- -- Tool.GripUp = Vector3.new(0, -0.6, -0.4)
- -- wait(0.0001)
- -- Tool.GripUp = Vector3.new(0, -0.4, -0.6)
- -- wait(0.0001)
- -- Tool.GripUp = Vector3.new(0, -0.2, -0.8)
- -- wait(0.0001)
- -- Tool.GripUp = Vector3.new(0, 0, -1)
- -- wait(0.0001)
- --Full loop around
- end))
- Folder104.Name = "Settings"
- Folder104.Parent = LocalScript103
- NumberValue105.Name = "CoolDown"
- NumberValue105.Parent = Folder104
- Script106.Name = "Timer"
- Script106.Parent = LocalScript103
- table.insert(cors,sandbox(Script106,function()
- while true do
- wait(1)
- script.Parent.Parent.Special.Disabled = false
- script.Parent.Settings.CoolDown.Value = script.Parent.Settings.CoolDown.Value +1
- wait(6)
- end
- end))
- Model107.Parent = Tool0
- Part108.Name = "Handle"
- Part108.Parent = Model107
- Part108.BrickColor = BrickColor.new("New Yeller")
- Part108.Reflectance = 0.40000000596046
- Part108.Rotation = Vector3.new(-56.2799988, 1.40999997, -82.5199966)
- Part108.CanCollide = false
- Part108.FormFactor = Enum.FormFactor.Plate
- Part108.Size = Vector3.new(0.574370921, 0.459496737, 1.72311282)
- Part108.CFrame = CFrame.new(-18.5912266, 1.65180254, -10.1998758, 0.13016203, 0.991185844, 0.024667399, -0.553137124, 0.0519451238, 0.831469178, 0.822859168, -0.121870175, 0.555022955)
- Part108.BottomSurface = Enum.SurfaceType.Smooth
- Part108.TopSurface = Enum.SurfaceType.Smooth
- Part108.Color = Color3.new(1, 1, 0)
- Part108.Position = Vector3.new(-18.5912266, 1.65180254, -10.1998758)
- Part108.Orientation = Vector3.new(-56.25, 2.53999996, -84.6399994)
- Part108.Color = Color3.new(1, 1, 0)
- SpecialMesh109.Parent = Part108
- SpecialMesh109.MeshId = "http://www.roblox.com/asset/?id=16198309"
- SpecialMesh109.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- SpecialMesh109.MeshType = Enum.MeshType.FileMesh
- SpecialMesh109.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- Sound110.Parent = Part108
- Sound110.SoundId = "http://www.roblox.com/Asset/?ID=12135982"
- Sound110.Volume = 0.69999998807907
- Part111.Name = "Handle"
- Part111.Parent = Model107
- Part111.BrickColor = BrickColor.new("New Yeller")
- Part111.Reflectance = 0.40000000596046
- Part111.Rotation = Vector3.new(-84.0400009, -2.25, -82.7299957)
- Part111.CanCollide = false
- Part111.FormFactor = Enum.FormFactor.Plate
- Part111.Size = Vector3.new(0.574370921, 0.459496737, 1.72311282)
- Part111.CFrame = CFrame.new(-18.6008415, 3.86899567, -9.33297443, 0.126504987, 0.991185963, -0.0393308848, -0.0980439857, 0.0519489609, 0.993825316, 0.987108886, -0.121867701, 0.103751622)
- Part111.BottomSurface = Enum.SurfaceType.Smooth
- Part111.TopSurface = Enum.SurfaceType.Smooth
- Part111.Color = Color3.new(1, 1, 0)
- Part111.Position = Vector3.new(-18.6008415, 3.86899567, -9.33297443)
- Part111.Orientation = Vector3.new(-83.6299973, -20.7600002, -62.079998)
- Part111.Color = Color3.new(1, 1, 0)
- SpecialMesh112.Parent = Part111
- SpecialMesh112.MeshId = "http://www.roblox.com/asset/?id=16198309"
- SpecialMesh112.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- SpecialMesh112.MeshType = Enum.MeshType.FileMesh
- SpecialMesh112.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- Sound113.Parent = Part111
- Sound113.SoundId = "http://www.roblox.com/Asset/?ID=12135982"
- Sound113.Volume = 0.69999998807907
- Part114.Name = "Handle"
- Part114.Parent = Model107
- Part114.BrickColor = BrickColor.new("New Yeller")
- Part114.Reflectance = 0.40000000596046
- Part114.Rotation = Vector3.new(0.75, -13.9799995, -86.909996)
- Part114.CanCollide = false
- Part114.FormFactor = Enum.FormFactor.Plate
- Part114.Size = Vector3.new(0.574370921, 0.459496737, 1.72311282)
- Part114.CFrame = CFrame.new(-18.4432125, 1.30007052, -14.7416515, 0.0523380265, 0.968965828, -0.24159041, -0.998629451, 0.0507833622, -0.0126617188, 0, 0.241921946, 0.970295787)
- Part114.BottomSurface = Enum.SurfaceType.Smooth
- Part114.TopSurface = Enum.SurfaceType.Smooth
- Part114.Color = Color3.new(1, 1, 0)
- Part114.Position = Vector3.new(-18.4432125, 1.30007052, -14.7416515)
- Part114.Orientation = Vector3.new(0.729999959, -13.9799995, -87.0899963)
- Part114.Color = Color3.new(1, 1, 0)
- SpecialMesh115.Parent = Part114
- SpecialMesh115.MeshId = "http://www.roblox.com/asset/?id=16198309"
- SpecialMesh115.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- SpecialMesh115.MeshType = Enum.MeshType.FileMesh
- SpecialMesh115.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- Sound116.Parent = Part114
- Sound116.SoundId = "http://www.roblox.com/Asset/?ID=12135982"
- Sound116.Volume = 0.69999998807907
- Part117.Name = "Handle"
- Part117.Parent = Model107
- Part117.BrickColor = BrickColor.new("New Yeller")
- Part117.Reflectance = 0.40000000596046
- Part117.Rotation = Vector3.new(-0.370000005, 6.98999977, -86.9799957)
- Part117.CanCollide = false
- Part117.FormFactor = Enum.FormFactor.Plate
- Part117.Size = Vector3.new(0.574370921, 0.459496737, 1.72311282)
- Part117.CFrame = CFrame.new(-18.6890755, 1.28717947, -13.7541761, 0.0523380265, 0.991185904, 0.121701941, -0.998629451, 0.0519479103, 0.00637838105, 0, -0.121868983, 0.99254626)
- Part117.BottomSurface = Enum.SurfaceType.Smooth
- Part117.TopSurface = Enum.SurfaceType.Smooth
- Part117.Color = Color3.new(1, 1, 0)
- Part117.Position = Vector3.new(-18.6890755, 1.28717947, -13.7541761)
- Part117.Orientation = Vector3.new(-0.370000005, 6.98999977, -87.0199966)
- Part117.Color = Color3.new(1, 1, 0)
- SpecialMesh118.Parent = Part117
- SpecialMesh118.MeshId = "http://www.roblox.com/asset/?id=16198309"
- SpecialMesh118.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- SpecialMesh118.MeshType = Enum.MeshType.FileMesh
- SpecialMesh118.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- Sound119.Parent = Part117
- Sound119.SoundId = "http://www.roblox.com/Asset/?ID=12135982"
- Sound119.Volume = 0.69999998807907
- Part120.Name = "Handle"
- Part120.Parent = Model107
- Part120.BrickColor = BrickColor.new("New Yeller")
- Part120.Reflectance = 0.40000000596046
- Part120.Rotation = Vector3.new(-1.14999998, 20.9699993, -86.7900009)
- Part120.CanCollide = false
- Part120.FormFactor = Enum.FormFactor.Plate
- Part120.Size = Vector3.new(0.574370921, 0.459496737, 1.72311282)
- Part120.CFrame = CFrame.new(-18.5545349, 1.29423642, -15.7388296, 0.0523380265, 0.932300866, 0.357876807, -0.998629451, 0.0488617569, 0.0187562741, 0, -0.35836798, 0.933580458)
- Part120.BottomSurface = Enum.SurfaceType.Smooth
- Part120.TopSurface = Enum.SurfaceType.Smooth
- Part120.Color = Color3.new(1, 1, 0)
- Part120.Position = Vector3.new(-18.5545349, 1.29423642, -15.7388296)
- Part120.Orientation = Vector3.new(-1.06999993, 20.9699993, -87.1999969)
- Part120.Color = Color3.new(1, 1, 0)
- SpecialMesh121.Parent = Part120
- SpecialMesh121.MeshId = "http://www.roblox.com/asset/?id=16198309"
- SpecialMesh121.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- SpecialMesh121.MeshType = Enum.MeshType.FileMesh
- SpecialMesh121.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- Sound122.Parent = Part120
- Sound122.SoundId = "http://www.roblox.com/Asset/?ID=12135982"
- Sound122.Volume = 0.69999998807907
- Part123.Name = "Handle"
- Part123.Parent = Model107
- Part123.BrickColor = BrickColor.new("New Yeller")
- Part123.Reflectance = 0.40000000596046
- Part123.Rotation = Vector3.new(0, 0, -87)
- Part123.CanCollide = false
- Part123.FormFactor = Enum.FormFactor.Plate
- Part123.Size = Vector3.new(0.574370921, 0.459496737, 1.72311282)
- Part123.CFrame = CFrame.new(-18.5545349, 1.29423642, -16.7565365, 0.0523380265, 0.998629451, 0, -0.998629451, 0.0523380265, 0, 0, 0, 1)
- Part123.BottomSurface = Enum.SurfaceType.Smooth
- Part123.TopSurface = Enum.SurfaceType.Smooth
- Part123.Color = Color3.new(1, 1, 0)
- Part123.Position = Vector3.new(-18.5545349, 1.29423642, -16.7565365)
- Part123.Orientation = Vector3.new(0, 0, -87)
- Part123.Color = Color3.new(1, 1, 0)
- SpecialMesh124.Parent = Part123
- SpecialMesh124.MeshId = "http://www.roblox.com/asset/?id=16198309"
- SpecialMesh124.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- SpecialMesh124.MeshType = Enum.MeshType.FileMesh
- SpecialMesh124.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- Sound125.Parent = Part123
- Sound125.SoundId = "http://www.roblox.com/Asset/?ID=12135982"
- Sound125.Volume = 0.69999998807907
- Part126.Name = "Handle"
- Part126.Parent = Model107
- Part126.BrickColor = BrickColor.new("New Yeller")
- Part126.Reflectance = 0.40000000596046
- Part126.Rotation = Vector3.new(0.75, -13.9799995, -86.909996)
- Part126.CanCollide = false
- Part126.FormFactor = Enum.FormFactor.Plate
- Part126.Size = Vector3.new(0.574370921, 0.459496737, 1.72311282)
- Part126.CFrame = CFrame.new(-18.4432125, 1.30007052, -12.1385517, 0.0523380265, 0.968965828, -0.24159041, -0.998629451, 0.0507833622, -0.0126617188, 0, 0.241921946, 0.970295787)
- Part126.BottomSurface = Enum.SurfaceType.Smooth
- Part126.TopSurface = Enum.SurfaceType.Smooth
- Part126.Color = Color3.new(1, 1, 0)
- Part126.Position = Vector3.new(-18.4432125, 1.30007052, -12.1385517)
- Part126.Orientation = Vector3.new(0.729999959, -13.9799995, -87.0899963)
- Part126.Color = Color3.new(1, 1, 0)
- SpecialMesh127.Parent = Part126
- SpecialMesh127.MeshId = "http://www.roblox.com/asset/?id=16198309"
- SpecialMesh127.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- SpecialMesh127.MeshType = Enum.MeshType.FileMesh
- SpecialMesh127.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- Sound128.Parent = Part126
- Sound128.SoundId = "http://www.roblox.com/Asset/?ID=12135982"
- Sound128.Volume = 0.69999998807907
- Part129.Name = "Handle"
- Part129.Parent = Model107
- Part129.BrickColor = BrickColor.new("New Yeller")
- Part129.Reflectance = 0.40000000596046
- Part129.Rotation = Vector3.new(-0.370000005, 6.98999977, -86.9799957)
- Part129.CanCollide = false
- Part129.FormFactor = Enum.FormFactor.Plate
- Part129.Size = Vector3.new(0.574370921, 0.459496737, 1.72311282)
- Part129.CFrame = CFrame.new(-18.6890755, 1.28717947, -11.1510763, 0.0523380265, 0.991185904, 0.121701941, -0.998629451, 0.0519479103, 0.00637838105, 0, -0.121868983, 0.99254626)
- Part129.BottomSurface = Enum.SurfaceType.Smooth
- Part129.TopSurface = Enum.SurfaceType.Smooth
- Part129.Color = Color3.new(1, 1, 0)
- Part129.Position = Vector3.new(-18.6890755, 1.28717947, -11.1510763)
- Part129.Orientation = Vector3.new(-0.370000005, 6.98999977, -87.0199966)
- Part129.Color = Color3.new(1, 1, 0)
- SpecialMesh130.Parent = Part129
- SpecialMesh130.MeshId = "http://www.roblox.com/asset/?id=16198309"
- SpecialMesh130.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- SpecialMesh130.MeshType = Enum.MeshType.FileMesh
- SpecialMesh130.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- Sound131.Parent = Part129
- Sound131.SoundId = "http://www.roblox.com/Asset/?ID=12135982"
- Sound131.Volume = 0.69999998807907
- Part132.Name = "Handle"
- Part132.Parent = Model107
- Part132.BrickColor = BrickColor.new("New Yeller")
- Part132.Reflectance = 0.40000000596046
- Part132.Rotation = Vector3.new(-1.14999998, 20.9699993, -86.7900009)
- Part132.CanCollide = false
- Part132.FormFactor = Enum.FormFactor.Plate
- Part132.Size = Vector3.new(0.574370921, 0.459496737, 1.72311282)
- Part132.CFrame = CFrame.new(-18.5545349, 1.29423642, -13.1357298, 0.0523380265, 0.932300866, 0.357876807, -0.998629451, 0.0488617569, 0.0187562741, 0, -0.35836798, 0.933580458)
- Part132.BottomSurface = Enum.SurfaceType.Smooth
- Part132.TopSurface = Enum.SurfaceType.Smooth
- Part132.Color = Color3.new(1, 1, 0)
- Part132.Position = Vector3.new(-18.5545349, 1.29423642, -13.1357298)
- Part132.Orientation = Vector3.new(-1.06999993, 20.9699993, -87.1999969)
- Part132.Color = Color3.new(1, 1, 0)
- SpecialMesh133.Parent = Part132
- SpecialMesh133.MeshId = "http://www.roblox.com/asset/?id=16198309"
- SpecialMesh133.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- SpecialMesh133.MeshType = Enum.MeshType.FileMesh
- SpecialMesh133.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- Sound134.Parent = Part132
- Sound134.SoundId = "http://www.roblox.com/Asset/?ID=12135982"
- Sound134.Volume = 0.69999998807907
- Part135.Name = "Handle"
- Part135.Parent = Model107
- Part135.BrickColor = BrickColor.new("New Yeller")
- Part135.Reflectance = 0.40000000596046
- Part135.Rotation = Vector3.new(-70.1500015, -0.429999977, -82.4000015)
- Part135.CanCollide = false
- Part135.FormFactor = Enum.FormFactor.Plate
- Part135.Size = Vector3.new(0.574370921, 0.459496737, 1.72311282)
- Part135.CFrame = CFrame.new(-18.5763283, 2.6864624, -9.63768768, 0.132262021, 0.991186023, -0.00755779631, -0.33555603, 0.0519479513, 0.940586865, 0.93268913, -0.121867858, 0.339469165)
- Part135.BottomSurface = Enum.SurfaceType.Smooth
- Part135.TopSurface = Enum.SurfaceType.Smooth
- Part135.Color = Color3.new(1, 1, 0)
- Part135.Position = Vector3.new(-18.5763283, 2.6864624, -9.63768768)
- Part135.Orientation = Vector3.new(-70.1500015, -1.27999997, -81.1999969)
- Part135.Color = Color3.new(1, 1, 0)
- SpecialMesh136.Parent = Part135
- SpecialMesh136.MeshId = "http://www.roblox.com/asset/?id=16198309"
- SpecialMesh136.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- SpecialMesh136.MeshType = Enum.MeshType.FileMesh
- SpecialMesh136.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- Sound137.Parent = Part135
- Sound137.SoundId = "http://www.roblox.com/Asset/?ID=12135982"
- Sound137.Volume = 0.69999998807907
- Part138.Name = "Handle"
- Part138.Parent = Model107
- Part138.BrickColor = BrickColor.new("New Yeller")
- Part138.Reflectance = 0.40000000596046
- Part138.Rotation = Vector3.new(-105.049995, -2.16999984, -83.8199997)
- Part138.CanCollide = false
- Part138.FormFactor = Enum.FormFactor.Plate
- Part138.Size = Vector3.new(0.574370921, 0.459496737, 1.72311282)
- Part138.CFrame = CFrame.new(-18.7206936, 6.15583944, -9.33232594, 0.107626013, 0.993471861, -0.0378205441, 0.262156039, 0.0083360346, 0.964989543, 0.959005117, -0.113772862, -0.259547472)
- Part138.BottomSurface = Enum.SurfaceType.Smooth
- Part138.TopSurface = Enum.SurfaceType.Smooth
- Part138.Color = Color3.new(1, 1, 0)
- Part138.Position = Vector3.new(-18.7206936, 6.15583944, -9.33232594)
- Part138.Orientation = Vector3.new(-74.7900009, -171.709991, 88.1800003)
- Part138.Color = Color3.new(1, 1, 0)
- SpecialMesh139.Parent = Part138
- SpecialMesh139.MeshId = "http://www.roblox.com/asset/?id=16198309"
- SpecialMesh139.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- SpecialMesh139.MeshType = Enum.MeshType.FileMesh
- SpecialMesh139.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- Sound140.Parent = Part138
- Sound140.SoundId = "http://www.roblox.com/Asset/?ID=12135982"
- Sound140.Volume = 0.69999998807907
- Part141.Name = "Handle"
- Part141.Parent = Model107
- Part141.BrickColor = BrickColor.new("New Yeller")
- Part141.Reflectance = 0.40000000596046
- Part141.Rotation = Vector3.new(-91.1399994, -0.610000014, -83.4799957)
- Part141.CanCollide = false
- Part141.FormFactor = Enum.FormFactor.Plate
- Part141.Size = Vector3.new(0.574370921, 0.459496737, 1.72311282)
- Part141.CFrame = CFrame.new(-18.6945724, 4.94266462, -9.19313622, 0.113576002, 0.993472219, -0.0106554423, 0.0209209993, 0.00833099987, 0.999746501, 0.993309021, -0.113770127, -0.0198382288)
- Part141.BottomSurface = Enum.SurfaceType.Smooth
- Part141.TopSurface = Enum.SurfaceType.Smooth
- Part141.Color = Color3.new(1, 1, 0)
- Part141.Position = Vector3.new(-18.6945724, 4.94266462, -9.19313622)
- Part141.Orientation = Vector3.new(-88.7099991, -151.759995, 68.2900009)
- Part141.Color = Color3.new(1, 1, 0)
- SpecialMesh142.Parent = Part141
- SpecialMesh142.MeshId = "http://www.roblox.com/asset/?id=16198309"
- SpecialMesh142.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- SpecialMesh142.MeshType = Enum.MeshType.FileMesh
- SpecialMesh142.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- Sound143.Parent = Part141
- Sound143.SoundId = "http://www.roblox.com/Asset/?ID=12135982"
- Sound143.Volume = 0.69999998807907
- Part144.Name = "Handle"
- Part144.Parent = Model107
- Part144.BrickColor = BrickColor.new("New Yeller")
- Part144.Reflectance = 0.40000000596046
- Part144.Rotation = Vector3.new(0, 0, -87)
- Part144.CanCollide = false
- Part144.FormFactor = Enum.FormFactor.Plate
- Part144.Size = Vector3.new(0.574370921, 0.459496737, 1.72311282)
- Part144.CFrame = CFrame.new(-18.5545349, 1.29423642, -14.1534357, 0.0523380265, 0.998629451, 0, -0.998629451, 0.0523380265, 0, 0, 0, 1)
- Part144.BottomSurface = Enum.SurfaceType.Smooth
- Part144.TopSurface = Enum.SurfaceType.Smooth
- Part144.Color = Color3.new(1, 1, 0)
- Part144.Position = Vector3.new(-18.5545349, 1.29423642, -14.1534357)
- Part144.Orientation = Vector3.new(0, 0, -87)
- Part144.Color = Color3.new(1, 1, 0)
- SpecialMesh145.Parent = Part144
- SpecialMesh145.MeshId = "http://www.roblox.com/asset/?id=16198309"
- SpecialMesh145.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- SpecialMesh145.MeshType = Enum.MeshType.FileMesh
- SpecialMesh145.Scale = Vector3.new(0.689245105, 0.689245105, 0.689245105)
- Sound146.Parent = Part144
- Sound146.SoundId = "http://www.roblox.com/Asset/?ID=12135982"
- Sound146.Volume = 0.69999998807907
- BoolValue147.Name = "Equip"
- BoolValue147.Parent = Tool0
- LocalScript148.Name = "BindKeys"
- LocalScript148.Parent = Tool0
- LocalScript148.Disabled = true
- table.insert(cors,sandbox(LocalScript148,function()
- local plr = game.Players.LocalPlayer
- local chr = plr.Character
- local event = script.Parent.KeyPressed
- local event2 = script.Parent.MiscFuncs
- local equip = script.Parent.Equip
- local m = plr:GetMouse()
- local mus = script.Parent.Handle.Mus
- m.KeyDown:connect(function(k)
- if equip.Value then
- if k == 'e' then
- event:FireServer(k,2)
- elseif k == 'q' then
- event:FireServer(k,10)
- elseif k == 'tr' then
- event:FireServer(k,5)
- end
- end
- end)
- plr.Chatted:connect(function(msg)
- if equip.Value then
- local mes = string.lower(msg)
- if string.sub(mes,1,2) == 'm;' then
- local input = string.sub(mes,3)
- if input ~= "" then
- event2:FireServer('musid',tonumber(input))
- event2:FireServer('box','Now playing ' .. tostring(game:GetService('MarketplaceService'):GetProductInfo(input).Name))
- else
- event2:FireServer('togglemus')
- end
- elseif string.sub(mes,1,2) == 'v;' then
- local input = string.sub(mes,3)
- if input ~= "" then
- event2:FireServer('vol',tonumber(input))
- else
- event2:FireServer('resetvol')
- end
- elseif string.sub(mes,1,3) == 'pi;' then
- local input = string.sub(mes,4)
- if input ~= "" then
- event2:FireServer('pit',tonumber(input))
- else
- event2:FireServer('resetpit')
- end
- elseif string.sub(mes,1,3) == 'ps;' then
- local input = string.sub(mes,4)
- if input ~= "" then
- event2:FireServer('psh',tonumber(input))
- else
- event2:FireServer('togglepsh')
- end
- elseif string.sub(mes,1,2) == 'd;' then
- local input = string.sub(mes,3)
- if input ~= "" then
- event2:FireServer('dis',tonumber(input))
- else
- event2:FireServer('toggledis')
- end
- end
- end
- end)
- end))
- Script149.Name = "qPerfectionWeld"
- Script149.Parent = Tool0
- table.insert(cors,sandbox(Script149,function()
- -- Created by Quenty (@Quenty, follow me on twitter).
- -- Should work with only ONE copy, seamlessly with weapons, trains, et cetera.
- -- Parts should be ANCHORED before use. It will, however, store relatives values and so when tools are reparented, it'll fix them.
- --[[ INSTRUCTIONS
- - Place in the model
- - Make sure model is anchored
- - That's it. It will weld the model and all children.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- This script is designed to be used is a regular script. In a local script it will weld, but it will not attempt to handle ancestory changes.
- ]]
- --[[ DOCUMENTATION
- - Will work in tools. If ran more than once it will not create more than one weld. This is especially useful for tools that are dropped and then picked up again.
- - Will work in PBS servers
- - Will work as long as it starts out with the part anchored
- - Stores the relative CFrame as a CFrame value
- - Takes careful measure to reduce lag by not having a joint set off or affected by the parts offset from origin
- - Utilizes a recursive algorith to find all parts in the model
- - Will reweld on script reparent if the script is initially parented to a tool.
- - Welds as fast as possible
- ]]
- -- qPerfectionWeld.lua
- -- Created 10/6/2014
- -- Author: Quenty
- -- Version 1.0.3
- -- Updated 10/14/2014 - Updated to 1.0.1
- --- Bug fix with existing ROBLOX welds ? Repro by asimo3089
- -- Updated 10/14/2014 - Updated to 1.0.2
- --- Fixed bug fix.
- -- Updated 10/14/2014 - Updated to 1.0.3
- --- Now handles joints semi-acceptably. May be rather hacky with some joints. :/
- local NEVER_BREAK_JOINTS = false -- If you set this to true it will never break joints (this can create some welding issues, but can save stuff like hinges).
- local function CallOnChildren(Instance, FunctionToCall)
- -- Calls a function on each of the children of a certain object, using recursion.
- FunctionToCall(Instance)
- for _, Child in next, Instance:GetChildren() do
- CallOnChildren(Child, FunctionToCall)
- end
- end
- local function GetNearestParent(Instance, ClassName)
- -- Returns the nearest parent of a certain class, or returns nil
- local Ancestor = Instance
- repeat
- Ancestor = Ancestor.Parent
- if Ancestor == nil then
- return nil
- end
- until Ancestor:IsA(ClassName)
- return Ancestor
- end
- local function GetBricks(StartInstance)
- local List = {}
- -- if StartInstance:IsA("BasePart") then
- -- List[#List+1] = StartInstance
- -- end
- CallOnChildren(StartInstance, function(Item)
- if Item:IsA("BasePart") then
- List[#List+1] = Item;
- end
- end)
- return List
- end
- local function Modify(Instance, Values)
- -- Modifies an Instance by using a table.
- assert(type(Values) == "table", "Values is not a table");
- for Index, Value in next, Values do
- if type(Index) == "number" then
- Value.Parent = Instance
- else
- Instance[Index] = Value
- end
- end
- return Instance
- end
- local function Make(ClassType, Properties)
- -- Using a syntax hack to create a nice way to Make new items.
- return Modify(Instance.new(ClassType), Properties)
- end
- local Surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
- local HingSurfaces = {"Hinge", "Motor", "SteppingMotor"}
- local function HasWheelJoint(Part)
- for _, SurfaceName in pairs(Surfaces) do
- for _, HingSurfaceName in pairs(HingSurfaces) do
- if Part[SurfaceName].Name == HingSurfaceName then
- return true
- end
- end
- end
- return false
- end
- local function ShouldBreakJoints(Part)
- --- We do not want to break joints of wheels/hinges. This takes the utmost care to not do this. There are
- -- definitely some edge cases.
- if NEVER_BREAK_JOINTS then
- return false
- end
- if HasWheelJoint(Part) then
- return false
- end
- local Connected = Part:GetConnectedParts()
- if #Connected == 1 then
- return false
- end
- for _, Item in pairs(Connected) do
- if HasWheelJoint(Item) then
- return false
- elseif not Item:IsDescendantOf(script.Parent) then
- return false
- end
- end
- return true
- end
- local function WeldTogether(Part0, Part1, JointType, WeldParent)
- --- Weld's 2 parts together
- -- @param Part0 The first part
- -- @param Part1 The second part (Dependent part most of the time).
- -- @param [JointType] The type of joint. Defaults to weld.
- -- @param [WeldParent] Parent of the weld, Defaults to Part0 (so GC is better).
- -- @return The weld created.
- JointType = JointType or "Weld"
- local RelativeValue = Part1:FindFirstChild("qRelativeCFrameWeldValue")
- local NewWeld = Part1:FindFirstChild("qCFrameWeldThingy") or Instance.new(JointType)
- Modify(NewWeld, {
- Name = "qCFrameWeldThingy";
- Part0 = Part0;
- Part1 = Part1;
- C0 = CFrame.new();--Part0.CFrame:inverse();
- C1 = RelativeValue and RelativeValue.Value or Part1.CFrame:toObjectSpace(Part0.CFrame); --Part1.CFrame:inverse() * Part0.CFrame;-- Part1.CFrame:inverse();
- Parent = Part1;
- })
- if not RelativeValue then
- RelativeValue = Make("CFrameValue", {
- Parent = Part1;
- Name = "qRelativeCFrameWeldValue";
- Archivable = true;
- Value = NewWeld.C1;
- })
- end
- return NewWeld
- end
- local function WeldParts(Parts, MainPart, JointType, DoNotUnanchor)
- -- @param Parts The Parts to weld. Should be anchored to prevent really horrible results.
- -- @param MainPart The part to weld the model to (can be in the model).
- -- @param [JointType] The type of joint. Defaults to weld.
- -- @parm DoNotUnanchor Boolean, if true, will not unachor the model after cmopletion.
- for _, Part in pairs(Parts) do
- if ShouldBreakJoints(Part) then
- Part:BreakJoints()
- end
- end
- for _, Part in pairs(Parts) do
- if Part ~= MainPart then
- WeldTogether(MainPart, Part, JointType, MainPart)
- end
- end
- if not DoNotUnanchor then
- for _, Part in pairs(Parts) do
- Part.Anchored = false
- end
- MainPart.Anchored = false
- end
- end
- local function PerfectionWeld()
- local Tool = GetNearestParent(script, "Tool")
- local Parts = GetBricks(script.Parent)
- local PrimaryPart = Tool and Tool:FindFirstChild("Handle") and Tool.Handle:IsA("BasePart") and Tool.Handle or script.Parent:IsA("Model") and script.Parent.PrimaryPart or Parts[1]
- if PrimaryPart then
- WeldParts(Parts, PrimaryPart, "Weld", false)
- else
- warn("qWeld - Unable to weld part")
- end
- return Tool
- end
- local Tool = PerfectionWeld()
- if Tool and script.ClassName == "Script" then
- --- Don't bother with local scripts
- script.Parent.AncestryChanged:connect(function()
- PerfectionWeld()
- end)
- end
- -- Created by Quenty (@Quenty, follow me on twitter).
- end))
- Animation150.Name = "Swing2"
- Animation150.Parent = Tool0
- Animation150.AnimationId = "rbxassetid://218508052"
- LocalScript151.Name = "Client"
- LocalScript151.Parent = Tool0
- table.insert(cors,sandbox(LocalScript151,function()
- local Player = game:GetService("Players").LocalPlayer
- local UIS = game:GetService("UserInputService")
- local Mouse = Player:GetMouse()
- local Tool = script.Parent
- local Remote = Tool:WaitForChild("Remote")
- local Tracks = {}
- local InputType = Enum.UserInputType
- local BeganConnection, EndedConnection
- function playAnimation(animName, ...)
- if Tracks[animName] then
- Tracks[animName]:Play()
- else
- local anim = Tool:FindFirstChild(animName)
- if anim and Tool.Parent and Tool.Parent:FindFirstChild("Humanoid") then
- Tracks[animName] = Tool.Parent.Humanoid:LoadAnimation(anim)
- playAnimation(animName, ...)
- end
- end
- end
- function stopAnimation(animName)
- if Tracks[animName] then
- Tracks[animName]:Stop()
- end
- end
- function inputBegan(input)
- if input.UserInputType == InputType.MouseButton1 then
- Remote:FireServer("LeftDown")
- end
- end
- function inputEnded(input)
- if input.UserInputType == InputType.MouseButton1 then
- Remote:FireServer("LeftUp")
- end
- end
- function onRemote(func, ...)
- if func == "PlayAnimation" then
- playAnimation(...)
- elseif func == "StopAnimation" then
- stopAnimation(...)
- end
- end
- function onEquip()
- BeganConnection = UIS.InputBegan:connect(inputBegan)
- EndedConnection = UIS.InputEnded:connect(inputEnded)
- end
- function onUnequip()
- if BeganConnection then
- BeganConnection:disconnect()
- BeganConnection = nil
- end
- if EndedConnection then
- EndedConnection:disconnect()
- EndedConnection = nil
- end
- end
- Tool.Equipped:connect(onEquip)
- Tool.Unequipped:connect(onUnequip)
- Remote.OnClientEvent:connect(onRemote)
- end))
- RemoteEvent152.Name = "KeyPressed"
- RemoteEvent152.Parent = Tool0
- RemoteEvent153.Name = "MiscFuncs"
- RemoteEvent153.Parent = Tool0
- RemoteEvent154.Name = "Remote"
- RemoteEvent154.Parent = Tool0
- Animation155.Name = "R15Swing1"
- Animation155.Parent = Tool0
- Animation155.AnimationId = "rbxassetid://846744780"
- Animation156.Name = "R15Swing2"
- Animation156.Parent = Tool0
- Animation156.AnimationId = "rbxassetid://846754447"
- Script157.Name = "SwordScript"
- Script157.Parent = Tool0
- table.insert(cors,sandbox(Script157,function()
- r = game:service("RunService")
- local damage =0
- sword = script.Parent.Handle
- Tool = script.Parent
- originalgrip=script.Parent.og
- sp=script.Parent
- function spinsword(spintime)
- delay(0,function()
- local startspin=tick()
- local endspin=startspin+spintime
- while tick()<endspin do
- sp.Grip=originalgrip.Value*CFrame.Angles(math.pi*2*((tick()-startspin)/spintime),0,0)
- wait()
- end
- sp.Grip=originalgrip.Value
- end)
- end
- local damages,values,sounds = {30,45,65},{Tool.PlaySlash,Tool.PlayThrust,Tool.PlayOverhead},{Tool.Handle.SlashSound,Tool.Handle.OverheadSound,Tool.Handle.LungeSound}
- local enabledToDamage = true
- function blow(hit)
- if enabledToDamage == false then return end
- enabledToDamage = false
- if (hit.Parent == nil) then enabledToDamage = true return end -- happens when bullet hits sword
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- local vCharacter = Tool.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
- if humanoid~=nil and humanoid ~= hum and hum ~= nil then
- -- final check, make sure sword is in-hand
- local right_arm = vCharacter:FindFirstChild("Right Arm")
- if (right_arm ~= nil) then
- local joint = right_arm:FindFirstChild("RightGrip")
- if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
- tagHumanoid(humanoid, vPlayer)
- humanoid:TakeDamage(damage)
- humanoid.Died:connect(function()
- if debounce==nil then
- debounce=true
- M=Instance.new('Model')
- M.Name=humanoid.Parent.Name.."'s Body"
- h=Instance.new('Humanoid')
- h.Health=0
- h.DisplayDistanceType=Enum.HumanoidDisplayDistanceType.None
- h.Parent=M
- T1=humanoid.Parent.Torso:Clone()
- T1.Velocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
- T1.Size=Vector3.new(2,1,1)
- T1.Material=Enum.Material.Neon
- T1.BrickColor=BrickColor.new('Light orange')
- T2=humanoid.Parent.Torso:Clone()
- T2.Material=Enum.Material.Neon
- T2.BrickColor=BrickColor.new('Light orange')
- T2.Size=Vector3.new(2,1,1)
- LA=humanoid.Parent['Left Arm']:Clone()
- LL=humanoid.Parent['Left Leg']:Clone()
- RA=humanoid.Parent['Right Arm']:Clone()
- RL=humanoid.Parent['Right Leg']:Clone()
- H=humanoid.Parent['Head']:Clone()
- game.Debris:AddItem(humanoid.Parent, .02)
- game.Debris:AddItem(M,10)
- wait(.01)
- debounce=nil
- end
- function Weld(x,y)
- local W = Instance.new("Weld")
- W.Part0 = x
- W.Part1 = y
- local CJ = CFrame.new(x.Position)
- local C0 = x.CFrame:inverse()*CJ
- local C1 = y.CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = x
- end
- Weld(T1,LA)
- Weld(T1,RA)
- Weld(T1,H)
- Weld(T2,LL)
- Weld(T2,RL)
- T1.Parent=M
- T1.CFrame=T1.CFrame+Vector3.new(0,2,0)
- T2.Parent=M
- LL.Parent=M
- LA.Parent=M
- RL.Parent=M
- RA.Parent=M
- H.Parent=M
- ch=humanoid.Parent:GetChildren()
- for i, v in pairs(ch) do
- if v.ClassName=='CharacterMesh' and v.BodyPart~=Enum.BodyPart.Torso then
- cmc=v:Clone()
- cmc.Parent=M
- elseif v.ClassName=='Hat' then
- htc=v.Handle:Clone()
- Weld(htc, H)
- htc.Parent=M
- end
- end
- M.Parent=workspace
- end)
- untagHumanoid(humanoid)
- else
- enabledToDamage = true
- end
- else
- enabledToDamage = true
- end
- else
- enabledToDamage = true
- end
- end
- function tagHumanoid(humanoid, player)
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = player
- creator_tag.Name = "creator"
- creator_tag.Parent = humanoid
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- function attack()
- damage = slash_damage
- script.Parent.Handle.SlashSound:Play()
- script.Parent.PlaySlash.Value = not script.Parent.PlaySlash.Value
- end
- function lunge()
- damage = lunge_damage
- script.Parent.Handle.LungeSound:Play()
- script.Parent.PlayOverhead.Value = not script.Parent.PlayOverhead.Value
- force = Instance.new("BodyVelocity")
- force.velocity = Vector3.new(0,10,0) --Tool.Parent.Torso.CFrame.lookVector * 80
- force.Parent = Tool.Parent.Torso
- wait(.5)
- force.Parent = nil
- wait(.5)
- damage = slash_damage
- end
- Tool.Enabled = true
- local last_attack = 0
- local status = 0
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.Enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- t = r.Stepped:wait()
- if (t - last_attack < 1.5) then
- rndm=math.random(1,3)
- if rndm==1 then
- status=1
- elseif rndm==2 then
- status=2
- elseif rndm==3 then
- status=3
- end
- values[status].Value = not values[status].Value
- damage = damages[status]
- sounds[status]:Play()
- enabledToDamage = true
- wait(0.5)
- enabledToDamage = false
- end
- last_attack = t
- Tool.Enabled = true
- end
- function onEquipped()
- wait(1)
- Tool.Handle.UnsheathSound:Play()
- end
- Tool.Equipped:connect(onEquipped)
- script.Parent.Activated:connect(onActivated)
- connection = script.Parent.HitBox.Touched:connect(blow)
- end))
- Script158.Name = "Server"
- Script158.Parent = Tool0
- table.insert(cors,sandbox(Script158,function()
- local Tool = script.Parent
- local Remote = Tool:WaitForChild("Remote")
- local Handle = Tool:WaitForChild("Handle")
- local Heartbeat = game:GetService("RunService").Heartbeat
- local FriendlyFire = false
- local LeftDown = false
- local AttackHoldTime = 0.5
- local AttackAble = true
- local AttackRestTime = 0.5
- local AttackWindupTime = 0.2
- local AttackDamaging = false
- local AttackWindow = 0.6
- local AttackVictims = {}
- local AttackDamage = 32
- local AttackProjectileSpeed = 128
- local AttackProjectileDamage = 0.5
- local AttackProjectileVictims = {}
- local Character = nil
- local Humanoid = nil
- --returns the wielding player of this tool
- function getPlayer()
- local char = Tool.Parent
- return game:GetService("Players"):GetPlayerFromCharacter(Character)
- end
- function AutoWeld(a, b, ModifiedCFrame)
- local weld = Instance.new("ManualWeld", a)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = a.CFrame:inverse() * b.CFrame
- a.Anchored = false
- b.Anchored = false
- if ModifiedCFrame then
- weld.C0 = ModifiedCFrame
- end
- return weld
- end
- --helpfully checks a table for a specific value
- function contains(t, v)
- for _, val in pairs(t) do
- if val == v then
- return true
- end
- end
- return false
- end
- --tags a human for the ROBLOX KO system
- function tagHuman(human)
- local tag = Instance.new("ObjectValue")
- tag.Value = getPlayer()
- tag.Name = "creator"
- tag.Parent = human
- game:GetService("Debris"):AddItem(tag)
- end
- --used by checkTeams
- function sameTeam(otherHuman)
- local player = getPlayer()
- local otherPlayer = game:GetService("Players"):GetPlayerFromCharacter(otherHuman.Parent)
- if player and otherPlayer then
- if player == otherPlayer then
- return true
- end
- if otherPlayer.Neutral then
- return false
- end
- return player.TeamColor == otherPlayer.TeamColor
- end
- return false
- end
- --use this to determine if you want this human to be harmed or not, returns boolean
- function checkTeams(otherHuman)
- return not (sameTeam(otherHuman) and not FriendlyFire)
- end
- function DeathMessage()
- spawn(function()
- local Phrases = {"PURISH", "You think you can beat me"}
- if not Character.Head:FindFirstChild("BillboardGui") then
- local GUI = Instance.new("BillboardGui",Character.Head) GUI.Size = UDim2.new(0,3000,0,30) GUI.LightInfluence = 0 GUI.StudsOffset = Vector3.new(0,1.65,0) GUI.AlwaysOnTop = true
- local TL = Instance.new("TextLabel",GUI) TL.Size = UDim2.new(1,0,1,0) TL.BorderSizePixel = 0 TL.BackgroundTransparency = 1 TL.TextStrokeColor3 = Color3.fromRGB(12,0,43) TL.TextStrokeTransparency = 0 TL.TextColor3 = Color3.new(0,0,0) TL.TextScaled = true TL.Text = Phrases[math.random(#Phrases)] TL.Font = "SciFi"
- wait(1.5)
- for i = 1,60 do
- wait()
- TL.TextTransparency = i/20
- TL.TextStrokeTransparency = (i-20)/40
- end
- GUI:Destroy()
- end
- end)
- end
- function onHandleTouched(part)
- if not AttackDamaging then return end
- if part:IsDescendantOf(Tool.Parent) then return end
- if part.Parent and part.Parent:FindFirstChild("Humanoid") then
- local human = part.Parent.Humanoid
- if checkTeams(human) and not contains(AttackVictims, human) then
- tagHuman(human)
- table.insert(AttackVictims, human)
- human.Health = 0
- DeathMessage()
- end
- end
- end
- function onProjectileTouched(part)
- if part:IsDescendantOf(Tool.Parent) then return end
- if part.Parent and part.Parent:FindFirstChild("Humanoid") then
- local human = part.Parent.Humanoid
- if checkTeams(human) and not contains(AttackProjectileVictims, human) then
- tagHuman(human)
- table.insert(AttackProjectileVictims, human)
- human.Health = 0
- DeathMessage()
- end
- end
- end
- function onLeftHold()
- if not SCooldown then
- print("Hold")
- if Humanoid and Humanoid.RigType == Enum.HumanoidRigType.R15 then
- Remote:FireClient(getPlayer(), "PlayAnimation", "R15Swing2")
- else
- Remote:FireClient(getPlayer(), "PlayAnimation", "Swing2")
- end
- delay(0.1, function()
- Handle.Swing.Pitch = 1
- Handle.Swing:Play()
- delay(0.4, function()
- Handle.Swing.Pitch = 1.25
- Handle.Swing:Play()
- delay(0.3, function()
- Handle.Swing.Pitch = 1.75
- Handle.Swing:Play()
- Handle.Shot.Pitch = 2
- end)
- end)
- end)
- wait(0.8)
- local root = Tool.Parent:FindFirstChild("HumanoidRootPart")
- if root then
- for i = 1,3 do
- local slash = Instance.new("Part")
- slash.Material = "Neon"
- slash.Shape = "Ball"
- slash.CanCollide = false
- slash.FormFactor = "Custom"
- slash.TopSurface = "Smooth"
- slash.BottomSurface = "Smooth"
- slash.Color = Color3.fromRGB(0,255,255)
- slash.Size = Vector3.new(2,2,2)
- slash.CFrame = root.CFrame * CFrame.new(0, 0, 4) * CFrame.Angles(0, 0, math.pi/2)
- TouchedFunc = slash.Touched:connect(onProjectileTouched)
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(4, 19, 1e9)
- bv.velocity = root.CFrame.lookVector * AttackProjectileSpeed
- bv.Parent = slash
- local light = Instance.new("PointLight")
- light.Range = 16
- light.Color = slash.Color
- light.Parent = slash
- slash.Parent = workspace
- spawn(function()
- local Proj = slash
- local TFunc = TouchedFunc
- local Light = light
- wait(1)
- TFunc:disconnect()
- Proj.Transparency = 1
- Proj.Anchored = true
- local Expl = Instance.new("Explosion",workspace) Expl.Position = Proj.Position
- Light.Enabled = false
- game:GetService("Debris"):AddItem(Proj,5)
- end)
- AttackProjectileVictims = {}
- spawn(function()
- local S = Handle.Shot:Clone()
- S.Parent = Handle
- S.Pitch = 1
- wait(0.5)
- S.Pitch = 2
- S:Stop()
- S:Play()
- game.Debris:AddItem(S,5)
- end)
- wait(0.25)
- end
- wait()
- end
- end
- end
- function onLeftDown()
- if not SCooldown then
- if not AttackAble then return end
- AttackAble = false
- if Humanoid and Humanoid.RigType == Enum.HumanoidRigType.R15 then
- Remote:FireClient(getPlayer(), "PlayAnimation", "R15Swing1")
- else
- Remote:FireClient(getPlayer(), "PlayAnimation", "Swing1")
- end
- delay(0.2, function()
- Handle.Swing.Pitch = 1
- Handle.Swing:Play()
- end)
- delay(AttackWindupTime, function()
- AttackVictims = {}
- AttackDamaging = true
- delay(AttackWindow, function()
- AttackDamaging = false
- end)
- end)
- LeftDown = true
- local t = 0
- while LeftDown do
- t = t + Heartbeat:wait()
- if t > AttackHoldTime then
- onLeftHold()
- break
- end
- end
- delay(AttackRestTime, function()
- AttackAble = true
- end)
- end
- end
- function onLeftUp()
- LeftDown = false
- end
- function onRemote(player, func, ...)
- if player ~= getPlayer() then return end
- if func == "LeftDown" then
- onLeftDown(...)
- elseif func == "LeftUp" then
- onLeftUp(...)
- end
- end
- SCooldown = false
- script.Parent.KeyPressed.OnServerEvent:connect(function(p,k,cd) --Detects keypresses.
- if not SCooldown and AttackAble then
- SCooldown = true
- delay(cd,function()
- SCooldown = false
- end)
- if k == 'e' then
- if Humanoid and Humanoid.RigType == Enum.HumanoidRigType.R15 then
- Remote:FireClient(getPlayer(), "PlayAnimation", "R15Swing2")
- else
- Remote:FireClient(getPlayer(), "PlayAnimation", "Swing2")
- end
- delay(0.1, function()
- Handle.Swing.Pitch = 1
- Handle.Swing:Play()
- delay(0.4, function()
- Handle.Swing.Pitch = 1.75
- Handle.Swing:Play()
- delay(0.3, function()
- Handle.Swing.Pitch = 2.75
- Handle.Swing:Play()
- Handle.Shot.Pitch = 2
- end)
- end)
- end)
- wait(0.8)
- local root = Tool.Parent:FindFirstChild("HumanoidRootPart")
- if root then
- for i = 1,14 do
- for i = 1,12 do
- local slash = Instance.new("Part")
- slash.Material = "Neon"
- slash.Shape = "Cylinder"
- slash.CanCollide = false
- slash.FormFactor = "Custom"
- slash.TopSurface = "Smooth"
- slash.BottomSurface = "Smooth"
- slash.Color = Color3.fromRGB(21,0,0)
- slash.Size = Vector3.new(2,2,2)
- slash.CFrame = root.CFrame * CFrame.new(-3 + ((i-1)*3), 0, -3) * CFrame.Angles(0, 0, math.pi/2)
- TouchedFunc = slash.Touched:connect(onProjectileTouched)
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = root.CFrame.lookVector * AttackProjectileSpeed * 2
- bv.Parent = slash
- local light = Instance.new("PointLight")
- light.Range = 60
- light.Color = slash.Color
- light.Parent = slash
- slash.Parent = workspace
- spawn(function()
- local Proj = slash
- local TFunc = TouchedFunc
- local Light = light
- wait(0.6)
- TFunc:disconnect()
- Proj.Transparency = 1
- Proj.Anchored = true
- local Expl = Instance.new("Explosion",workspace) Expl.Position = Proj.Position
- Light.Enabled = false
- game:GetService("Debris"):AddItem(Proj,5)
- end)
- AttackProjectileVictims = {}
- spawn(function()
- local S = Handle.Shot:Clone()
- S.Parent = Handle
- S.Pitch = 1,0.5,2,4
- S:Stop()
- S:Play()
- game.Debris:AddItem(S,5)
- end)
- end
- wait(0.08)
- end
- wait()
- end
- elseif k == 'q' then
- Character.Humanoid.WalkSpeed = 0
- for i = 1,23 do
- wait()
- Handle.Parent.GripUp = Handle.Parent.GripUp + Vector3.new(i/1,1,1)
- end
- local BAV = Instance.new("BodyAngularVelocity",Handle)
- BAV.MaxTorque = Vector3.new(1,1,1)
- BAV.AngularVelocity = Vector3.new(2,2,2)
- wait(0.1)
- Handle.Engine:Play()
- for i = 1,3 do
- wait()
- BAV.AngularVelocity = BAV.AngularVelocity + Vector3.new(2,1,2)
- Handle.Engine.PlaybackSpeed = 1 + (4 * i/40)
- end
- wait(0.1)
- local root = Tool.Parent:FindFirstChild("HumanoidRootPart")
- if root then
- for i = 1,1 do
- local slash = Instance.new("Part")
- slash.Material = "Neon"
- slash.Shape = "Ball"
- slash.CanCollide = false
- slash.FormFactor = "Custom"
- slash.TopSurface = "Smooth"
- slash.BottomSurface = "Smooth"
- slash.Color = Color3.fromRGB(0,255,255)
- slash.Size = Vector3.new(2,2,2)
- slash.CFrame = root.CFrame * CFrame.new(0, 0, -3) * CFrame.Angles(5, 0, math.pi/2)
- TouchedFunc = slash.Touched:connect(onProjectileTouched)
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9,1e9,1e9)
- bv.velocity = root.CFrame.lookVector * AttackProjectileSpeed * 3
- bv.Parent = slash
- local spark = Instance.new("Fire")
- spark.Color = slash.Color
- spark.SecondaryColor = spark.Color
- spark.Parent = slash
- local light = Instance.new("PointLight")
- light.Range = 16
- light.Color = slash.Color
- light.Parent = slash
- slash.Parent = workspace
- spawn(function()
- local Proj = slash
- local Fire = spark
- local Att1 = Instance.new("Attachment",Proj) Att1.Position = Vector3.new(Proj.Size.Y/2,0,0)
- local Att2 = Instance.new("Attachment",Proj) Att2.Position = Vector3.new(-Proj.Size.Y/2,0,0)
- local Trail = Instance.new("Trail",Proj)
- local TFunc = TouchedFunc
- Trail.Attachment0 = Att1
- Trail.Attachment1 = Att2
- Trail.Color = ColorSequence.new(Color3.fromRGB(127,0,255),Color3.fromRGB(0,255,255))
- Trail.Transparency = NumberSequence.new(0,1)
- Trail.LightEmission = 1
- Trail.FaceCamera = true
- Trail.Lifetime = 1
- Trail.MinLength = 0
- local Light = light
- wait(0.6)
- TFunc:disconnect()
- Proj.Transparency = 1
- Proj.Anchored = true
- local Expl = Instance.new("Explosion",workspace) Expl.Position = Proj.Position
- Expl.BlastPressure = 120000
- Expl.BlastRadius = 200
- Fire.Enabled = false
- Light.Enabled = false
- Trail.Enabled = false
- game:GetService("Debris"):AddItem(Proj,5)
- end)
- AttackProjectileVictims = {}
- spawn(function()
- local S = Handle.Shot:Clone()
- S.Parent = Handle
- S.Pitch = 0
- S:Stop()
- S:Play()
- game.Debris:AddItem(S,5)
- end)
- wait()
- end
- wait()
- end
- for i = 1,40 do
- wait()
- BAV.AngularVelocity = BAV.AngularVelocity - Vector3.new(0,0.8,0)
- Handle.Engine.PlaybackSpeed = 5 - (4 * i/40)
- end
- wait(0.5)
- Handle.Engine:Stop()
- BAV:Destroy()
- Character.Humanoid.WalkSpeed = 16
- Handle.Parent.GripPos = Vector3.new(0, -1, -0.1)
- Handle.Parent.GripRight = Vector3.new(-1, 0, 0)
- Handle.Parent.GripUp = Vector3.new(0, 0.01, -0.1)
- Handle.Parent.GripForward = Vector3.new(0, 0.1, 0.01)
- elseif k=='t' then
- Character.Humanoid.WalkSpeed = 0
- local Particles = Handle.Storage.Footparticles:Clone()
- Particles.Parent = Character["Left Leg"]
- Particles.Enabled = true
- local Particles2 = Handle.Storage.Footparticles:Clone()
- Particles2.Parent = Character["Right Leg"]
- Particles2.Enabled = true
- local BP = Instance.new("BodyPosition",Character.Torso)
- BP.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- BP.Position = Character.Torso.Position
- spawn(function()
- S = Handle.Swing:Clone()
- S.Parent = Handle
- S.Pitch = 1
- S:Stop()
- S:Play()
- game.Debris:AddItem(S,5)
- end)
- for i = 1,10 do
- wait()
- S.Pitch = S.Pitch + 0.05
- BP.Position = BP.Position + Vector3.new(1,5,1)
- end
- for i = 1,5 do
- wait()
- Handle.Mesh.Scale = Handle.Mesh.Scale - Vector3.new(0.4,0.4,0.4)
- end
- Tool.GripPos = Vector3.new(0,1,.55)
- Tool.GripRight = Vector3.new(1,0,0)
- for i = 1,5 do
- wait()
- Handle.Mesh.Scale = Handle.Mesh.Scale - Vector3.new(0.4,0.4,0.4)
- end
- wait(.75)
- BP.D = 100
- BP.P = 100000
- spawn(function()
- S = Handle.Swing:Clone()
- S.Parent = Handle
- S.Pitch = 1.5
- S:Stop()
- S:Play()
- game.Debris:AddItem(S,5)
- end)
- for i = 1,10 do
- wait()
- S.Pitch = S.Pitch - 0.07
- BP.Position = BP.Position - Vector3.new(0,5,0)
- end
- local Shockwave = Instance.new("Part",workspace)
- Shockwave.Size = Vector3.new(25,25,25)
- Shockwave.CanCollide = false
- Shockwave.Anchored = true
- Shockwave.Transparency = 0
- Shockwave.CFrame = Character.Torso.CFrame - Vector3.new(0,2.5,0)
- Shockwave.Color = Color3.fromRGB(0,255,255)
- game.Debris:AddItem(Shockwave,5)
- TempCollision = Shockwave.Touched:connect(function(thing)
- if thing.Parent:FindFirstChildOfClass("Humanoid") and thing.Parent.Name ~= Tool.Parent.Name then
- thing.Parent.Humanoid.Health = 0
- DeathMessage()
- end
- end)
- local Mesh = Instance.new("SpecialMesh",Shockwave)
- Mesh.MeshId = 'rbxassetid://20329976'
- Mesh.Offset = Vector3.new(0,-5,0)
- Mesh.Scale = Shockwave.Size
- local Expl = Instance.new("Explosion",workspace) Expl.Position = Shockwave.Position - Vector3.new(0,5,0) Expl.BlastPressure = 0
- Particles.Enabled = false
- Particles2.Enabled = false
- game.Debris:AddItem(Particles,5)
- game.Debris:AddItem(Particles2,5)
- spawn(function()
- local S = Handle.Shot:Clone()
- S.Parent = Handle
- S.Pitch = .8
- S:Stop()
- S:Play()
- game.Debris:AddItem(S,5)
- end)
- spawn(function()
- for i = 1,20 do
- wait()
- Shockwave.Transparency = Shockwave.Transparency + 0.05
- Mesh.Scale = Mesh.Scale + Vector3.new(4,4*(10/25),4)
- end
- end)
- wait(0.1)
- TempCollision:disconnect()
- for i = 1,5 do
- wait()
- Handle.Mesh.Scale = Handle.Mesh.Scale + Vector3.new(0.4,0.4,0.4)
- end
- Tool.GripPos = Vector3.new(0,-1,-.55)
- Tool.GripRight = Vector3.new(-1,0,0)
- for i = 1,5 do
- wait()
- Handle.Mesh.Scale = Handle.Mesh.Scale + Vector3.new(0.4,0.4,0.4)
- end
- wait(0.5)
- BP:Destroy()
- Handle.Mesh.Scale = Vector3.new(2,2,2)
- Character.Humanoid.WalkSpeed = 16
- end
- end
- end)
- function box(text)
- if Character.Head:FindFirstChild("BillboardGui") then
- Character.Head.BillboardGui:Destroy()
- end
- local GUI = Instance.new("BillboardGui",Character.Head) GUI.Size = UDim2.new(0,3000,0,30) GUI.LightInfluence = 0 GUI.StudsOffset = Vector3.new(0,1.65,0) GUI.AlwaysOnTop = true
- local TL = Instance.new("TextLabel",GUI) TL.Size = UDim2.new(1,0,1,0) TL.BorderSizePixel = 0 TL.BackgroundTransparency = 1 TL.TextStrokeColor3 = Color3.fromRGB(127,0,255) TL.TextStrokeTransparency = 0 TL.TextColor3 = Color3.new(0,0,0) TL.TextScaled = true TL.Text = tostring(text) TL.Font = "SciFi"
- delay(1.5,function()
- for i = 1,60 do
- wait()
- TL.TextTransparency = i/20
- TL.TextStrokeTransparency = (i-20)/40
- end
- GUI:Destroy()
- end)
- end
- script.Parent.MiscFuncs.OnServerEvent:connect(function(p,t,a)
- if t=='box' then
- box(a)
- elseif t=='musid' then
- Handle.Mus.SoundId = 'rbxassetid://' .. tonumber(a)
- Handle.Mus:Play()
- elseif t=='togglemus' then
- if Handle.Mus.IsPlaying then
- Handle.Mus:Stop()
- else
- Handle.Mus:Play()
- end
- elseif t=='vol' then
- Handle.Mus.Volume = tonumber(a)
- elseif t=='resetvol' then
- Handle.Mus.Volume = 1
- elseif t=='pit' then
- Handle.Mus.PlaybackSpeed = tonumber(a)
- elseif t=='resetpit' then
- Handle.Mus.PlaybackSpeed = 1
- elseif t=='psh' then
- Handle.Mus.PS.Octave = tonumber(a)
- Handle.Mus.PS.Enabled = true
- elseif t=='togglepsh' then
- Handle.Mus.PS.Enabled = not Handle.Mus.PS.Enabled
- elseif t=='dis' then
- Handle.Mus.D.Level = tonumber(a)
- Handle.Mus.D.Enabled = true
- elseif t=='toggledis' then
- Handle.Mus.D.Enabled = not Handle.Mus.D.Enabled
- end
- end)
- Remote.OnServerEvent:connect(onRemote)
- Handle.Touched:connect(onHandleTouched)
- Tool.Equipped:Connect(function()
- Character = Tool.Parent
- Humanoid = Character:FindFirstChildOfClass("Humanoid")
- script.Parent.Equip.Value = true
- script.Parent.BindKeys.Disabled = false
- if BackScythe then
- BackScythe:Destroy()
- end
- end)
- Tool.Unequipped:Connect(function()
- script.Parent.Equip.Value = false
- Handle.Mus:Stop()
- BackScythe = Handle:Clone()
- BackScythe.Parent = Character
- BackScythe.Name = "BackScythe"
- BackScythe.CanCollide = false
- for _,v in pairs(BackScythe:GetChildren()) do
- if not v:IsA("SpecialMesh") then
- v:Destroy()
- end
- end
- BackScythe.Mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
- AutoWeld(BackScythe,Character.Torso,CFrame.new(.55,-.15,-.15) * CFrame.Angles(0,math.rad(-90),math.rad(-25)))
- Character = nil
- Humanoid = nil
- end)
- end))
- 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