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: Model inseter script anyone got one?

Previous Thread :: Next Thread 
SellingStuff22 is not online. SellingStuff22
Joined: 14 May 2014
Total Posts: 81
16 May 2014 06:06 AM
?
Report Abuse
masterCameron101 is online. masterCameron101
Joined: 28 Mar 2010
Total Posts: 1377
16 May 2014 06:09 AM
id=123
game:GetService("InsertService"):LoadAsset(id).Parent=game.Workspace

~masterCameron101, advanced Lua programmer, certified in Photoshop and geek. Have I help you? If so; support me by buying gear from any of my games, I'd appreciate it!~
Report Abuse
Seizurezxzz is not online. Seizurezxzz
Joined: 12 Feb 2013
Total Posts: 1297
16 May 2014 06:10 AM
Wait, you want to clone a model?

modelcreate = game.Lighting.model:clone()
mdelcreate.Parent = game.Workspace

or just make one?
model = Instance.new("Model", game.Workspace)
model.Name = Model1 --Chose a name for it here
Report Abuse
SellingStuff22 is not online. SellingStuff22
Joined: 14 May 2014
Total Posts: 81
16 May 2014 06:11 AM
bump
Report Abuse
SellingStuff22 is not online. SellingStuff22
Joined: 14 May 2014
Total Posts: 81
16 May 2014 06:11 AM
Say im at my friends game i want a script where in-game i say it to summon a model
Report Abuse
Seizurezxzz is not online. Seizurezxzz
Joined: 12 Feb 2013
Total Posts: 1297
16 May 2014 06:14 AM
You mean an admin command?
Like kohls admin commands?
:insert MODELID
Report Abuse
masterCameron101 is online. masterCameron101
Joined: 28 Mar 2010
Total Posts: 1377
16 May 2014 06:20 AM
Model has to be yours I think.

~masterCameron101, advanced Lua programmer, certified in Photoshop and geek. Have I help you? If so; support me by buying gear from any of my games, I'd appreciate it!~
Report Abuse
SellingStuff22 is not online. SellingStuff22
Joined: 14 May 2014
Total Posts: 81
16 May 2014 06:22 AM
I got some models to import to a place but i dont have the script to do it bump
Report Abuse
Ace23333 is not online. Ace23333
Joined: 20 Nov 2011
Total Posts: 1341
16 May 2014 06:27 AM
model = modelpathhere
player = game.Players.LocalPlayer

function Chatted(msg)

if msg == "Spawn Model" then -- Put your message here

model2 = model:clone()
model2.Parent = Workspace
model2.Position = Vector3.new(yourpositionhere)

end

player.Chatted:connect(Chatted)

-- [[ I wrote this quickly, no test, sorry if it may not work ]]
Report Abuse
SellingStuff22 is not online. SellingStuff22
Joined: 14 May 2014
Total Posts: 81
16 May 2014 06:33 AM
not sure how i work it>
Report Abuse
Seizurezxzz is not online. Seizurezxzz
Joined: 12 Feb 2013
Total Posts: 1297
16 May 2014 06:36 AM
He's saying if you put that in your place and say "Insert model" then the model you want will appear.
Report Abuse
SellingStuff22 is not online. SellingStuff22
Joined: 14 May 2014
Total Posts: 81
16 May 2014 06:41 AM
you know "modelpathhere" do i put full url or end id or wht
Report Abuse
SellingStuff22 is not online. SellingStuff22
Joined: 14 May 2014
Total Posts: 81
16 May 2014 06:44 AM
?
Report Abuse
Seizurezxzz is not online. Seizurezxzz
Joined: 12 Feb 2013
Total Posts: 1297
16 May 2014 06:46 AM
no the path means where is it in your game, such as:
game.Workspace.THISISITSPATH
Report Abuse
SellingStuff22 is not online. SellingStuff22
Joined: 14 May 2014
Total Posts: 81
16 May 2014 06:48 AM
so i wanna put this model in the workspace through script could u do it for me pls seizure>

http://www.roblox.com/stuff2-item?id=157291753
Report Abuse
SellingStuff22 is not online. SellingStuff22
Joined: 14 May 2014
Total Posts: 81
16 May 2014 06:51 AM
pls
Report Abuse
Seizurezxzz is not online. Seizurezxzz
Joined: 12 Feb 2013
Total Posts: 1297
16 May 2014 06:53 AM
id=157291753
game:GetService("InsertService"):LoadAsset(id).Parent=game.Workspace

Just put this in a script.
Report Abuse
SellingStuff22 is not online. SellingStuff22
Joined: 14 May 2014
Total Posts: 81
16 May 2014 06:56 AM
Didnt work
Report Abuse
Seizurezxzz is not online. Seizurezxzz
Joined: 12 Feb 2013
Total Posts: 1297
16 May 2014 06:56 AM
What was the output?
Report Abuse
SellingStuff22 is not online. SellingStuff22
Joined: 14 May 2014
Total Posts: 81
16 May 2014 06:59 AM
Nothing
Report Abuse
samy22 is not online. samy22
Joined: 28 Sep 2008
Total Posts: 2181
16 May 2014 07:23 AM
You cannot insert it because it may not be a trusted model (I hate the trusted system, i wish it was removed, can't add anything of mine to sets and insertservice is made boring.)

Do this:

In edit mode of your place (in roblox studio), insert the model into your place then copy and paste it into "ServerStorage" , make sure you have explorer open to do this.

Then insert a script, with this code and save after:

model = game.ServerStorage["PutTheNameOfItHere"] --Put The Name Of It Here between the quotation marks
message = "PutWhatYouWantToSayToSummonItHere" --Put What You Want To Say To Summon It Here between the quotation marks

function onChatted(msg, recipient, speaker)

local source = string.lower(speaker.Name)
msg = string.lower(msg)



if (msg == message) then
model:Clone().Parent = game.Workspace
end


end

function onPlayerEntered(newPlayer)
newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end)
end

game.Players.ChildAdded:connect(onPlayerEntered)



Report Abuse
Ace23333 is not online. Ace23333
Joined: 20 Nov 2011
Total Posts: 1341
16 May 2014 07:25 AM
See there you go...
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