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: Why won't this work?

Previous Thread :: Next Thread 
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
31 May 2012 12:18 PM
game.Players.PlayerAdded:connect(function(player)
local model = Instance.new("Model",workspace)
model.Name = player.Name.."'s Coaster"
local tag = Instance.new("StringValue",model)
tag.Name = "Tag"
tag.Value = ""..player.Name
local starterkit = game.Lighting:FindFirstChild("StarterKit")
local new = starterkit:Clone()
new.Parent = model
local stuff = new:GetChildren()
stuff.Parent = model
new:Remove()
end)

***NO OUTPUT***
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
31 May 2012 12:25 PM
game.Players.PlayerAdded:connect(function(player)
local model = Instance.new("Model",workspace)
model.Name = player.Name.."'s Coaster"
local tag = Instance.new("StringValue",model)
tag.Name = "Tag"
tag.Value = ""..player.Name
local starterkit = game.Lighting:FindFirstChild("StarterKit")
local new = starterkit:Clone()
new.Parent = model
local stuff = new:GetChildren()
for i = 1,#stuff do
stuff[i].Parent = model
new:Destroy()
end
end)

Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
31 May 2012 12:30 PM
It works but there's one problem, there's only one model that didn't get deleted, there's a total of three models in the character's coaster model.
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
31 May 2012 12:30 PM
I want ALL the models to NOT get deleted in the character's coaster model.
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
31 May 2012 12:47 PM
BUMP!!
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
01 Jun 2012 11:28 AM
Bump -.-
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
01 Jun 2012 11:29 AM
NEVERMIND I GOT IT! :D
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
01 Jun 2012 11:30 AM
for _,v in pairs (BLAH) do
if not v:IsA("Model") then
v:Destroy()
end
end
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
01 Jun 2012 11:31 AM
^

Too late bro :P
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
01 Jun 2012 11:32 AM
I was actualy on time but the data had to travel to le server and in those crucial milliseconds he posted dat. /troll

Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
01 Jun 2012 11:40 AM
I thought at first when you said "time" you were going to mention the big bang theory :P
Report Abuse
TDesire is not online. TDesire
Joined: 24 May 2012
Total Posts: 35
01 Jun 2012 01:02 PM
You watch alot of TBS bro.
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