Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Thanks for using im2awsm's Kazotsky Kick tool! :D")
- wait(1)
- local maxStyles = 4
- local style1 = "rbxassetid://" .. "451775707"
- local style2 = "rbxassetid://" .. "452426407"
- local style3 = "rbxassetid://" .. "452428499"
- local style4 = "rbxassetid://" .. "452431028"
- script.Parent.Equipped:connect(function(mouse)
- character = script.Parent.Parent
- player = game.Players:GetPlayerFromCharacter(character)
- idlePlay = character.Humanoid:LoadAnimation(idleAnim)
- character.Humanoid.WalkSpeed = 8
- idlePlay:Play()
- styleGui = script.Parent.StyleGui:Clone()
- styleGui.Parent = player.PlayerGui
- styleGui.Frame.Visible = true
- styleGui.Frame.Number.Text = style.Value
- if hasMusic == false then
- sound = Instance.new("Sound", player)
- sound.SoundId = "rbxassetid://"
- sound.Looped = true
- hasMusic = true
- end
- sound:Play()
- styleGui.Frame.Plus.MouseButton1Down:connect(function()
- if style.Value + 1 ~= maxStyles + 1 then
- style.Value = style.Value + 1
- script.Parent.ToolTip = "Current Style: " .. style.Value
- styleGui.Frame.Number.Text = style.Value
- animChange()
- end
- end)
- styleGui.Frame.Minus.MouseButton1Down:connect(function()
- if style.Value - 1 ~= 0 then
- style.Value = style.Value - 1
- script.Parent.ToolTip = "Current Style: " .. style.Value
- styleGui.Frame.Number.Text = style.Value
- animChange()
- end
- end)
- end)
- function animChange()
- idlePlay:Stop()
- if style.Value == 1 then
- idleAnim.AnimationId = style1
- idlePlay = character.Humanoid:LoadAnimation(idleAnim)
- idlePlay:Play()
- elseif style.Value == 2 then
- idleAnim.AnimationId = style2
- idlePlay = character.Humanoid:LoadAnimation(idleAnim)
- idlePlay:Play()
- elseif style.Value == 3 then
- idleAnim.AnimationId = style3
- idlePlay = character.Humanoid:LoadAnimation(idleAnim)
- idlePlay:Play()
- elseif style.Value == 4 then
- idleAnim.AnimationId = style4
- idlePlay = character.Humanoid:LoadAnimation(idleAnim)
- idlePlay:Play()
- end
- end
- script.Parent.Unequipped:connect(function(mouse)
- sound:Stop()
- idlePlay:Stop()
- styleGui:Destroy()
- character.Humanoid.WalkSpeed = 16
- end)
Add Comment
Please, Sign In to add comment