| |
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 16 May 2014 06:14 AM |
You mean an admin command? Like kohls admin commands? :insert MODELID |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 16 May 2014 06:41 AM |
| you know "modelpathhere" do i put full url or end id or wht |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 May 2014 06:46 AM |
no the path means where is it in your game, such as: game.Workspace.THISISITSPATH |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
|
| 16 May 2014 06:53 AM |
id=157291753 game:GetService("InsertService"):LoadAsset(id).Parent=game.Workspace
Just put this in a script. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
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
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 1341 |
|
| |
|