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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 22 Jun 2013 |
| Total Posts: 164 |
|
|
| 19 May 2014 01:03 PM |
Thank you very much for clearing that up :)
--ajmhm1111 |
|
|
| Report Abuse |
|
|