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
 

Re: .chatted

Previous Thread :: Next Thread 
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
26 Aug 2011 06:56 PM
could i just do:

game.Players.MrgamesNwatch.Chatted:connect(function(msg)
Report Abuse
booing is not online. booing
Joined: 04 May 2009
Total Posts: 6594
26 Aug 2011 07:00 PM
It doesn't matter.
player.Chatted:connect(function with args needed)
e.g. player.Chatted:connect(function(msg) print(msg) end)
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
26 Aug 2011 07:33 PM
ok, well this script doesn't seem to work... i do believe it has to do with the .chatted event.


local mdebounce = false
game.Players[subject].Chatted:connect(function(msg)
if mdebounce == false then
mdebounce = true
local message = Instance.new("Hint")
message.Parent = workspace
message.Text = "Minion Script v1.0 By MrgamesNwatch & Techboy6601 Loaded"
wait(2)
message:remove()
end
print("lolololol chatting is fun")
if msg:sub(1,2) == "m/" then
local m = Instance.new("Message")
m.Text = string.sub(msg,3)
m.Parent = Workspace
wait(2)
m:remove()
end
if string.sub(msg,1,2) == "h/" then
local h = Instance.new("Hint")
h.Text = string.sub(msg,3)
h.Parent = Workspace
wait(2)
h:remove()
end
if string.sub(msg,1,7) == "follow/" then
for i,v in pairs(game.Workspace:GetChildren()) do
if v.Name == subject.."'s Minion" then
person = string.sub(msg,7)
v.targ.Value = person
v.mode.Value = 2
end
end
end
if string.sub(msg,1,10) == "follow me/" then
for i,v in pairs(game.Workspace:GetChildren()) do
if v.Name == subject.."'s Minion" then
v.mode.Value = 1
end
end
end
if string.sub(msg,1,4) == "chat/" then
for i,v in pairs(game.Workspace:GetChildren()) do
if v.Name == subject.."'s Minion" then
game:GetService("Chat"):Chat(v.Head,string.sub(msg,4),Enum.ChatColor.ChatColorGreen)
end
end
end
if string.sub(msg,1,3) == "ff/" then
for i,v in pairs(game.Workspace:GetChildren()) do
if v.Name == subject.."'s Minion" then
local f = Instance.new("ForceField")
f.Parent = v
end
end
end
end)
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
26 Aug 2011 07:35 PM
oh and subject = "MrgamesNwatch"
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
26 Aug 2011 08:12 PM
bump
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
26 Aug 2011 08:18 PM
Did you put this as a script in your place to run when you joined? Or something you add at afterwards?
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
26 Aug 2011 08:20 PM
i've tried it in SB and in server....
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