Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- local char = plr.Character
- local mouse = plr:GetMouse()
- local animc = Instance.new("Animation", char)
- animc.AnimationId = "rbxassetid://218504594"
- atkd = false
- godtuch = false
- freeze = false
- hot = false
- laser = false
- music1 = false
- local handle = Instance.new("Part")
- handle.Size = Vector3.new(0.4, 3, 0.8)
- handle.Material = "Wood"
- handle.BrickColor = BrickColor.new("Reddish brown")
- local weld = Instance.new("Weld", handle)
- local mesh = Instance.new("SpecialMesh")
- local swing = Instance.new("Sound", handle)
- local music = Instance.new("Sound", handle)
- local hits = Instance.new("Sound", handle)
- local hiti = Instance.new("Sound", handle)
- local hity = Instance.new("Sound", handle)
- local hitu = Instance.new("Sound", handle)
- local swing2 = Instance.new("Sound", handle)
- local damage = Instance.new("IntValue", handle)
- local gui = Instance.new("ScreenGui", plr.PlayerGui)
- local gui2 = Instance.new("ScreenGui", plr.PlayerGui)
- local gui3 = Instance.new("ScreenGui", plr.PlayerGui)
- local gui4 = Instance.new("ScreenGui", plr.PlayerGui)
- local txt = Instance.new("TextLabel", gui)
- local txt2 = Instance.new("TextLabel", gui)
- local txt3 = Instance.new("TextLabel", gui)
- local txt4 = Instance.new("TextLabel", gui)
- mesh.Scale = Vector3.new(1, 1, 1)
- mesh.MeshType = "FileMesh"
- mesh.TextureId = "http://www.roblox.com/asset/?id=155195316"
- mesh.MeshId = "http://www.roblox.com/asset/?id=121944778"
- txt.BorderSizePixel = 0
- txt.BackgroundTransparency = 0.5
- txt.BackgroundColor3 = Color3.new(108, 108, 108)
- txt.TextScaled = true
- txt.Visible = true
- txt.Position = UDim2.new(0, 0, 0, 0)
- txt.Size = UDim2.new(0, 200, 0, 50)
- txt.Font = "SciFi"
- txt.TextColor3 = Color3.new(255, 255, 255)
- txt2.BorderSizePixel = 0
- txt2.BackgroundTransparency = 0.5
- txt2.BackgroundColor3 = Color3.new(108, 108, 108)
- txt2.TextScaled = true
- txt2.Visible = true
- txt2.Position = UDim2.new(0, 0, 0.1, 0)
- txt2.Size = UDim2.new(0, 200, 0, 50)
- txt2.Font = "SciFi"
- txt2.TextColor3 = Color3.new(255, 255, 255)
- txt2.Text = "Regular"
- txt3.BorderSizePixel = 0
- txt3.BackgroundTransparency = 0.5
- txt3.BackgroundColor3 = Color3.new(108, 108, 108)
- txt3.TextScaled = true
- txt3.Visible = true
- txt3.Position = UDim2.new(0.28, 0, 0, 0)
- txt3.Size = UDim2.new(0, 200, 0, 50)
- txt3.Font = "SciFi"
- txt3.TextColor3 = Color3.new(255, 255, 255)
- txt4.BorderSizePixel = 0
- txt4.BackgroundTransparency = 0.5
- txt4.BackgroundColor3 = Color3.new(108, 108, 108)
- txt4.TextScaled = true
- txt4.Visible = true
- txt4.Position = UDim2.new(0.28, 0, 0.1, 0)
- txt4.Size = UDim2.new(0, 200, 0, 50)
- txt4.Font = "SciFi"
- txt4.TextColor3 = Color3.new(255, 255, 255)
- mesh.Parent = handle
- damage.Value = 90
- swing.Name = "swing"
- hits.Name = "Hit"
- hits.SoundId = "rbxassetid://388826051"
- swing.SoundId = "rbxassetid://437475935"
- music.SoundId = "rbxassetid://399570826"
- swing2.SoundId = "rbxassetid://605565775"
- hiti.SoundId = "rbxassetid://388826051"
- hity.SoundId = "rbxassetid://388826051"
- hitu.SoundId = "rbxassetid://388826051"
- handle.Parent = char
- weld.Part0 = handle
- weld.Part1 = char["Right Arm"]
- weld.C1 = CFrame.fromEulerAnglesXYZ(-1.6, 0, 0) * CFrame.new(0, 1, -1)
- char.Humanoid.MaxHealth = 6000
- char.Humanoid.Health = char.Humanoid.MaxHealth
- txt.Text = "damage: "..damage.Value
- damage.Changed:connect(function()
- txt.Text = "damage: "..damage.Value
- end)
- txt3.Text = "MaxHealth: "..char.Humanoid.MaxHealth
- char.Humanoid.Changed:connect(function()
- txt3.Text = "MaxHealth: "..char.Humanoid.MaxHealth
- end)
- txt4.Text = "Speed: "..char.Humanoid.WalkSpeed
- char.Humanoid.Changed:connect(function()
- txt4.Text = "Speed: "..char.Humanoid.WalkSpeed
- end)
- function debounce(func)
- local isRunning = false
- return function(...)
- if not isRunning then
- isRunning = true
- func(...)
- isRunning = false
- end
- end
- end
- mouse.Button1Down:connect(debounce(function()
- local anim = char.Humanoid:LoadAnimation(animc)
- swing:Play()
- anim:Play()
- atkd = true
- wait(0.9)
- atkd = false
- wait(1)
- end))
- handle.Touched:connect(debounce(function(hit)
- if hit.Name == "Head" or hit.Name == "Torso" or hit.Name == "Right Arm" or hit.Name == "Left Arm" or hit.Name == "Right Leg" or hit.Name == "Left Leg" and hit.Parent.Name ~= char.Name then
- if atkd == true and godtuch == false and freeze == false and hot == false and laser == false then
- hit.Parent.Humanoid:TakeDamage(damage.Value)
- hits:Play()
- hit.Parent.Humanoid.PlatformStand = true
- wait(0.5)
- hit.Parent.Humanoid.PlatformStand = false
- wait(1)
- elseif atkd == true and godtuch == true and freeze == false and hot == false and laser == false then
- hit.Parent.Humanoid.Health = 0
- hits:Play()
- wait(1)
- elseif atkd == true and freeze == true and godtuch == false and hot == false and laser == false then
- hit.Anchored = true
- hit.BrickColor = BrickColor.new("Baby blue")
- hit.Material = "Ice"
- hiti:Play()
- wait(1)
- elseif atkd == true and freeze == false and godtuch == false and hot == true and laser == false then
- local fire = Instance.new("Fire")
- fire.Heat = 9
- fire.Size = 5
- fire.Color = Color3.new(236, 139, 70)
- fire.SecondaryColor = Color3.new(139, 80, 55)
- fire.Enabled = true
- hit.BrickColor = BrickColor.new("Really black")
- hit.Material = "Slate"
- fire.Parent = hit
- hity:Play()
- wait(0.5)
- hit:Destroy()
- wait(1)
- elseif atkd == true and freeze == false and godtuch == false and hot == false and laser == true then
- hit.CanCollide = true
- hit:BreakJoints()
- hitu:Play()
- wait(1)
- end
- end
- end))
- mouse.KeyDown:connect(debounce(function(Key)
- if(Key:lower() == "q") and godtuch == false then
- godtuch = true
- handle.BrickColor = BrickColor.new("Bright red")
- handle.Material = "Neon"
- txt2.Text = "GodTuch"
- elseif (Key:lower() == "q") and godtuch == true then
- godtuch = false
- handle.BrickColor = BrickColor.new("Reddish brown")
- handle.Material = "Wood"
- txt2.Text = "Regular"
- elseif (Key:lower() == "r") then
- damage.Value = damage.Value + 10
- elseif (Key:lower() == "t") then
- damage.Value = damage.Value - 10
- elseif (Key:lower() == "e") and freeze == false then
- freeze = true
- handle.BrickColor = BrickColor.new("Baby blue")
- handle.Material = "Ice"
- txt2.Text = "Freeze"
- elseif (Key:lower() == "e") and freeze == true then
- freeze = false
- handle.Material = "Wood"
- handle.BrickColor = BrickColor.new("Reddish brown")
- txt2.Text = "Regular"
- elseif (Key:lower() == "h") and hot == false then
- local fire = Instance.new("Fire")
- fire.Heat = 9
- fire.Size = 5
- fire.Color = Color3.new(236, 139, 70)
- fire.SecondaryColor = Color3.new(139, 80, 55)
- fire.Enabled = true
- fire.Parent = handle
- handle.Material = "Neon"
- handle.BrickColor = BrickColor.new("Deep orange")
- txt2.Text = "Fire"
- hot = true
- elseif (Key:lower() == "h") and hot == true then
- hot = false
- handle.Material = "Wood"
- handle.BrickColor = BrickColor.new("Reddish brown")
- txt2.Text = "Regular"
- handle.Fire:Destroy()
- elseif (Key:lower() == "l") and laser == false then
- local p = Instance.new("ParticleEmitter")
- local color1 = Color3.new(255, 0, 0)
- local color2 = Color3.new(255, 0, 0)
- p.Size = NumberSequence.new(0.3)
- p.Color = ColorSequence.new(color1, color2)
- p.LockedToPart = true
- p.Lifetime = NumberRange.new(60)
- p.Rate = 10000
- p.Rotation = NumberRange.new(300)
- p.RotSpeed = NumberRange.new(300)
- p.Speed = NumberRange.new(0)
- p.Enabled = true
- p.LightEmission = 0.9
- p.Parent = handle
- p.Name = "P"
- swing.SoundId = "rbxassetid://437475935"
- handle.Material = "Neon"
- handle.BrickColor = BrickColor.new("Really red")
- txt2.Text = "Laser"
- laser = true
- elseif (Key:lower() == "l") and laser == true then
- handle.P:Destroy()
- handle.Material = "Wood"
- swing.SoundId = "rbxassetid://437475935"
- handle.BrickColor = BrickColor.new("Reddish brown")
- txt2.Text = "Regular"
- laser = false
- elseif (Key:lower() == "x") then
- char.Humanoid.MaxHealth = char.Humanoid.MaxHealth + 10
- elseif (Key:lower() == "z") then
- char.Humanoid.MaxHealth = char.Humanoid.MaxHealth - 10
- elseif (Key:lower() == "c") then
- char.Humanoid.Health = char.Humanoid.MaxHealth
- elseif (Key:lower() == "f") then
- char.Humanoid.WalkSpeed = char.Humanoid.WalkSpeed + 10
- elseif (Key:lower() == "g") then
- char.Humanoid.WalkSpeed = char.Humanoid.WalkSpeed - 10
- elseif (Key:lower() == "v") then
- char.Humanoid.MaxHealth = 10000000000000000000000000000000000000000000000000000000000000000000
- elseif (Key:lower() == "b") then
- char.Humanoid.MaxHealth = 100
- elseif (Key:lower() == "n") then
- char.Humanoid.MaxHealth = 6000
- elseif (Key:lower() == "m") and music1 == false then
- music:Play()
- music1 = true
- elseif (Key:lower() == "m") and music1 == true then
- music:Stop()
- music1 = false
- end
- end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement