vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
|
| 01 Aug 2015 08:13 PM |
local Stam = script.Parent.Frame
local Mouse = game.Players.LocalPlayer:GetMouse()
local player = game.Players.LocalPlayer.Character.Humanoid
local deBounceHa = true
Mouse.KeyDown:connect(function(key) if key=="v" then player.WalkSpeed = 24 Stam.Size = UDim2.new(0.05,100,0,100) if deBounceHa then deBounceHa = false wait(1) Stam.Size = UDim2.new(0.04,100,0,100) wait(2) Stam.Size = UDim2.new(0.03,100,0,100) wait(3) Stam.Size = UDim2.new(0.02,100,0,100) wait(3) Stam.Size = UDim2.new(0.01,100,0,100) Stam.Int.Value = 0 if Stam.Int.Value == 0 then deBounceHa = true player.WalkSpeed = 16 Mouse.KeyUp:connect(function(key) if key=="v" then if Stam.Int2.Value == 2 then player.WalkSpeed = 16 Stam.Size = UDim2.new(0.03,100,0,100) if deBounceHa then deBounceHa = false wait(7) Stam.Size = UDim2.new(0.1,100,0,100) Stam.Int2.Value = 1 end end end end) end end end end)
That is my run script, and it is VERY glitchy and buggy and I know I can make it better, but I just don't know how I can do that. Can anyone fix it for me? Thanks.
BTW this one only works in studio mode XD |
|
|
| Report Abuse |
|
cgjnm
|
  |
| Joined: 22 Dec 2011 |
| Total Posts: 2347 |
|
|
| 01 Aug 2015 08:19 PM |
local player = game.Players.LocalPlayer local mouse = player:GetMouse() local char = player.Character or player.CharacterAdded:wait() local hum = char:WaitForChild'Humanoid' local Stam = script.Parent.Frame
local deBounceHa = true
game:GetService("UserInputService").InputBegan:connect(function(Input,Typing) if not Typing and Input.KeyCode == Enum.KeyCode.V then hum.WalkSpeed = 24 end end) --You can add sizes and all that junk
-- I also noticed that you were waiting and changing sizes, check the wiki for 'For' |
|
|
| Report Abuse |
|
baldo46
|
  |
| Joined: 28 Jul 2008 |
| Total Posts: 1254 |
|
|
| 01 Aug 2015 08:19 PM |
| Why do you have different wait times between the resizes? |
|
|
| Report Abuse |
|
vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
| |