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
 

Chatted when nil

Previous Thread :: Next Thread 
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
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
KOTwarrior is not online. KOTwarrior
Joined: 13 Jun 2012
Total Posts: 4376
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
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
02 May 2014 11:01 PM
Dude. I AM there. I ran this with Khols admin.
Report Abuse
KOTwarrior is not online. KOTwarrior
Joined: 13 Jun 2012
Total Posts: 4376
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 is online. Fragility
Joined: 12 Mar 2011
Total Posts: 483
02 May 2014 11:04 PM
Connect the Chatted event after niling the player.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
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
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
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
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
03 May 2014 03:03 PM
Switching it never worked.
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
03 May 2014 03:04 PM
"I'm pretty sure that's Level 7"

how high are you right now

#nerdsunited
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
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
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
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
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
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
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
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
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
03 May 2014 03:18 PM
@war
nvm,i just tried it,it didn't work
.-.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
03 May 2014 06:15 PM
Someone please help D:
Report Abuse
dennis96411 is not online. dennis96411
Joined: 06 Mar 2009
Total Posts: 1079
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
FreeScriptMaker is not online. FreeScriptMaker
Joined: 29 Nov 2013
Total Posts: 2275
03 May 2014 07:01 PM
^
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
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 is not online. 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
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
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
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