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: ControllerService

Previous Thread :: Next Thread 
ajmhm1111 is not online. ajmhm1111
Joined: 22 Jun 2013
Total Posts: 164
19 May 2014 11:40 AM
Hello,

After reading on the wiki about the ControllerService I found out that it help the Controller objects which registered the input of the client's computer. I then saw the example script showing how to eliminate the Players controller.
--Script seen on wiki.roblox.com/index.php/Controller
(Not sure if wiki filter will filter that)

However I saw no mention of the players name. So I ask:

Is there any way for a localscript to access the players controller is there is more that one person on the server?

--ajmhm1111
Report Abuse
Scripterity is not online. Scripterity
Joined: 30 Mar 2014
Total Posts: 677
19 May 2014 12:40 PM
local controllerService = game:GetService("ControllerService")
controllerService.ChildAdded:connect(function(player)
local controller = controllerService:FindFirstChild(player)[1]
controller.Parent = nil
wait(5)
controller.Parent = controllerService
end)

This maybe I wasnt really sure what you meant and was pretty sure this could work maybe.
Report Abuse
ajmhm1111 is not online. ajmhm1111
Joined: 22 Jun 2013
Total Posts: 164
19 May 2014 12:57 PM
Hello,

So you are saying the controller object's name is the player's name?

So when I join a game my controller objects name will be ajmhm1111?

--ajmhm1111
Report Abuse
Scripterity is not online. Scripterity
Joined: 30 Mar 2014
Total Posts: 677
19 May 2014 12:59 PM
Im not saying that but that script does get your What ever its called and no I dont know the name. That script just gets the added character controller.
Report Abuse
ajmhm1111 is not online. ajmhm1111
Joined: 22 Jun 2013
Total Posts: 164
19 May 2014 01:03 PM
Thank you very much for clearing that up :)

--ajmhm1111
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