|
| 26 Aug 2011 06:56 PM |
could i just do:
game.Players.MrgamesNwatch.Chatted:connect(function(msg) |
|
|
| Report Abuse |
|
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 |
|
|
| 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 |
|
|
| 26 Aug 2011 07:35 PM |
| oh and subject = "MrgamesNwatch" |
|
|
| Report Abuse |
|
| |
|
| 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 |
|
|
| 26 Aug 2011 08:20 PM |
| i've tried it in SB and in server.... |
|
|
| Report Abuse |
|