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")
- Script1 = Instance.new("Script")
- Script2 = Instance.new("Script")
- Script3 = Instance.new("Script")
- Part4 = Instance.new("Part")
- BoolValue5 = Instance.new("BoolValue")
- Sparkles6 = Instance.new("Sparkles")
- LocalScript7 = Instance.new("LocalScript")
- BoolValue8 = Instance.new("BoolValue")
- BoolValue9 = Instance.new("BoolValue")
- StringValue10 = Instance.new("StringValue")
- Script11 = Instance.new("Script")
- IntValue12 = Instance.new("IntValue")
- LocalScript13 = Instance.new("LocalScript")
- Animation14 = Instance.new("Animation")
- Animation15 = Instance.new("Animation")
- Animation16 = Instance.new("Animation")
- Animation17 = Instance.new("Animation")
- Animation18 = Instance.new("Animation")
- ScreenGui19 = Instance.new("ScreenGui")
- Frame20 = Instance.new("Frame")
- Frame21 = Instance.new("Frame")
- Frame22 = Instance.new("Frame")
- TextLabel23 = Instance.new("TextLabel")
- Script24 = Instance.new("Script")
- Script25 = Instance.new("Script")
- Sound26 = Instance.new("Sound")
- Script27 = Instance.new("Script")
- Script28 = Instance.new("Script")
- Part29 = Instance.new("Part")
- CylinderMesh30 = Instance.new("CylinderMesh")
- Part31 = Instance.new("Part")
- CylinderMesh32 = Instance.new("CylinderMesh")
- PointLight33 = Instance.new("PointLight")
- Script34 = Instance.new("Script")
- Part35 = Instance.new("Part")
- CylinderMesh36 = Instance.new("CylinderMesh")
- PointLight37 = Instance.new("PointLight")
- Script38 = Instance.new("Script")
- Part39 = Instance.new("Part")
- CylinderMesh40 = Instance.new("CylinderMesh")
- Script41 = Instance.new("Script")
- Part42 = Instance.new("Part")
- CylinderMesh43 = Instance.new("CylinderMesh")
- Script44 = Instance.new("Script")
- Tool45 = Instance.new("Tool")
- Part46 = Instance.new("Part")
- SpecialMesh47 = Instance.new("SpecialMesh")
- Sound48 = Instance.new("Sound")
- Script49 = Instance.new("Script")
- LocalScript50 = Instance.new("LocalScript")
- Tool0.Name = "CeleSword"
- Tool0.Parent = mas
- Tool0.TextureId = "http://www.roblox.com/Asset?ID=203700782"
- Tool0.GripForward = Vector3.new(-1, -0, -0)
- Tool0.GripPos = Vector3.new(0, 0, -1.5)
- Tool0.GripRight = Vector3.new(0, 1, 0)
- Tool0.GripUp = Vector3.new(0, 0, 1)
- Script1.Name = "SwordScript"
- Script1.Parent = Tool0
- table.insert(cors,sandbox(Script1,function()
- -------- OMG HAX
- r = game:service("RunService")
- local damage = 50
- local slash_damage = 50
- local lunge_damage = 500
- sword = script.Parent.Handle
- Tool = script.Parent
- local SlashSound = Instance.new("Sound")
- SlashSound.SoundId = "http://www.roblox.com/Asset?ID=186112092"
- SlashSound.Parent = sword
- SlashSound.Volume = 1
- SlashSound.Pitch = .9
- local LungeSound = Instance.new("Sound")
- LungeSound.SoundId = "http://www.roblox.com/Asset?ID=186112092"
- LungeSound.Parent = sword
- LungeSound.Volume = 1
- LungeSound.Pitch = 1.6
- local UnsheathSound = Instance.new("Sound")
- UnsheathSound.SoundId = "http://www.roblox.com/Asset?ID=155827029"
- UnsheathSound.Parent = sword
- UnsheathSound.Volume = 1
- UnsheathSound.Pitch = 1.1
- function blow(hit)
- if (hit.Parent == nil) then 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)
- wait(1)
- untagHumanoid(humanoid)
- end
- end
- 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
- SlashSound:play()
- local MoveUpBro = script.ForceScript:Clone()
- MoveUpBro.Parent = script.Parent.Parent.Torso
- MoveUpBro.Disabled = false
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- wait(.15)
- end
- function lunge()
- damage = lunge_damage
- LungeSound:play()
- local spinForce = Instance.new("BodyAngularVelocity")
- spinForce.Name = "DDD"
- spinForce.P = 5000000
- spinForce.angularvelocity = Vector3.new(0,20,0)
- spinForce.maxTorque = Vector3.new(spinForce.P,spinForce.P,spinForce.P)
- spinForce.Parent = script.Parent.Parent.Torso
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Lunge"
- anim.Parent = Tool
- force = Instance.new("BodyVelocity")
- force.velocity = Vector3.new(0,0,0) --Tool.Parent.Torso.CFrame.lookVector * 80
- force.Parent = Tool.Parent.Torso
- wait(.25)
- swordOut()
- wait(.25)
- force.Parent = nil
- wait(.5)
- swordUp()
- spinForce:remove()
- damage = slash_damage
- end
- function swordUp()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- function swordOut()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- function swordAcross()
- -- parry
- end
- Tool.Enabled = true
- local last_attack = 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 < .3) then
- lunge()
- else
- attack()
- end
- last_attack = t
- --wait(.5)
- Tool.Enabled = true
- end
- function onEquipped()
- UnsheathSound:play()
- end
- script.Parent.Activated:connect(onActivated)
- script.Parent.Equipped:connect(onEquipped)
- connection = sword.Touched:connect(blow)
- end))
- Script2.Name = "ForceScript"
- Script2.Parent = Script1
- Script2.Disabled = true
- table.insert(cors,sandbox(Script2,function()
- while true do
- script.ForceClean.Disabled = false
- script.Parent.Velocity = script.Parent.CFrame.lookVector *180
- wait(0.01)
- end
- end))
- Script3.Name = "ForceClean"
- Script3.Parent = Script2
- Script3.Disabled = true
- table.insert(cors,sandbox(Script3,function()
- wait(.03)
- script.Parent:remove()
- end))
- Part4.Name = "Handle"
- Part4.Parent = Tool0
- Part4.BrickColor = BrickColor.new("Dark stone grey")
- Part4.Reflectance = 0.40000000596046
- Part4.Transparency = 1
- Part4.Rotation = Vector3.new(-137.110001, 0, -90)
- Part4.Anchored = true
- Part4.Locked = true
- Part4.FormFactor = Enum.FormFactor.Plate
- Part4.Size = Vector3.new(1, 0.800000012, 4)
- Part4.CFrame = CFrame.new(1.68899989, 14.6541491, 24.2300224, 1.17159353e-15, 1, 0, 0.73271209, 0, 0.680538595, 0.680538595, 0, -0.73271209)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part4.Position = Vector3.new(1.68899989, 14.6541491, 24.2300224)
- Part4.Orientation = Vector3.new(-42.8899994, 180, 90)
- Part4.Color = Color3.new(0.388235, 0.372549, 0.384314)
- BoolValue5.Name = "Blockable"
- BoolValue5.Parent = Part4
- BoolValue5.Value = true
- Sparkles6.Parent = Part4
- Sparkles6.Color = Color3.new(1.77083, 10.2, 0)
- Sparkles6.Enabled = false
- Sparkles6.SparkleColor = Color3.new(1, 1, 0)
- Sparkles6.Color = Color3.new(1.77083, 10.2, 0)
- LocalScript7.Name = "MouseIcon"
- LocalScript7.Parent = Tool0
- table.insert(cors,sandbox(LocalScript7,function()
- local MOUSE_ICON = 'rbxasset://textures/GunCursor.png'
- local RELOADING_ICON = 'rbxasset://textures/GunWaitCursor.png'
- local Tool = script.Parent
- local Mouse = nil
- local function UpdateIcon()
- if Mouse then
- Mouse.Icon = Tool.Enabled and MOUSE_ICON or RELOADING_ICON
- end
- end
- local function OnEquipped(mouse)
- Mouse = mouse
- UpdateIcon()
- end
- local function OnChanged(property)
- if property == 'Enabled' then
- UpdateIcon()
- end
- end
- Tool.Equipped:connect(OnEquipped)
- Tool.Changed:connect(OnChanged)
- end))
- BoolValue8.Name = "MouseDown"
- BoolValue8.Parent = Tool0
- BoolValue9.Name = "Reloading"
- BoolValue9.Parent = Tool0
- StringValue10.Name = "RunAnim"
- StringValue10.Parent = Tool0
- Script11.Parent = Tool0
- table.insert(cors,sandbox(Script11,function()
- --Made by Stickmasterluke
- sp=script.Parent
- damage=500 -- +/- 10%
- damagewindow=1 --after clicking, how long does the player have to hit the opponent wioth their weapon to deal damage
- swingrate=.15
- clashsounds={91154405,91154446,91154471,91154503,91154521}
- swooshsounds={54587039,165344304,197478029}
- hitsounds={131237241,137579113,91154954,159504677,133052541}
- anims={"Stab1","Stab2","LeftSlash"}
- ready=false
- equipped=false
- rate=1/30
- lastswing=0
- function waitfor(a,b)
- while a:FindFirstChild(b)==nil do
- a.ChildAdded:wait()
- end
- return a:FindFirstChild(b)
- end
- reloading=waitfor(sp,"Reloading")
- down=waitfor(sp,"MouseDown")
- runanim=waitfor(sp,"RunAnim")
- sparkles=waitfor(sp.Handle,"Sparkles")
- debris=game:getService("Debris")
- weaponhud=waitfor(sp,"WeaponHud")
- weaponnametag=waitfor(weaponhud,"WeaponName")
- guibar=waitfor(weaponhud,"Bar")
- guibarfill=waitfor(guibar,"Fill")
- weaponnametag.Text=sp.Name
- function runsound(id,volume)
- local volume=volume or 1
- local sound=Instance.new("Sound")
- sound.Looped=false
- sound.Pitch=1
- sound.SoundId="http://www.roblox.com/asset/?id="..tostring(id)
- sound.PlayOnRemove=false
- sound.Volume=volume
- debris:AddItem(sound,3)
- sound.Parent=sp.Handle
- wait()
- sound:Play()
- end
- function billboard(pos,text,time,color)
- local pos=pos or Vector3.new(0,0,0)
- local text=text or "Hello World!"
- local time=time or 2
- local color=color or Color3.new(1,0,0)
- local pos=pos+Vector3.new(0,5,0)
- local ep=Instance.new("Part")
- ep.Name="Effect"
- ep.formFactor="Custom"
- ep.Size=Vector3.new(0,0,0)
- ep.TopSurface="Smooth"
- ep.BottomSurface="Smooth"
- ep.CFrame=CFrame.new(pos)
- ep.Anchored=true
- ep.CanCollide=false
- ep.Transparency=1
- local bb=Instance.new("BillboardGui")
- bb.Size=UDim2.new(3,0,3,0)
- bb.Adornee=ep
- bb.Active=false
- local tl=Instance.new("TextLabel")
- tl.BackgroundTransparency=1
- tl.Size=UDim2.new(1,0,1,0)
- tl.Text=text
- tl.TextColor3=color
- tl.TextScaled=true
- tl.Font="ArialBold"
- tl.Visible=false
- tl.Parent=bb
- bb.Parent=ep
- debris:AddItem(ep,time+.1)
- ep.Parent=game.Workspace
- delay(0,function()
- local frames=time/rate
- for frame=1,frames do
- wait(rate)
- local percent=frame/frames
- ep.CFrame=CFrame.new(pos)+Vector3.new(0,5*percent,0)
- tl.TextTransparency=percent
- end
- ep:remove()
- end)
- end
- function makeblood(part)
- if part then
- local b=Instance.new("Part")
- b.BrickColor=BrickColor.new("Bright blue")
- b.formFactor="Custom"
- b.Transparency=math.random(0,1)*.5
- if math.random()<.5 then
- b.CanCollide=false
- else
- b.CanCollide=false
- end
- b.TopSurface="Smooth"
- b.BottomSurface="Smooth"
- b.Size=Vector3.new(.2*math.random(1,5),.2*math.random(1,5),.2*math.random(1,5))
- b.Velocity=part.Velocity+(Vector3.new((math.random()-.5),(math.random()-.5),(math.random()-.5))*30)
- b.RotVelocity=part.RotVelocity+(Vector3.new((math.random()-.5),(math.random()-.5),(math.random()-.5))*20)
- b.CFrame=part.CFrame*CFrame.new((math.random()-.5)*3,(math.random()-.5)*3,(math.random()-.5)*3)*CFrame.Angles(math.pi*2*math.random(),math.pi*2*math.random(),math.pi*2*math.random())
- debris:AddItem(b,math.random()*4)
- b.Parent=game.Workspace
- end
- end
- sp.Handle.Touched:connect(function(hit)
- if ready and equipped and hit and hit.Parent~=nil and hit:IsDescendantOf(sp.Parent)==false and string.lower(string.sub(hit.Name,1,6))~="effect" and (tick()-lastswing)<=damagewindow then
- if hit:FindFirstChild("CanBlock") and sp.Handle:FindFirstChild("Blockable") then
- ready=false
- runsound(clashsounds[math.random(1,#clashsounds)])
- sparkles.Enabled=true
- delay(.2,function()
- sparkles.Enabled=false
- end)
- billboard(sp.Handle.Position,"Block",2,Color3.new(1,1,0))
- end
- local mh=sp.Parent:FindFirstChild("Humanoid")
- local eh=hit.Parent:FindFirstChild("Humanoid")
- local ra=sp.Parent:FindFirstChild("Right Arm")
- local plr=game.Players:GetPlayerFromCharacter(sp.Parent)
- if mh and eh and eh~=mh and mh.Health>0 and eh.Health>0 and ra and plr~=nil then
- if not plr.Neutral then
- local eplr=game.Players:GetPlayerFromCharacter(eh.Parent)
- if eplr~=nil and eplr.Neutral==false and eplr.TeamColor==plr.TeamColor then
- return --No team killing
- end
- end
- ready=false
- for i,v in ipairs(eh:GetChildren()) do
- if v.Name=="creator" then
- v:remove()
- end
- end
- local creator=Instance.new("ObjectValue")
- creator.Name="creator"
- creator.Value=plr
- creator.Parent=eh
- debris:AddItem(creator,1)
- local localdamage=math.floor(damage*(.9+(math.random()*.2)))
- eh:TakeDamage(localdamage)
- billboard(hit.Position,"-"..tostring(localdamage))
- runsound(hitsounds[math.random(1,#hitsounds)])
- local bloodeffects=math.ceil(localdamage/10)
- for i=1,math.random(bloodeffects-1,bloodeffects+1) do
- --[[if math.random()<.5 then
- makeblood(sp.Handle)
- else]]
- makeblood(hit)
- --end
- end
- end
- end
- end)
- function Activate()
- if equipped and (tick()-lastswing)>=swingrate then
- ready=true
- reloading.Value=true
- runsound(swooshsounds[math.random(1,#swooshsounds)],.5)
- newanim=anims[math.random(1,#anims)]
- while newanim==runanim.Value do
- newanim=anims[math.random(1,#anims)]
- end
- runanim.Value=newanim
- lastswing=tick()
- updategui()
- wait(swingrate)
- reloading.Value=false
- --if down.Value then
- --Activate()
- --end
- end
- end
- down.Changed:connect(function()
- if down.Value then
- Activate()
- end
- end)
- function updategui()
- local swingpercent=math.min((tick()-lastswing)/swingrate,1)
- if swingpercent<.5 then --fade from red to yellow then to green
- guibarfill.BackgroundColor3=Color3.new(1,swingpercent*2,0)
- else
- guibarfill.BackgroundColor3=Color3.new(1-((swingpercent-.5)/.5),1,0)
- end
- guibarfill.Size=UDim2.new(swingpercent,0,1,0)
- end
- sp.Equipped:connect(function(mouse)
- lastswing=tick()
- updategui()
- reloading.Value=true
- ready=false
- equipped=true
- delay(0,function() --HAAB (Hacking around a bug)
- local plr=game.Players:GetPlayerFromCharacter(sp.Parent)
- if plr~=nil then
- local plrgui=plr:FindFirstChild("PlayerGui")
- if plrgui~=nil and weaponhud~=nil then
- weaponhud.Parent=plrgui
- while equipped do
- updategui()
- wait(999)--rate)
- end
- end
- end
- end)
- wait(swingrate)
- reloading.Value=false
- --if down.Value then
- --Activate()
- --end
- end)
- sp.Unequipped:connect(function()
- ready=false
- equipped=false
- delay(0,function() --HAAB
- weaponhud.Parent=sp
- end)
- end)
- end))
- IntValue12.Name = "WeaponSpeed"
- IntValue12.Parent = Tool0
- IntValue12.Value = 98
- LocalScript13.Parent = Tool0
- table.insert(cors,sandbox(LocalScript13,function()
- --Made by Stickmasterluke
- sp=script.Parent
- function waitfor(a,b)
- while a:FindFirstChild(b)==nil do
- a.ChildAdded:wait()
- end
- return a:FindFirstChild(b)
- end
- reloading=waitfor(sp,"Reloading")
- down=waitfor(sp,"MouseDown")
- runanim=waitfor(sp,"RunAnim")
- animspeed=1.2 --lower number is slower
- equipspeed=1.5
- originalgrip=CFrame.new(0,0,-1.1,0,0,1,1,0,0,0,1,0)
- currentgrip=originalgrip
- function swordUp()
- currentgrip=originalgrip
- sp.Grip=currentgrip
- end
- function swordOut()
- currentgrip=originalgrip*CFrame.Angles(math.pi/4,.4,0)
- sp.Grip=currentgrip
- end
- function spinsword(spintime)
- delay(0,function()
- local startspin=tick()
- local endspin=startspin+spintime
- while tick()<endspin do
- sp.Grip=currentgrip*CFrame.Angles(math.pi*2*((tick()-startspin)/spintime),0,0)
- wait()
- end
- sp.Grip=currentgrip
- end)
- end
- function update(mouse)
- if mouse~=nil then
- if reloading.Value then
- mouse.Icon="rbxasset://textures\\GunWaitCursor.png"
- else
- mouse.Icon="rbxasset://textures\\GunCursor.png"
- end
- end
- end
- runanim.Changed:connect(function()
- local h=sp.Parent:FindFirstChild("Humanoid")
- local t=sp.Parent:FindFirstChild("Torso")
- local anim=sp:FindFirstChild(runanim.Value)
- if anim and t and h then
- local theanim=h:LoadAnimation(anim)
- if theanim and h.Health>0 then
- theanim:Play(nil,nil,animspeed)
- end
- end
- end)
- function Equipped(mouse)
- if mouse~=nil then
- update(mouse)
- reloading.Changed:connect(function()
- update(mouse)
- end)
- mouse.Button1Down:connect(function()
- down.Value=true
- end)
- mouse.Button1Up:connect(function()
- down.Value=false
- end)
- local h=sp.Parent:FindFirstChild("Humanoid")
- local t=sp.Parent:FindFirstChild("Torso")
- if t and h then
- local equipanim=sp:FindFirstChild("Equip")
- if equipanim~=nil then
- local EquipAnim=h:LoadAnimation(equipanim)
- if EquipAnim and h.Health>0 then
- EquipAnim:Play(nil,nil,equipspeed)
- end
- end
- local holdanim=sp:FindFirstChild("Hold")
- if holdanim~=nil then
- if HoldAnim then
- HoldAnim:Stop()
- end
- HoldAnim=h:LoadAnimation(holdanim)
- if HoldAnim and h.Health>0 then
- HoldAnim:Play()
- end
- end
- end
- end
- end
- function Unequipped()
- down.Value=false
- if HoldAnim then
- HoldAnim:Stop()
- end
- end
- sp.Equipped:connect(Equipped)
- sp.Unequipped:connect(Unequipped)
- end))
- Animation14.Name = "Stab2"
- Animation14.Parent = Tool0
- Animation14.AnimationId = "http://www.roblox.com/Asset?ID=96559161"
- Animation15.Name = "Stab1"
- Animation15.Parent = Tool0
- Animation15.AnimationId = "http://www.roblox.com/Asset?ID=96559159"
- Animation16.Name = "LeftSlash"
- Animation16.Parent = Tool0
- Animation16.AnimationId = "http://www.roblox.com/Asset?ID=74894663"
- Animation17.Name = "Hold"
- Animation17.Parent = Tool0
- Animation17.AnimationId = "http://www.roblox.com/Asset?ID=96559165"
- Animation18.Name = "Equip"
- Animation18.Parent = Tool0
- Animation18.AnimationId = "http://www.roblox.com/Asset?ID=94160581"
- ScreenGui19.Name = "WeaponHud"
- ScreenGui19.Parent = Tool0
- Frame20.Name = "Bar"
- Frame20.Parent = ScreenGui19
- Frame20.Size = UDim2.new(0, 200, 0, 40)
- Frame20.Style = Enum.FrameStyle.RobloxRound
- Frame20.Position = UDim2.new(0.5, -100, 1, -160)
- Frame20.Visible = false
- Frame20.ZIndex = 4
- Frame21.Name = "Fill"
- Frame21.Parent = Frame20
- Frame21.Size = UDim2.new(1, 0, 1, 0)
- Frame21.Visible = false
- Frame21.BackgroundColor3 = Color3.new(0, 1, 0)
- Frame21.BorderSizePixel = 0
- Frame21.ZIndex = 5
- Frame22.Name = "Backing"
- Frame22.Parent = Frame20
- Frame22.Size = UDim2.new(1, 0, 1, 0)
- Frame22.Visible = false
- Frame22.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame22.BorderSizePixel = 0
- Frame22.ZIndex = 4
- TextLabel23.Name = "WeaponName"
- TextLabel23.Parent = ScreenGui19
- TextLabel23.Transparency = 1
- TextLabel23.Size = UDim2.new(0, 400, 0, 20)
- TextLabel23.Text = "Dagger"
- TextLabel23.Position = UDim2.new(0.5, -200, 1, -185)
- TextLabel23.Visible = false
- TextLabel23.BackgroundTransparency = 1
- TextLabel23.BorderSizePixel = 0
- TextLabel23.ZIndex = 4
- TextLabel23.ClipsDescendants = true
- TextLabel23.Font = Enum.Font.ArialBold
- TextLabel23.FontSize = Enum.FontSize.Size18
- TextLabel23.TextColor3 = Color3.new(0, 0, 0)
- TextLabel23.TextStrokeColor3 = Color3.new(0.698039, 0.698039, 0.698039)
- TextLabel23.TextTransparency = 0.20000000298023
- Script24.Name = "UltimateWeld"
- Script24.Parent = Tool0
- table.insert(cors,sandbox(Script24,function()
- --DO NOT USE BOTH WELDING SCRIPTS PROVIDED BY THIS MODEL
- --The regular script is recommended
- --[[
- Prevents welds from breaking/transforming when player uses the tool
- This recreates the EXACT weld every time
- This also prevents lag build up by clearing old welds, the tradition weld script just keeps making new
- ones, which can lead to weapons have crazy amounts of welds that dont work (I saw 6000 in a weapon once)
- ]]
- --[[Usage
- 1. Remove Old welding script (optional, only if updating a weapon and that weapon does not rely on that script)
- 2. Anchor all parts of tool and put inside of a tool object
- 3. Place this script in that tool (make sure you do this AFTER step 2, otherwise it may fail)
- 4. Treat like normal tool, nothing special has to be done with it
- ]]
- --[[The local script included in this model can only be used if
- 1. The weapon is being placed in the players backpack first (i.e. the weapon is in starterpack and moves to player backpack)
- OR
- 2. The weapon is previously welded (weapon can be placed in workspace and picked up then)
- ]]
- repeat wait() until script.Parent:FindFirstChild("Handle")
- local welds={}
- function ClearOldWelds(tbl)
- for _,v in pairs(tbl) do
- if v:IsA('Weld') then
- v:Destroy()
- end
- end
- end
- function Equipped()
- local handle=script.Parent:FindFirstChild('Handle')
- if not handle then return end
- local tble=handle:GetChildren()
- for _,v in pairs(script.Parent:GetChildren()) do
- if v:IsA('BasePart') and v~=handle then
- local c1
- for _1,v1 in pairs(welds) do
- if _1==v then
- c1=v1
- break
- end
- end
- if not c1 then
- welds[v]=v.CFrame:inverse()*handle.CFrame
- v.Anchored=false
- c1=welds[v]
- end
- local weld=Instance.new('Weld')
- weld.Part0=handle
- weld.Part1=v
- weld.C0=CFrame.new()
- weld.C1=c1
- weld.Parent=handle
- end
- end
- ClearOldWelds(tble)
- handle.Anchored=false
- end
- Equipped()
- script.Parent.Equipped:connect(Equipped)
- --Made by DonnyTheDemented
- end))
- Script25.Name = "Damage Script"
- Script25.Parent = mas
- table.insert(cors,sandbox(Script25,function()
- wait(5)
- function onTouched(hit)
- local human = hit.Parent:findFirstChild("Humanoid")
- if (human ~= nil) then
- human.Health = human.Health - 50 -- Change the amount to change the damage dealt on humanoid.
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Sound26.Parent = mas
- Sound26.Pitch = 2
- Sound26.SoundId = "http://www.roblox.com/asset/?id=147930482"
- Sound26.Volume = 1
- Script27.Name = "SoundX"
- Script27.Parent = Sound26
- table.insert(cors,sandbox(Script27,function()
- while true do
- for i = 360, 400 do
- script.Parent.Pitch = i/100
- wait()
- end
- for i = 360, 400 do
- script.Parent.Pitch = 7.6-i/100
- wait()
- end
- end
- end))
- Script28.Name = "SoundScript"
- Script28.Parent = mas
- table.insert(cors,sandbox(Script28,function()
- function onTouched(hit)
- wait(0) --Change the 0 to however long you want the sound to be delayed in seconds.
- script.Parent.Sound:play() --copy and paste this and the line above it to make the sound repeat.
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part29.Name = "FakeHandle"
- Part29.Parent = Tool0
- Part29.Material = Enum.Material.Fabric
- Part29.BrickColor = BrickColor.new("CGA brown")
- Part29.Rotation = Vector3.new(-171.220001, 65.1699982, 126.729996)
- Part29.Anchored = true
- Part29.CanCollide = false
- Part29.Locked = true
- Part29.FormFactor = Enum.FormFactor.Custom
- Part29.Size = Vector3.new(0.319487989, 2.17251825, 0.319487989)
- Part29.CFrame = CFrame.new(1.6176343, 13.8218098, 25.3037243, -0.251109898, -0.336483657, 0.907591999, -0.709234774, 0.702055991, 0.0640536994, -0.658732772, -0.627610981, -0.414939106)
- Part29.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part29.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part29.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part29.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part29.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part29.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part29.Color = Color3.new(0.666667, 0.333333, 0)
- Part29.Position = Vector3.new(1.6176343, 13.8218098, 25.3037243)
- Part29.Orientation = Vector3.new(-3.66999984, 114.57, -45.2899971)
- Part29.Color = Color3.new(0.666667, 0.333333, 0)
- CylinderMesh30.Parent = Part29
- Part31.Name = "Glow"
- Part31.Parent = Tool0
- Part31.Material = Enum.Material.Ice
- Part31.BrickColor = BrickColor.new("Deep orange")
- Part31.Rotation = Vector3.new(-47.1100006, 14.54, -69.659996)
- Part31.Anchored = true
- Part31.CanCollide = false
- Part31.Locked = true
- Part31.FormFactor = Enum.FormFactor.Custom
- Part31.Size = Vector3.new(0.926515162, 1.05431032, 0.926515162)
- Part31.CFrame = CFrame.new(0.972535849, 15.167778, 24.1004791, 0.336483657, 0.907591999, 0.251109898, -0.702055991, 0.0640536994, 0.709234774, 0.627610981, -0.414939106, 0.658732772)
- Part31.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part31.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part31.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part31.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part31.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part31.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part31.Color = Color3.new(1, 0.690196, 0)
- Part31.Position = Vector3.new(0.972535849, 15.167778, 24.1004791)
- Part31.Orientation = Vector3.new(-45.1699982, 20.8699989, -84.7900009)
- Part31.Color = Color3.new(1, 0.690196, 0)
- CylinderMesh32.Parent = Part31
- PointLight33.Parent = Part31
- PointLight33.Color = Color3.new(1, 0.666667, 0)
- PointLight33.Enabled = false
- PointLight33.Range = 10
- PointLight33.Color = Color3.new(1, 0.666667, 0)
- Script34.Name = "LightControl"
- Script34.Parent = PointLight33
- table.insert(cors,sandbox(Script34,function()
- while true do
- script.Parent.Enabled=true
- script.Parent.Range=16
- wait(.01)
- script.Parent.Range=15
- wait(.01)
- script.Parent.Range=14
- wait(.01)
- script.Parent.Range=13
- wait(.01)
- script.Parent.Range=12
- wait(.01)
- script.Parent.Range=11
- wait(.01)
- script.Parent.Range=10
- wait(.01)
- script.Parent.Range=9
- wait(.01)
- script.Parent.Range=8
- wait(.01)
- script.Parent.Range=9
- wait(.01)
- script.Parent.Range=10
- wait(.01)
- script.Parent.Range=11
- wait(.01)
- script.Parent.Range=12
- wait(.01)
- script.Parent.Range=13
- wait(.01)
- script.Parent.Range=14
- wait(.01)
- script.Parent.Range=15
- wait(.01)
- end
- end))
- Part35.Name = "GlowB"
- Part35.Parent = Tool0
- Part35.Material = Enum.Material.Ice
- Part35.BrickColor = BrickColor.new("Toothpaste")
- Part35.Rotation = Vector3.new(-47.1100006, 14.54, -69.659996)
- Part35.Anchored = true
- Part35.CanCollide = false
- Part35.Locked = true
- Part35.FormFactor = Enum.FormFactor.Custom
- Part35.Size = Vector3.new(0.511180818, 0.511180818, 0.511180818)
- Part35.CFrame = CFrame.new(2.21100831, 12.5837679, 26.4104881, 0.336483657, 0.907591999, 0.251109898, -0.702055991, 0.0640536994, 0.709234774, 0.627610981, -0.414939106, 0.658732772)
- Part35.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.Color = Color3.new(0, 1, 1)
- Part35.Position = Vector3.new(2.21100831, 12.5837679, 26.4104881)
- Part35.Orientation = Vector3.new(-45.1699982, 20.8699989, -84.7900009)
- Part35.Color = Color3.new(0, 1, 1)
- CylinderMesh36.Parent = Part35
- PointLight37.Parent = Part35
- PointLight37.Color = Color3.new(0, 1, 1)
- PointLight37.Enabled = false
- PointLight37.Color = Color3.new(0, 1, 1)
- Script38.Name = "LightControl"
- Script38.Parent = PointLight37
- table.insert(cors,sandbox(Script38,function()
- while true do
- script.Parent.Enabled=true
- script.Parent.Range=8
- wait(.01)
- script.Parent.Range=7
- wait(.01)
- script.Parent.Range=6
- wait(.01)
- script.Parent.Range=5
- wait(.01)
- script.Parent.Range=4
- wait(.01)
- script.Parent.Range=3
- wait(.01)
- script.Parent.Range=2
- wait(.01)
- script.Parent.Range=3
- wait(.01)
- script.Parent.Range=4
- wait(.01)
- script.Parent.Range=5
- wait(.01)
- script.Parent.Range=6
- wait(.01)
- script.Parent.Range=7
- wait(.01)
- end
- end))
- Part39.Name = "GlowBTrans"
- Part39.Parent = Tool0
- Part39.Material = Enum.Material.Ice
- Part39.BrickColor = BrickColor.new("Toothpaste")
- Part39.Transparency = 0.5
- Part39.Rotation = Vector3.new(-47.1100006, 14.54, -69.659996)
- Part39.Anchored = true
- Part39.CanCollide = false
- Part39.Locked = true
- Part39.FormFactor = Enum.FormFactor.Custom
- Part39.Size = Vector3.new(0.543129563, 0.543129563, 0.543129563)
- Part39.CFrame = CFrame.new(2.21100831, 12.5837679, 26.4104881, 0.336483657, 0.907591999, 0.251109898, -0.702055991, 0.0640536994, 0.709234774, 0.627610981, -0.414939106, 0.658732772)
- Part39.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part39.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part39.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part39.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part39.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part39.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part39.Color = Color3.new(0, 1, 1)
- Part39.Position = Vector3.new(2.21100831, 12.5837679, 26.4104881)
- Part39.Orientation = Vector3.new(-45.1699982, 20.8699989, -84.7900009)
- Part39.Color = Color3.new(0, 1, 1)
- CylinderMesh40.Parent = Part39
- Script41.Name = "TransparencyControl"
- Script41.Parent = Part39
- table.insert(cors,sandbox(Script41,function()
- while true do
- script.Parent.Transparency=1
- wait(12)
- script.Parent.Transparency=.9
- wait(.02)
- script.Parent.Transparency=.8
- wait(.02)
- script.Parent.Transparency=.7
- wait(.02)
- script.Parent.Transparency=.6
- wait(.02)
- script.Parent.Transparency=.5
- wait(.02)
- script.Parent.Transparency=.6
- wait(.02)
- script.Parent.Transparency=.7
- wait(.02)
- script.Parent.Transparency=.8
- wait(.02)
- script.Parent.Transparency=.9
- wait(.02)
- end
- end))
- Part42.Name = "GlowTrans"
- Part42.Parent = Tool0
- Part42.Material = Enum.Material.Ice
- Part42.BrickColor = BrickColor.new("New Yeller")
- Part42.Transparency = 0.5
- Part42.Rotation = Vector3.new(-47.1100006, 14.54, -69.659996)
- Part42.Anchored = true
- Part42.CanCollide = false
- Part42.Locked = true
- Part42.FormFactor = Enum.FormFactor.Custom
- Part42.Size = Vector3.new(0.958463907, 1.21405435, 0.958463907)
- Part42.CFrame = CFrame.new(0.972535849, 15.167778, 24.1004791, 0.336483657, 0.907591999, 0.251109898, -0.702055991, 0.0640536994, 0.709234774, 0.627610981, -0.414939106, 0.658732772)
- Part42.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part42.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part42.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part42.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part42.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part42.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part42.Color = Color3.new(1, 1, 0)
- Part42.Position = Vector3.new(0.972535849, 15.167778, 24.1004791)
- Part42.Orientation = Vector3.new(-45.1699982, 20.8699989, -84.7900009)
- Part42.Color = Color3.new(1, 1, 0)
- CylinderMesh43.Parent = Part42
- Script44.Name = "TransparencyControl"
- Script44.Parent = Part42
- table.insert(cors,sandbox(Script44,function()
- while true do
- script.Parent.Transparency=1
- wait(12)
- script.Parent.Transparency=.9
- wait(.02)
- script.Parent.Transparency=.8
- wait(.02)
- script.Parent.Transparency=.7
- wait(.02)
- script.Parent.Transparency=.6
- wait(.02)
- script.Parent.Transparency=.5
- wait(.02)
- script.Parent.Transparency=.6
- wait(.02)
- script.Parent.Transparency=.7
- wait(.02)
- script.Parent.Transparency=.8
- wait(.02)
- script.Parent.Transparency=.9
- wait(.02)
- end
- end))
- Tool45.Name = "GravityHammer"
- Tool45.Parent = mas
- Tool45.TextureId = "http://www.roblox.com/asset/?id=1256305"
- Tool45.GripForward = Vector3.new(-1, -0, -0)
- Tool45.GripPos = Vector3.new(0, 0, -3.25)
- Tool45.GripRight = Vector3.new(0, 1, 0)
- Tool45.GripUp = Vector3.new(0, 0, 1)
- Part46.Name = "Handle"
- Part46.Parent = Tool45
- Part46.BrickColor = BrickColor.new("Dark stone grey")
- Part46.Reflectance = 0.40000000596046
- Part46.Rotation = Vector3.new(0.049999997, -39.9899979, -90.4499969)
- Part46.FormFactor = Enum.FormFactor.Plate
- Part46.Size = Vector3.new(1, 0.800000012, 10)
- Part46.CFrame = CFrame.new(-67.2475739, 99.2972641, 578.133911, -0.00603066897, 0.766138911, -0.64264679, -0.999964714, -0.00838722941, -0.000615152472, -0.00586126279, 0.642620385, 0.766162395)
- Part46.BottomSurface = Enum.SurfaceType.Smooth
- Part46.TopSurface = Enum.SurfaceType.Smooth
- Part46.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part46.Position = Vector3.new(-67.2475739, 99.2972641, 578.133911)
- Part46.Orientation = Vector3.new(0.0399999991, -39.9899979, -90.4799957)
- Part46.Color = Color3.new(0.388235, 0.372549, 0.384314)
- SpecialMesh47.Parent = Part46
- SpecialMesh47.MeshId = "http://www.roblox.com/asset/?id=1256290"
- SpecialMesh47.Scale = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
- SpecialMesh47.TextureId = "http://www.roblox.com/asset/?id=1256283"
- SpecialMesh47.VertexColor = Vector3.new(1, 1, 1.29999995)
- SpecialMesh47.MeshType = Enum.MeshType.FileMesh
- SpecialMesh47.Scale = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
- Sound48.Parent = Part46
- Sound48.SoundId = "http://www.roblox.com/asset/?id=1255794"
- Sound48.Volume = 1
- Script49.Name = "GravityHammerScript"
- Script49.Parent = Tool45
- table.insert(cors,sandbox(Script49,function()
- --Jacob6441443's Gravity Hammer
- r = game:service("RunService")
- local damage = 0
- local slash_damage = 10
- local lunge_damage = 30
- sword = script.Parent.Handle
- Tool = script.Parent
- SlashSound = sword.Sound
- function blow(hit)
- Grip = Tool.Parent["Right Arm"].RightGrip:clone()
- humanoid = hit.Parent:findFirstChild("Humanoid")
- if (humanoid ~= nil and humanoid.Parent.Name == Tool.Parent.Name) then
- return
- end
- if (humanoid ~= nil) then
- print(humanoid.Parent.Name)
- tagHumanoid(humanoid, creator)
- humanoid.Health = humanoid.Health - math.random(80 , 100)
- Gravity(hit)
- wait(0.5)
- untagHumanoid(humanoid)
- UnGlitch(hit)
- else
- explode(hit)
- end
- end
- function UnGlitch(part)
- local Para = part.Parent
- local parts = Para:GetChildren()
- for i = 1, #parts do
- if parts[i]:findFirstChild("- Gravity") ~= nil then
- parts[i]:findFirstChild("- Gravity"):remove()
- print("Fixed("..parts[i].Name..")")
- end
- end
- end
- function propel(part)
- if(part.Anchored) then return end
- direction = (part.Position - Tool.Parent.Torso.Position).unit
- direction = direction + Vector3.new(0,1,0)
- direction = direction * 200
- part.Velocity = part.Velocity + direction
- end
- function Gravity(part)
- local Par = part.Parent
- if Par ~= nil and Par.Name ~= "Workspace" and part.Anchored == false then
- local c = Par:GetChildren()
- for i = 1, #c do
- local Fly = Instance.new("BodyPosition")
- Fly.Name = "- Gravity"
- local Dir = (part.Position - Tool.Parent.Torso.Position).unit
- Dir = Dir + Vector3.new(0, 1, 0)
- Dir = Dir * 200
- Fly.maxForce = Dir
- if c[i].className == "Part" then
- print(c[i].Name)
- Fly.position = c[i].Position * Dir
- Fly.Parent = c[i]
- c[i]:BreakJoints()
- end
- end
- end
- end
- debounce = true
- function explode(part)
- if not debounce then return end
- debounce = false
- direction = (part.Position - Tool.Parent.Torso.Position).unit
- pos = direction * 12 + Tool.Parent.Torso.Position
- explosion = Instance.new("Explosion")
- explosion.BlastRadius = 4
- explosion.BlastPressure = 1
- explosion.Position = pos
- explosion.Parent = game.Workspace
- explosion.Hit:connect(function(part, distance) propel(part) end)
- wait(.1)
- Grip:clone().Parent = Tool.Parent["Right Arm"]
- debounce = true
- end
- function onPlayerBlownUp(part, distance, creator)
- if part.Name == "Head" then
- local humanoid = part.Parent.Humanoid
- tagHumanoid(humanoid, creator)
- end
- end
- function tagHumanoid(humanoid, creator)
- 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()
- SlashSound:play()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- end
- function lunge()
- attack()
- force = Instance.new("BodyPosition")
- force.maxForce = Vector3.new(1e+005, 1e+004, 1e+005)
- dir = Tool.Parent.Humanoid.targetPoint
- if((dir - sword.Position).magnitude > 15) then return end
- force.position = dir
- force.Parent = sword
- wait(.25)
- force.Parent = nil
- end
- function swordUp()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- function swordOut()
- Tool.GripForward = Vector3.new(0,0,1)
- Tool.GripRight = Vector3.new(0,-1,0)
- Tool.GripUp = Vector3.new(-1,0,0)
- end
- function swordAcross()
- end
- Tool.Enabled = true
- local last_attack = 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()
- connection = sword.Touched:connect(blow)
- lunge()
- wait(.4)
- connection:disconnect()
- last_attack = t
- Tool.Enabled = true
- end
- script.Parent.Activated:connect(onActivated)
- end))
- LocalScript50.Name = "Local Gui"
- LocalScript50.Parent = Tool45
- table.insert(cors,sandbox(LocalScript50,function()
- local Tool = script.Parent;
- enabled = true
- function onButton1Down(mouse)
- if not enabled then
- return
- end
- enabled = false
- mouse.Icon ="http://www.roblox.com/asset/?id=1981212"
- wait(7)
- mouse.Icon ="http://www.roblox.com/asset/?id=1981212"
- enabled = true
- end
- function onEquippedLocal(mouse)
- if mouse == nil then
- print("Mouse not found")
- return
- end
- mouse.Icon ="http://www.roblox.com/asset/?id=1981212"
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- local Class = Tool.Parent:findFirstChild("Class Define")
- local Hammer = Tool.Parent:findFirstChild("Hammer")
- if Class ~= nil and Hammer ~= nil then
- local GravHand = Hammer.Handle
- local ClaHand = Class.Handle
- if GravHand.Transparency == 0 and ClaHand.Transparency == 1 then
- GravHand.Transparency = 1
- ClaHand.Transparency = 0
- end
- end
- end
- Tool.Equipped:connect(onEquippedLocal)
- 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
Add Comment
Please, Sign In to add comment