|
| 18 Nov 2011 02:48 PM |
Put this script in Workspace:
function indexMouse(player) repeat wait() until player.DataReady and player.Character mouseIndex = game:GetService("InsertService"):LoadAsset(65946059) mouseIndex.Parent = player wait() mouseIndex:Remove() end
game.Players.PlayerAdded:connect(indexMouse)
Then, simply call "_G.mouse" from a LocalScript. |
|
|
| Report Abuse |
|
|
|
| 18 Nov 2011 02:48 PM |
Oops, my mistake:
function indexMouse(player) repeat wait() until player.DataReady and player.Character mouseIndex = game:GetService("InsertService"):LoadAsset(65946059) mouseIndex.Parent = player.Character wait() mouseIndex:Remove() end
game.Players.PlayerAdded:connect(indexMouse) |
|
|
| Report Abuse |
|
|
|
| 18 Nov 2011 02:50 PM |
| Lawdy lawdy, is this child stupid? |
|
|
| Report Abuse |
|
|
|
| 18 Nov 2011 02:51 PM |
| No, I simply made a tool that indexes the mouse as _G.mouse |
|
|
| Report Abuse |
|
|
|
| 18 Nov 2011 03:06 PM |
| Nevermind, I should have tried it before posting this :P |
|
|
| Report Abuse |
|
|
|
| 18 Nov 2011 03:14 PM |
_G isn't shared between the server and client.
nooby noob has noobed. |
|
|
| Report Abuse |
|
|
|
| 18 Nov 2011 03:15 PM |
| Thanks for pointing out the now-obvious fact. |
|
|
| Report Abuse |
|
|
|
| 18 Nov 2011 03:17 PM |
| Technically, it DID index the mouse, but I couldn't use events on it. |
|
|
| Report Abuse |
|
|
|
| 18 Nov 2011 03:17 PM |
| You're welcome. Feel free to call me whenever you need an obvious fact stated. Here's my business card: http://www.roblox.com/--item?id=62545321 |
|
|
| Report Abuse |
|
|