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
 

May somebody help me with this chat script?

Previous Thread :: Next Thread 
U52 is not online. U52
Joined: 07 May 2013
Total Posts: 49
19 Jan 2014 12:47 PM
Words = {script.Parent:GetChildren()}

function Chatted(Msg, Speaker)
for i= 1, #Words do
for AllWords, Word in pairs(Words[i]) do
if string.find(Msg, string.lower(Word)) then
Chatbox = Instance.new("Dialog")
Chatbox.Parent = script.Parent.Parent.Head
Mesg = script.Parent:FindFirstChild(Word)
Chatbox.InitialPrompt = Mesg.Value
Chatbox.InUse = true
end
end
end
end

game.Players.ChildAdded:connect(function(Child)
if Child.className == "Player" then
Child.Chatted:connect(function(Msg)Chatted(Msg, Child)end)
end
end)

Messed with dat anti-oder script and I'm trying to instead of using a table to just use values in the script's parent.

The name of the Value is what the person must say, and the Value of that is what the Dialog is suppose to say.

The Dialog is then suppose to appear to be in use although the Dialog doesn't change at all when tested.
Report Abuse
U52 is not online. U52
Joined: 07 May 2013
Total Posts: 49
19 Jan 2014 03:08 PM
bump1
Report Abuse
U52 is not online. U52
Joined: 07 May 2013
Total Posts: 49
19 Jan 2014 03:44 PM
bump2

Twenty Seven views, and yet, not a single reply, as I notice there is replies from REAL SCRIPTERS on other threads.
Report Abuse
U52 is not online. U52
Joined: 07 May 2013
Total Posts: 49
19 Jan 2014 03:59 PM
bump3

Thirty One views, still not a single reply, except bumps.
Report Abuse
Andrew1234567mmm is not online. Andrew1234567mmm
Joined: 14 Oct 2009
Total Posts: 691
19 Jan 2014 04:10 PM
I seenone error is that your script is doing wordsnfrom scripts parent which also includes this script
Report Abuse
U52 is not online. U52
Joined: 07 May 2013
Total Posts: 49
19 Jan 2014 04:20 PM
Could somebody fix it for me? bump
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
19 Jan 2014 04:21 PM
Child.className > ClassName ? (Player function)
Report Abuse
Andrew1234567mmm is not online. Andrew1234567mmm
Joined: 14 Oct 2009
Total Posts: 691
19 Jan 2014 04:23 PM
Vlek that is so wrong in so many ways
Report Abuse
U52 is not online. U52
Joined: 07 May 2013
Total Posts: 49
19 Jan 2014 04:27 PM
@Andrew: If its 'wrong', fix it then.
Report Abuse
Andrew1234567mmm is not online. Andrew1234567mmm
Joined: 14 Oct 2009
Total Posts: 691
19 Jan 2014 04:29 PM
Sorry on mobile I can't fix it atm, alsomi already said the error no need to fix your script
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
19 Jan 2014 04:30 PM
1: i mean isnt className should be like ClassName?
2: script.Parent:getchildren will also return the script, would that be a problem?
Report Abuse
Andrew1234567mmm is not online. Andrew1234567mmm
Joined: 14 Oct 2009
Total Posts: 691
19 Jan 2014 04:32 PM
Vlek 1. Is className and 2. Is correct I said that and yes it is a problem
Report Abuse
U52 is not online. U52
Joined: 07 May 2013
Total Posts: 49
19 Jan 2014 05:04 PM
bump
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
19 Jan 2014 05:07 PM
U52, error is given, you can fix it.
Im on iPad so im not gonna do that.
Report Abuse
U52 is not online. U52
Joined: 07 May 2013
Total Posts: 49
19 Jan 2014 05:08 PM
bump.
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
19 Jan 2014 05:10 PM
Why are you bumping?
Report Abuse
U52 is not online. U52
Joined: 07 May 2013
Total Posts: 49
19 Jan 2014 05:28 PM
bumping.
Report Abuse
U52 is not online. U52
Joined: 07 May 2013
Total Posts: 49
19 Jan 2014 06:26 PM
bump...
Report Abuse
U52 is not online. U52
Joined: 07 May 2013
Total Posts: 49
19 Jan 2014 06:37 PM
.
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
19 Jan 2014 06:40 PM
Words = script.Parent:GetChildren()
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