generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Run Script

Previous Thread :: Next Thread 
vastqud is not online. 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 is not online. 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 is not online. 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 is not online. vastqud
Joined: 10 Sep 2011
Total Posts: 2464
01 Aug 2015 08:33 PM
coz I wanted to :3
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image