dasfunny
|
  |
| Joined: 24 Jan 2011 |
| Total Posts: 911 |
|
|
| 12 Oct 2012 09:39 PM |
| when I say Hi it puts a team in the teams folder. |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2012 09:43 PM |
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) if msg == "Hi" then local team = Instance.new("Team", game.Teams) end end) end) |
|
|
| Report Abuse |
|
|
dasfunny
|
  |
| Joined: 24 Jan 2011 |
| Total Posts: 911 |
|
|
| 12 Oct 2012 09:58 PM |
halp with this script?
function onChatted(msg, recipient, speaker) local source = string.lower(speaker.Name) msg = string.lower(msg) if (msg == "Make me immortal.") then game.Lighting.Immortal:Clone().Parent = workspace game.Lighting.ImmortalSpawn:Clone().Parent = Teams |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2012 10:00 PM |
No ends, no calls.
¬ new day, new story ¶ |
|
|
| Report Abuse |
|
|
dasfunny
|
  |
| Joined: 24 Jan 2011 |
| Total Posts: 911 |
|
|
| 12 Oct 2012 10:02 PM |
| ... how would i correct dat. |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2012 10:03 PM |
Add ends. Add calls.
¬ new day, new story ¶ |
|
|
| Report Abuse |
|
|
dasfunny
|
  |
| Joined: 24 Jan 2011 |
| Total Posts: 911 |
|
|
| 12 Oct 2012 10:08 PM |
okay
game.Players.PlayerAdded:connect(function(player) function onChatted(msg, recipient, speaker) local source = string.lower(speaker.Name) msg = string.lower(msg) if (msg == "Make me immortal.") then game.Lighting.Immortals:Clone().Parent = workspace game.Lighting.ImmortalSpawn:Clone().Parent = Teams end end) end)
output: Workspace.Immortal:9: unexpected symbol near ')'
|
|
|
| Report Abuse |
|
|
|
| 12 Oct 2012 10:09 PM |
You only need 2 ends and remove the parentheses. And you still forgot to call.
¬ new day, new story ¶ |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2012 10:11 PM |
"game.Players.PlayerAdded:connect(function(player)" Doesn't he need to close off the function? |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2012 10:13 PM |
| But the second end has a parentheses. Didn't see that either. Lol. That's fine. |
|
|
| Report Abuse |
|
|
dasfunny
|
  |
| Joined: 24 Jan 2011 |
| Total Posts: 911 |
|
|
| 12 Oct 2012 10:36 PM |
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) if msg == "Make me immortal." then game.Lighting.Immortals:Clone().Parent = workspace game.Lighting.ImmortalSpawn:Clone().Parent = Teams end end) end)
???? wont work PLease fix it with the script i just cant figure whats going wrong. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 12 Oct 2012 10:47 PM |
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) if msg == "Make me immortal." and player.Name == "dasfunny" then game.Lighting.Immortals:Clone().Parent = game.Workspace game:GetService("Teams")--You have this in explorer? game.Lighting.ImmortalSpawn:Clone().Parent = game.Teams end end) end)
|
|
|
| Report Abuse |
|
|
dasfunny
|
  |
| Joined: 24 Jan 2011 |
| Total Posts: 911 |
|
| |
|