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 » Scripting Helpers
Home Search
 

Re: i need a working script

Previous Thread :: Next Thread 
omade is not online. omade
Joined: 21 Jul 2011
Total Posts: 102
28 Aug 2013 09:31 PM
i need a run ... a run when you press R or whatever button it run
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
28 Aug 2013 09:35 PM
Put this in a LocalScript in StarterPack.

wait(.1)
repeat wait() game.Players.LocalPlayer
local p = game.Players.LocalPlayer
local m = p:GetMouse()

local speed = 20 --set to run speed

m.KeyDown:connect(function(k)
k = k:lower()
if k == "r" then
if p.Character.Humanoid.WalkSpeed == speed then
p.Character.Humanoid.WalkSpeed = 16
else
p.Character.Humanoid.WalkSpeed = speed
end
end
end)

http://wiki.roblox.com/index.php/User:ElectricBlaze
Report Abuse
omade is not online. omade
Joined: 21 Jul 2011
Total Posts: 102
28 Aug 2013 09:36 PM
thanks very much
Report Abuse
domorox17 is not online. domorox17
Joined: 06 Mar 2012
Total Posts: 1710
28 Aug 2013 09:37 PM
heres a magical script that freezes time when u touch teh brick it is in. ok, so put a script in an anchired brick and enter this script:
ha = x
function hai()
while true do
print (x .. "u ju" .. "st go" .. "pwnd!"
end

script.Parent.Touched:connect(hai)
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
28 Aug 2013 09:43 PM
No problem.

http://wiki.roblox.com/index.php/User:ElectricBlaze
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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