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: Where is it inserting from?

Previous Thread :: Next Thread 
stevenF50 is not online. stevenF50
Joined: 18 Sep 2009
Total Posts: 2359
03 Feb 2013 07:29 AM
    function Regen()
        local person = script.Parent.Parent.Parent.Parent.Parent.Parent
        local name = person.Name
        local model = Game:GetService("InsertService"):LoadAsset(41993477)
        if( model:IsA("Model") ) then
            model.Name = name.." Truck"
            model.Truck.Owner.Value = name
            print(model.Name)
            if Workspace:FindFirstChild(name.." Truck") == nil then
                local tab = Game:GetService("InsertService"):Insert( model )
                model:MoveTo(Workspace:FindFirstChild(script.Parent.Parent.Parent.Parent.Regen.Name..script.Parent.Parent.Parent.Parent.Regen.Value).Pos.Position)
                script.Parent.Parent.Parent.Parent:Remove()
            end
        end
    end
    
    
    script.Parent.MouseButton1Click:connect(Regen)

Where is it inserting the truck from?
Report Abuse
stevenF50 is not online. stevenF50
Joined: 18 Sep 2009
Total Posts: 2359
03 Feb 2013 07:57 AM
??????
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
03 Feb 2013 08:14 AM
My assumption is you got this from free models...

LoadAsset(41993477)
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