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
 

Script Not Running with no Error Shown in Output

Previous Thread :: Next Thread 
Corenought is not online. Corenought
Joined: 22 Dec 2009
Total Posts: 186
22 Jun 2013 11:06 PM
It is a LocalScript placed in the StarterPack and is therefore transfered into the player's backpack. It's supposed to reduce the player's character's speed down to 12 and then print a message confirming that it worked. None of these things happened. The script is below.


Player = script.Parent.Parent

Player.CharacterAdded:connect(function(Character)
Character.Humanoid.WalkSpeed = 12
print("WalkSpeed of " .. player.Name .. " reduced to 12")
end)

Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
22 Jun 2013 11:08 PM
if it's a localscript in the backpack, just change it to this:

repeat wait() until Game.Players.LocalPlayer.Character
Game.Players.LocalPlayer.Character.Humanoid.WalkSpeed=12
Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
22 Jun 2013 11:08 PM
OT: That was my 1,900th post. :)
Report Abuse
Voidion is not online. Voidion
Joined: 01 Aug 2011
Total Posts: 2668
22 Jun 2013 11:08 PM
local Player = game.Players.LocalPlayer

Player.Character.Humanoid.WalkSpeed = 12
print("WalkSpeed of " .. Player.Name .. " reduced to 12")
Report Abuse
Corenought is not online. Corenought
Joined: 22 Dec 2009
Total Posts: 186
22 Jun 2013 11:11 PM
I tried Samuel's script and it worked, problem solved. Thanks.
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