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 » Scripters
Home Search
 

HELP! Gui that lets players insert models into game.

Previous Thread :: Next Thread 
spot9110 is online. 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
ChiefAlpha is not online. ChiefAlpha
Joined: 01 Oct 2015
Total Posts: 2014
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
mircostaff is not online. mircostaff
Joined: 28 Sep 2012
Total Posts: 288
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 is not online. 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
ChiefAlpha is not online. ChiefAlpha
Joined: 01 Oct 2015
Total Posts: 2014
02 Nov 2015 08:01 PM
that's offensive I identify as a scientist
Report Abuse
Ripepperoni is not online. Ripepperoni
Joined: 04 Jul 2010
Total Posts: 5715
02 Nov 2015 08:08 PM
pretty simple if you know what you are doing
Report Abuse
spot9110 is online. 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 is online. spot9110
Joined: 05 Dec 2009
Total Posts: 475
02 Nov 2015 09:37 PM
bump
Report Abuse
Selics is not online. 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 is online. 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 is online. spot9110
Joined: 05 Dec 2009
Total Posts: 475
02 Nov 2015 10:26 PM
bump
Report Abuse
spot9110 is online. spot9110
Joined: 05 Dec 2009
Total Posts: 475
02 Nov 2015 10:49 PM
bump
Report Abuse
dorito9000 is not online. dorito9000
Joined: 13 Jul 2012
Total Posts: 6486
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
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
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 is not online. 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 is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Nov 2015 12:29 AM
no.
Report Abuse
iMung is not online. 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 is not online. 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 is not online. 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 is not online. 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
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
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 is online. 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
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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