cross700
|
  |
| Joined: 20 Oct 2012 |
| Total Posts: 258 |
|
|
| 03 Jun 2015 04:11 PM |
| How do you find the player that YOU'RE playing as. Not a specific name, but the player in general; I tried using game.Players.Player; but that's not right, what's the RIGHT way to find a player? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
Tokimonu
|
  |
| Joined: 18 Sep 2009 |
| Total Posts: 643 |
|
|
| 03 Jun 2015 04:14 PM |
what cnt said but make it a localscript or it will error |
|
|
| Report Abuse |
|
|
|
| 03 Jun 2015 04:14 PM |
| In a LocalScript, somewhere a LocalScript can run, "game.Players.LocalPlayer" works. |
|
|
| Report Abuse |
|
|
Luminak
|
  |
| Joined: 27 May 2012 |
| Total Posts: 2809 |
|
|
| 03 Jun 2015 04:14 PM |
| game.Workspace.cross700.Torso.Transparency = 1 |
|
|
| Report Abuse |
|
|
|
| 03 Jun 2015 04:16 PM |
| No one help, he/she/it is dubble pustin' |
|
|
| Report Abuse |
|
|
notfruit
|
  |
| Joined: 21 Sep 2012 |
| Total Posts: 1386 |
|
|
| 03 Jun 2015 05:08 PM |
workspace.Parent = nil
^ that should do it |
|
|
| Report Abuse |
|
|
|
| 03 Jun 2015 05:09 PM |
| that would error not, thats RobloxLocked |
|
|
| Report Abuse |
|
|
notfruit
|
  |
| Joined: 21 Sep 2012 |
| Total Posts: 1386 |
|
|
| 03 Jun 2015 05:13 PM |
try this then:
function lol() wait(1) lol() end
|
|
|
| Report Abuse |
|
|
|
| 03 Jun 2015 05:20 PM |
@not
no its
local lol = function() print("lol brah") lol() end |
|
|
| Report Abuse |
|
|
notfruit
|
  |
| Joined: 21 Sep 2012 |
| Total Posts: 1386 |
|
|
| 03 Jun 2015 05:28 PM |
^ the wait(1) was there so that it didn't create the stack overflow immediately
nubcake |
|
|
| Report Abuse |
|
|
|
| 03 Jun 2015 05:29 PM |
| That was my whole point. lol. |
|
|
| Report Abuse |
|
|
notfruit
|
  |
| Joined: 21 Sep 2012 |
| Total Posts: 1386 |
|
|
| 03 Jun 2015 05:31 PM |
^ if you don't leave it in it will do it immediately and he will notice. If it breaks his game after a while it will drive him nuts. |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Jun 2015 05:50 PM |
When you are dealing with PlayerGui or Mouse/Key input, you can use localscripts and use: game.Players.LocalPlayer to get the player.
If you are using a global script, you have to know the player's name.
local Player = nil repeat wait() Player = game.Players:FindFirstChild("PlayerName") until Player
|
|
|
| Report Abuse |
|
|
cross700
|
  |
| Joined: 20 Oct 2012 |
| Total Posts: 258 |
|
|
| 03 Jun 2015 08:49 PM |
| None if this is working, my script's never going to work :( |
|
|
| Report Abuse |
|
|
Luminak
|
  |
| Joined: 27 May 2012 |
| Total Posts: 2809 |
|
|
| 04 Jun 2015 08:33 AM |
| cross that means your stupid |
|
|
| Report Abuse |
|
|
notfruit
|
  |
| Joined: 21 Sep 2012 |
| Total Posts: 1386 |
|
| |
|
LogicCaik
|
  |
| Joined: 21 Mar 2010 |
| Total Posts: 263 |
|
|
| 04 Jun 2015 01:32 PM |
| game.Players.LocalPlayer if this is in a localscript |
|
|
| Report Abuse |
|
|