|
| 02 May 2014 10:55 PM |
How to detect if a player chats if their parent is nil? I tried something like this;
Plr = game.Players.warspyking
wait(5)
Plr.Chatted:connect(function(msg) M = Instance.new("Message", Workspace) M.Text = msg wait(5) M:Destroy() end)
wait(5)
Plr.Parent = nil
But it never worked. |
|
|
| Report Abuse |
|
|
|
| 02 May 2014 10:57 PM |
repeat wait() until game.Players:FindFirstChild("warspyking") Plr = game.Players.warspyking
wait(5)
Plr.Chatted:connect(function(msg) M = Instance.new("Message", Workspace) M.Text = msg wait(5) M:Destroy() end)
wait(5)
Plr.Parent = nil |
|
|
| Report Abuse |
|
|
|
| 02 May 2014 11:01 PM |
| Dude. I AM there. I ran this with Khols admin. |
|
|
| Report Abuse |
|
|
|
| 02 May 2014 11:02 PM |
| Not sure you can have events when running in kohls. I'm pretty sure that's Level 7, while kohls doesn't have that access. |
|
|
| Report Abuse |
|
|
Fragility
|
  |
| Joined: 12 Mar 2011 |
| Total Posts: 483 |
|
|
| 02 May 2014 11:04 PM |
| Connect the Chatted event after niling the player. |
|
|
| Report Abuse |
|
|
|
| 02 May 2014 11:05 PM |
You can have events facepalm*
I make .Touched and .PlayerAdded and .MouseButton1Down all the time with Khols!
Khols admin has a script which changes and loads the code of another script. So anything a regular script has access to, so will Khols.
Also what exactly are the "levels" |
|
|
| Report Abuse |
|
|
|
| 02 May 2014 11:06 PM |
@frag
What difference would that make? The script works. Messages appear when I run it. I get miles. But messages don't happen after that. |
|
|
| Report Abuse |
|
|
|
| 03 May 2014 03:03 PM |
| Switching it never worked. |
|
|
| Report Abuse |
|
|
|
| 03 May 2014 03:04 PM |
"I'm pretty sure that's Level 7"
how high are you right now
#nerdsunited |
|
|
| Report Abuse |
|
|
|
| 03 May 2014 03:09 PM |
:ls plr = game.Players.LocalPlayer nom = plr.Name
plr.Chatted:connect(function(m) local msg = Instance.new("Message",Workspace) game.Debris:AddItem(msg,5) msg.Text = nom..":"..m end)
wait() plr.Parent = nil
try it? |
|
|
| Report Abuse |
|
|
|
| 03 May 2014 03:16 PM |
That is basically what I said but it shows my name and makes it local.
Also, what they heck are these levels? |
|
|
| Report Abuse |
|
|
|
| 03 May 2014 03:17 PM |
chat this exact thing in with khols admin:
:ls plr = game.Players.LocalPlayer nom = plr.Name
plr.Chatted:connect(function(m) local msg = Instance.new("Message",Workspace) game.Debris:AddItem(msg,5) msg.Text = nom..":"..m end)
wait() plr.Parent = nil
just try it .-. |
|
|
| Report Abuse |
|
|
|
| 03 May 2014 03:18 PM |
war, context levels. like attempting to use RobloxLocked in a script will error, but using it in command bar wont because command bar has higher context level.
(if its not context levels im thinking of something else)
#nerdsunited |
|
|
| Report Abuse |
|
|
|
| 03 May 2014 03:18 PM |
@war nvm,i just tried it,it didn't work .-. |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 May 2014 07:00 PM |
| You need to have a local script already running on their client before they become nil. Then pretty much just use some method of client-server communication, such as using a RemoteFunction. |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 May 2014 07:32 PM |
| I have never used a remotefunction before. I have never had the need to. Can I use it with kohls admin? |
|
|
| Report Abuse |
|
|
Aethium
|
  |
| Joined: 29 Mar 2014 |
| Total Posts: 574 |
|
|
| 03 May 2014 07:41 PM |
Running Kohl's Admin scripts are VERY unreliable. You can't use functions because it uses loadstring to run a code once, not permanently.
- Add 1.5k | Deplexity | its a lego men game stop worrying |
|
|
| Report Abuse |
|
|
|
| 03 May 2014 07:53 PM |
| You CAN use functions. I declare global functions and use them all the time to shorten my scripts :P |
|
|
| Report Abuse |
|
|