Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tool = Instance.new("Tool")
- Part1 = Instance.new("Part")
- Part6 = Instance.new("Part")
- Part7 = Instance.new("Part")
- tool.Name = "Cube"
- tool.Parent = owner.Backpack
- tool.ToolTip = "Dont Touch"
- Part1.Name = "Handle"
- Part1.Parent = tool
- Part1.Size = Vector3.new(1, 1, 1)
- Part1.Color = Color3.fromRGB(255, 0, 0)
- Part1.Material = "Neon"
- Part6.Name = "hitbox"
- Part6.Parent = tool
- Part6.Transparency = 1
- Part6.Size = Vector3.new(3, 3, 3)
- Part6.BrickColor = BrickColor.new("Institutional White")
- Part6.CanCollide = false
- Part6.Material = "SmoothPlastic"
- Part7.Name = "Visible"
- Part7.Parent = tool
- Part7.Color = Color3.fromRGB(79, 79, 79)
- Part7.Transparency = 0.5
- Part7.Size = Vector3.new(1.5, 1.5, 1.5)
- Part7.Material = "SmoothPlastic"
- Weld4 = Instance.new("Weld",Part1)
- Weld8 = Instance.new("Weld",Part1)
- Weld4.Part0 = Part1
- Weld4.Part1 = Part6
- Weld8.Part0 = Part1
- Weld8.Part1 = Part7
- local music = Instance.new("Sound", owner.character.Head)
- music.Looped = true
- music.Volume = 1
- players = game:GetService("Players")
- runservice = game:GetService("RunService")
- owner = nil
- equipped = false
- candamage = false
- tool.Activated:Connect(function()
- if not candamage then
- candamage = true
- Part1.Color = Color3.fromRGB(255, 0, 0)
- elseif candamage then
- candamage = false
- Part1.Color = Color3.fromRGB(82, 82, 82)
- end
- end)
- tool.Unequipped:connect(function()
- equipped = false
- music:Pause()
- owner.Character.Humanoid.WalkSpeed = 16
- end)
- tool.Equipped:connect(function()
- owner = players:GetPlayerFromCharacter(tool.Parent)
- owner.Character.Humanoid.WalkSpeed = 50
- equipped = true
- music:Resume()
- local playerhum = owner.Character.Humanoid
- local rightgrip
- if playerhum.RigType == Enum.HumanoidRigType.R6 then
- rightgrip = owner.Character["Right Arm"]:WaitForChild("RightGrip")
- elseif playerhum.RigType == Enum.HumanoidRigType.R15 then
- rightgrip = owner.Character["RightHand"]:WaitForChild("RightGrip")
- end
- coroutine.wrap(function()
- while equipped and runservice.Stepped:wait() do
- if playerhum.RigType == Enum.HumanoidRigType.R15 then
- rightgrip.C0 = CFrame.new(0,-0.4,0) * CFrame.fromEulerAnglesXYZ(math.sin(tick()*1.5)/6,math.cos(tick()*1.5),0)
- elseif playerhum.RigType == Enum.HumanoidRigType.R6 then
- rightgrip.C0 = CFrame.new(0,-1.5,0) * CFrame.fromEulerAnglesXYZ(math.sin(tick()*1.5)/6,math.cos(tick()*1.5),0)
- end
- end
- end)()
- end)
- local SoundIds = {"4821414299", "6394547745", "2953054310", "2502051246"}
- music.SoundId = "rbxassetid://" .. SoundIds[math.random(1, #SoundIds)]
- music.Ended:Connect(function(SoundId)
- local newSoundId
- do repeat
- newSoundId = "rbxassetid://" .. SoundIds[math.random(1, #SoundIds)]
- wait()
- until
- newSoundId ~= SoundId
- end
- music:Stop()
- music.SoundId = newSoundId
- music.TimePosition = 0
- task.wait()
- music:Resume()
- end)
- function killfunction(part)
- if part.Name ~= "Base" and candamage then
- part:Destroy()
- end
- end
- Part6.Touched:connect(killfunction)
Add Comment
Please, Sign In to add comment