spot9110
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 475 |
|
|
| 02 Nov 2015 07:57 PM |
I need a Gui that lets players insert models into game, kinda like Miners Haven. I want to be able to add custom models not any model they want.
How could I do this? Anything on the wiki or youtube? |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2015 07:58 PM |
InsertService, RemoteEvents.
To be honest if it's just custom models and not anything just have a folder in ReplicatedStorage and put them in it. |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2015 07:58 PM |
| Yeah, I have been trying to figure this out for a long time. It's one of reasons why I started scripting. |
|
|
| Report Abuse |
|
|
ash877
|
  |
| Joined: 18 Feb 2008 |
| Total Posts: 5142 |
|
|
| 02 Nov 2015 07:59 PM |
| Just put two and two togethur. Listen to the doc, he's got it. |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2015 08:01 PM |
| that's offensive I identify as a scientist |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2015 08:08 PM |
| pretty simple if you know what you are doing |
|
|
| Report Abuse |
|
|
spot9110
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 475 |
|
|
| 02 Nov 2015 09:11 PM |
| Can anyone make an example gui? I will pay robux. The gui just needs to be able to add 1 model. The user must be able to drag it around before placing |
|
|
| Report Abuse |
|
|
spot9110
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 475 |
|
| |
|
Selics
|
  |
| Joined: 30 Oct 2010 |
| Total Posts: 7463 |
|
|
| 02 Nov 2015 09:38 PM |
spot, so kind of like a building game?
For instance, a model (or brick in this case) is dragged and dropped onto the square terrain. but in your case it can be dropped anywhere, not just on the terrain? |
|
|
| Report Abuse |
|
|
spot9110
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 475 |
|
|
| 02 Nov 2015 09:45 PM |
| Can be placed anywhere on the main basepart. Not on other parts. For example, a chair is dragged in onto the basepart. |
|
|
| Report Abuse |
|
|
spot9110
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 475 |
|
| |
|
spot9110
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 475 |
|
| |
|
|
| 02 Nov 2015 10:51 PM |
local assetId = 315409344 game:GetService("InsertService"):LoadAsset(assetId).Parent = game.Workspace
change assetId to the model of your choice
BEEP BEEP HERE COMES THE MEME CREEP |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2015 11:19 PM |
SG = Instance.new("ScreenGui") SG.Parent = game.Players.matt1020304050.PlayerGui TextButton = Instance.new("TextButton") TextButton.Parent = SG TextButton.Size = UDim2.new(0.2,0,0.2,0) TextButton.Position = UDim2.new(0.3,0,0.5,0) TextButton.Text = "Click To Spawn Item" -- TextBox = Instance.new("TextBox") TextBox.Parent = SG TextBox.Size = UDim2.new(0.2,0,0.2,0) TextBox.Position = UDim2.new(0.6,0,0.5,0) TextBox.Text = "Input Item ID Here" TextButton.MouseButton1Down:connect(function(activate) local assetId = TextBox.Text game:GetService("InsertService"):LoadAsset(assetId).Parent = game.Workspace end) |
|
|
| Report Abuse |
|
|
iMung
|
  |
| Joined: 11 Jul 2013 |
| Total Posts: 328 |
|
|
| 03 Nov 2015 12:27 AM |
This works with a LocalScript, using a chatted function:
local Player = game.Players.LocalPlayer
Player.Chatted:connect(function(message) game:GetService("InsertService"):LoadAsset(message).Parent = game.Workspace end) end) |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
iMung
|
  |
| Joined: 11 Jul 2013 |
| Total Posts: 328 |
|
|
| 04 Nov 2015 11:58 AM |
| #^, Don't think your the best at everything, jeez. All you say to my comments are "no" or "illiterate person". It worked for me. Maybe you can't read code. Just stop making it sound like your better than us at everything. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 04 Nov 2015 01:42 PM |
| It wouldn't work, therefore it didn't work. If you think I'm acting like I'm better than you then that's your own fault, I never claimed I was better. |
|
|
| Report Abuse |
|
|
iMung
|
  |
| Joined: 11 Jul 2013 |
| Total Posts: 328 |
|
|
| 04 Nov 2015 04:39 PM |
| I'm going to test if it works. I'll see. |
|
|
| Report Abuse |
|
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 04 Nov 2015 04:40 PM |
i think he means custom models from lighting...
http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$2,308 Tx882 |
|
|
| Report Abuse |
|
|
|
| 04 Nov 2015 04:41 PM |
"Listen to the doc, he's got it." "that's offensive I identify as a scientist" Doc Savage IS a scientist. |
|
|
| Report Abuse |
|
|
spot9110
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 475 |
|
|
| 05 Nov 2015 08:03 PM |
| still need one that works. Some of the ones above are free modeled and don't really have what I need. Player needs to be able to drag the model around before placing it. Not just spawning it in right away |
|
|
| Report Abuse |
|
|
|
| 08 Nov 2015 04:45 PM |
| I literally gave you what you asked. Now if you want them to move around before placing then you need to have the model follow the mouse. |
|
|
| Report Abuse |
|
|
iMung
|
  |
| Joined: 11 Jul 2013 |
| Total Posts: 328 |
|
|
| 09 Nov 2015 07:50 PM |
| Yeah using Mouse.Hit.p and math.floor/math.ceil, and Model:MoveTo. |
|
|
| Report Abuse |
|
|