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
 

works in studio, not in-game

Previous Thread :: Next Thread 
Exceptive is online. Exceptive
Joined: 28 May 2012
Total Posts: 6302
13 Sep 2016 02:24 PM
its not any other script that is preventing this tool from working.
the speed only works in studio, has no effect in-game

local Tool = script.Parent
local Bag = Tool:WaitForChild("Handle")

local Character
local Humanoid

local Unequip = script:WaitForChild('Unequip')

local function OnEquipped()
Character = Tool.Parent
Humanoid = Character:WaitForChild('Humanoid')
Humanoid.WalkSpeed = 22.0
end

local function OnUnequipped()
Humanoid.WalkSpeed = 16.0
end

Tool.Equipped:connect(OnEquipped)
Tool.Unequipped:connect(OnUnequipped)

Unequip.OnInvoke = function()
Humanoid.Walkspeed = 16.0
end


#code Print ("Dream Catalog") wait(1) -- Exceptive
Report Abuse
FutureWebsiteOwner is online. FutureWebsiteOwner
Joined: 29 Jul 2014
Total Posts: 468
13 Sep 2016 02:29 PM
2 questions:

1. Any error output in-game?
2. FilteringEnabled true or false?


Report Abuse
Exceptive is online. Exceptive
Joined: 28 May 2012
Total Posts: 6302
13 Sep 2016 02:30 PM
filtering is enabled


#code Print ("Dream Catalog") wait(1) -- Exceptive
Report Abuse
FutureWebsiteOwner is online. FutureWebsiteOwner
Joined: 29 Jul 2014
Total Posts: 468
13 Sep 2016 02:31 PM
make sure the script is a localscript, and you're probably going to have to use remoteevents to change the humanoid's speed


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