|
| 04 Aug 2014 08:17 PM |
local group = { ["coolcardriver1"] = true; ["dannyneal1122"] = true; } game.Players.PlayerAdded:connect(function(player) if group[player.Name] then player.Chatted:connect(function(msg) if msg == "hi" then for i,v in pairs do game.Lighting.Tardis:clone() game.Lighting.Travel:clone() Tardis.Parent = game.Workspace Travel.Parent = game.Workspace end end end) end end)
so basically, idk whats wrong help plz |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2014 08:20 PM |
You don't need that for loop. Just parent the items like this:
game.Lighting.Tardis:Clone().Parent = Workspace game.Lighting.Travel:Clone().Parent = Workspace
|
|
|
| Report Abuse |
|
|
|
| 04 Aug 2014 08:32 PM |
Didn't work. local group = { ["coolcardriver1"] = true; ["dannyneal1122"] = true; } game.Players.PlayerAdded:connect(function(player) if group[player.Name] then player.Chatted:connect(function(msg) if msg == "hi" then for i,v in pairs do game.Lighting.Tardis:Clone().Parent = game.Workspace game.Lighting.Travel:Clone().Parent = game.Workspace end end end) end end) |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2014 08:34 PM |
Again, I don't think you need the loop/
local group = { ["coolcardriver1"] = true; ["dannyneal1122"] = true; }
game.Players.PlayerAdded:connect(function(player) if group[player.Name] then player.Chatted:connect(function(msg) if msg == "hi"then game.Lighting.Tardis:Clone().Parent = game.Workspace game.Lighting.Travel:Clone().Parent = game.Workspace end end) end end) |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 04 Aug 2014 08:37 PM |
| for i,v in pairs(TABLEHERE) do |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2014 08:39 PM |
| ye, it worked but how do I remove the lag from it, like only I feel it |
|
|
| Report Abuse |
|
|