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: how do I make it so..

Previous Thread :: Next Thread 
dasfunny is not online. 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
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
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 is not online. 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
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
12 Oct 2012 10:00 PM
No ends, no calls.


¬ new day, new story ¶
Report Abuse
dasfunny is not online. dasfunny
Joined: 24 Jan 2011
Total Posts: 911
12 Oct 2012 10:02 PM
... how would i correct dat.
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
12 Oct 2012 10:03 PM
Add ends. Add calls.


¬ new day, new story ¶
Report Abuse
dasfunny is not online. 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
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
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
Telecronbot is not online. Telecronbot
Joined: 16 Apr 2011
Total Posts: 238
12 Oct 2012 10:11 PM
"game.Players.PlayerAdded:connect(function(player)"
Doesn't he need to close off the function?
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
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 is not online. 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 is not online. 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 is not online. dasfunny
Joined: 24 Jan 2011
Total Posts: 911
12 Oct 2012 11:08 PM
still no.
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