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"))
- Script0 = Instance.new("Script")
- BodyVelocity1 = Instance.new("BodyVelocity")
- LocalScript2 = Instance.new("LocalScript")
- Part3 = Instance.new("Part")
- SpecialMesh4 = Instance.new("SpecialMesh")
- Sound5 = Instance.new("Sound")
- Sound6 = Instance.new("Sound")
- Tool7 = Instance.new("Tool")
- Part8 = Instance.new("Part")
- SpecialMesh9 = Instance.new("SpecialMesh")
- Sound10 = Instance.new("Sound")
- Sound11 = Instance.new("Sound")
- LocalScript12 = Instance.new("LocalScript")
- Script13 = Instance.new("Script")
- BodyVelocity14 = Instance.new("BodyVelocity")
- Script13.Name = "IceHammer"
- Script13.Parent = Tool7
- table.insert(cors,sandbox(Script13,function()
- -------- OMG HAX
- debris = game:GetService("Debris")
- r = game:service("RunService")
- local damage = 5
- local slash_damage = 5
- sword = script.Parent.Handle
- Tool = script.Parent
- local SlashSound = Instance.new("Sound")
- SlashSound.SoundId = "http://www.roblox.com/asset/?id=15933756"
- SlashSound.Parent = sword
- SlashSound.Volume = 1
- local UnsheathSound = Instance.new("Sound")
- UnsheathSound.SoundId = "http://www.roblox.com/asset/?id=15933756"
- UnsheathSound.Parent = sword
- UnsheathSound.Volume = 1
- local blues = {"White", "Institutional white"}
- function isTurbo(character)
- return character:FindFirstChild("Ie4tehlm") ~= nil
- end
- function allThatIce2(pos, isTurbo)
- local count = 15
- if (isTurbo == true) then count = 10 end
- for i=1,count do
- local p = Instance.new("Seat")
- p.BrickColor = BrickColor.new(blues[math.random(#blues)])
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(5,2000,5)
- p.Friction = 0
- script.vel:clone().Parent = p
- p.CanCollide = false
- p.Transparency = 0.5
- p.TopSurface = 0
- p.BottomSurface = 0
- local a = math.random() * 6.28
- local d = Vector3.new(math.cos(a), 0, math.sin(a)).unit
- p.Velocity = Tool.Parent.Torso.CFrame.lookVector * 1500 + Vector3.new(math.random(-200,200), 0, math.random(-200,200))
- p.Position = pos + Vector3.new(0, math.random() * -2, 0) + (d * 2)
- p.Parent = game.Workspace
- debris:AddItem(p, 1)
- end
- end
- function blow(hit)
- 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)
- if (isTurbo(vCharacter) == true) then
- humanoid:TakeDamage(damage * 1.2)
- else
- humanoid:TakeDamage(damage)
- end
- 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
- debris:AddItem(creator_tag, 1)
- end
- function attack()
- damage = slash_damage
- SlashSound:play()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- end
- function attackOMEGA()
- damage = slash_damage
- SlashSound.Pitch = 2
- SlashSound:play()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- 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
- Tool.Enabled = true
- 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
- attackOMEGA()
- allThatIce2(character.Torso.Position + (character.Torso.CFrame.lookVector * 15), isTurbo(character))
- wait(60)
- 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))
- BodyVelocity14.Name = "vel"
- BodyVelocity14.Parent = Script13
- BodyVelocity14.Velocity = Vector3.new(0, 100, 0)
- BodyVelocity14.velocity = Vector3.new(0, 100, 0)
- LocalScript12.Name = "Local Gui"
- LocalScript12.Parent = Tool7
- 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"
- wait(1)
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- enabled = true
- end
- function onEquippedLocal(mouse)
- 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.Equipped:connect(onEquippedLocal)
- end))
- Part8.Name = "Handle"
- Part8.Parent = Tool7
- Part8.BrickColor = BrickColor.new("Dark stone grey")
- Part8.Rotation = Vector3.new(-89.9700012, -0.0299999993, 45.6800003)
- Part8.CanCollide = false
- Part8.FormFactor = Enum.FormFactor.Plate
- Part8.Size = Vector3.new(1, 0.800000012, 6)
- Part8.CFrame = CFrame.new(-164.044373, 43.5160217, -36.5623627, 0.69865936, -0.715454042, -0.000556324667, 0.000796274282, 6.80899737e-23, 0.999999642, -0.715453863, -0.698659539, 0.000569697702)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part8.Position = Vector3.new(-164.044373, 43.5160217, -36.5623627)
- Part8.Orientation = Vector3.new(-89.9499969, -44.3199997, 90)
- Part8.Color = Color3.new(0.388235, 0.372549, 0.384314)
- SpecialMesh9.Parent = Part8
- SpecialMesh9.MeshId = "http://www.roblox.com/asset/?id=15924243"
- SpecialMesh9.Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005)
- SpecialMesh9.TextureId = "http://www.roblox.com/asset/?id=19012755"
- SpecialMesh9.VertexColor = Vector3.new(2, 2, 2)
- SpecialMesh9.MeshType = Enum.MeshType.FileMesh
- SpecialMesh9.Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005)
- Sound10.Parent = Part8
- Sound10.SoundId = "http://www.roblox.com/asset/?id=15933756"
- Sound10.Volume = 1
- Sound11.Parent = Part8
- Sound11.SoundId = "http://www.roblox.com/asset/?id=15933756"
- Sound11.Volume = 1
- Tool7.Name = "Diamond Light Hammer"
- Tool7.Parent = mas
- Tool7.TextureId = "http://www.roblox.com/asset/?id=15933689"
- Tool7.GripForward = Vector3.new(-1, -0, -0)
- Tool7.GripPos = Vector3.new(0, 0, -1)
- Tool7.GripRight = Vector3.new(0, 1, 0)
- Tool7.GripUp = Vector3.new(0, 0, 1)
- Part8.Name = "Handle"
- Part8.Parent = Tool7
- Part8.BrickColor = BrickColor.new("Dark stone grey")
- Part8.Rotation = Vector3.new(-89.9700012, -0.0299999993, 45.6800003)
- Part8.CanCollide = false
- Part8.FormFactor = Enum.FormFactor.Plate
- Part8.Size = Vector3.new(1, 0.800000012, 6)
- Part8.CFrame = CFrame.new(-164.044373, 43.5160217, -36.5623627, 0.69865936, -0.715454042, -0.000556324667, 0.000796274282, 6.80899737e-23, 0.999999642, -0.715453863, -0.698659539, 0.000569697702)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part8.Position = Vector3.new(-164.044373, 43.5160217, -36.5623627)
- Part8.Orientation = Vector3.new(-89.9499969, -44.3199997, 90)
- Part8.Color = Color3.new(0.388235, 0.372549, 0.384314)
- SpecialMesh9.Parent = Part8
- SpecialMesh9.MeshId = "http://www.roblox.com/asset/?id=15924243"
- SpecialMesh9.Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005)
- SpecialMesh9.TextureId = "http://www.roblox.com/asset/?id=19012755"
- SpecialMesh9.VertexColor = Vector3.new(2, 2, 2)
- SpecialMesh9.MeshType = Enum.MeshType.FileMesh
- SpecialMesh9.Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005)
- Sound10.Parent = Part8
- Sound10.SoundId = "http://www.roblox.com/asset/?id=15933756"
- Sound10.Volume = 1
- Sound11.Parent = Part8
- Sound11.SoundId = "http://www.roblox.com/asset/?id=15933756"
- Sound11.Volume = 1
- LocalScript12.Name = "Local Gui"
- LocalScript12.Parent = Tool7
- 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"
- wait(1)
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- enabled = true
- end
- function onEquippedLocal(mouse)
- 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.Equipped:connect(onEquippedLocal)
- end))
- Script13.Name = "IceHammer"
- Script13.Parent = Tool7
- table.insert(cors,sandbox(Script13,function()
- -------- OMG HAX
- debris = game:GetService("Debris")
- r = game:service("RunService")
- local damage = 5
- local slash_damage = 5
- sword = script.Parent.Handle
- Tool = script.Parent
- local SlashSound = Instance.new("Sound")
- SlashSound.SoundId = "http://www.roblox.com/asset/?id=15933756"
- SlashSound.Parent = sword
- SlashSound.Volume = 1
- local UnsheathSound = Instance.new("Sound")
- UnsheathSound.SoundId = "http://www.roblox.com/asset/?id=15933756"
- UnsheathSound.Parent = sword
- UnsheathSound.Volume = 1
- local blues = {"White", "Institutional white"}
- function isTurbo(character)
- return character:FindFirstChild("Ie4tehlm") ~= nil
- end
- function allThatIce2(pos, isTurbo)
- local count = 15
- if (isTurbo == true) then count = 10 end
- for i=1,count do
- local p = Instance.new("Seat")
- p.BrickColor = BrickColor.new(blues[math.random(#blues)])
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(5,2000,5)
- p.Friction = 0
- script.vel:clone().Parent = p
- p.CanCollide = false
- p.Transparency = 0.5
- p.TopSurface = 0
- p.BottomSurface = 0
- local a = math.random() * 6.28
- local d = Vector3.new(math.cos(a), 0, math.sin(a)).unit
- p.Velocity = Tool.Parent.Torso.CFrame.lookVector * 1500 + Vector3.new(math.random(-200,200), 0, math.random(-200,200))
- p.Position = pos + Vector3.new(0, math.random() * -2, 0) + (d * 2)
- p.Parent = game.Workspace
- debris:AddItem(p, 1)
- end
- end
- function blow(hit)
- 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)
- if (isTurbo(vCharacter) == true) then
- humanoid:TakeDamage(damage * 1.2)
- else
- humanoid:TakeDamage(damage)
- end
- 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
- debris:AddItem(creator_tag, 1)
- end
- function attack()
- damage = slash_damage
- SlashSound:play()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- end
- function attackOMEGA()
- damage = slash_damage
- SlashSound.Pitch = 2
- SlashSound:play()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- 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
- Tool.Enabled = true
- 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
- attackOMEGA()
- allThatIce2(character.Torso.Position + (character.Torso.CFrame.lookVector * 15), isTurbo(character))
- wait(60)
- 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))
- BodyVelocity14.Name = "vel"
- BodyVelocity14.Parent = Script13
- BodyVelocity14.Velocity = Vector3.new(0, 100, 0)
- BodyVelocity14.velocity = Vector3.new(0, 100, 0)
- 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