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: What wrong with this?

Previous Thread :: Next Thread 
xhowtohackrobuxx is not online. xhowtohackrobuxx
Joined: 14 May 2012
Total Posts: 228
25 May 2013 03:44 AM
X = script.Parent

function onRunning(speed)
if speed>0 then
pose = "Running"
X.Torso["Right Shoulder"].CurrentAngle = -1.5
X.Torso["Left Shoulder"].CurrentAngle = 1.5
X.Torso["Right Shoulder"].DesiredAngle = -1.5
X.Torso["Left Shoulder"].DesiredAngle = 1.5
X.Torso.BodyVelocity.velocity = X.Torso.CFrame.lookVector *80
X.Torso.BodyVelocity.maxForce = Vector3.new(99999999, 0, 99999999)
else
pose = "Standing"
X.Torso.BodyVelocity.maxForce = Vector3.new(0, 0, 0)
end
end

X.Humanoid.Running:connect(onRunning)

walkingSpeed = 20
runningSpeed = 30


Walk = 0
Bin = script.Parent


function onButton1Down(mouse)
Walk = 0
while Walk == 0 do
game.Players.localPlayer.Character.Humanoid.WalkSpeed = runningSpeed
wait(1.0)
end
game.Players.localPlayer.Character.Humanoid.WalkSpeed = walkingSpeed
end


function onButton1Up(mouse)
Walk = 1
end



function onSelected(mouse)
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
mouse.Button1Up:connect(function() onButton1Up(mouse) end)
end
Bin.Selected:connect(onSelected)
Report Abuse
LocalRandomScripter is not online. LocalRandomScripter
Joined: 26 Feb 2013
Total Posts: 308
25 May 2013 03:58 AM
[ Content Deleted ]
Report Abuse
WishNite is not online. WishNite
Joined: 11 Feb 2009
Total Posts: 15828
25 May 2013 03:59 AM
Since this is a local script, try adding a repeat wait() until game.Players.LocalPlayer at top.
Report Abuse
LocalRandomScripter is not online. LocalRandomScripter
Joined: 26 Feb 2013
Total Posts: 308
25 May 2013 04:00 AM
[ Content Deleted ]
Report Abuse
xhowtohackrobuxx is not online. xhowtohackrobuxx
Joined: 14 May 2012
Total Posts: 228
25 May 2013 04:04 AM
Thank.
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