|
| 06 Sep 2016 01:31 PM |
| Alright, can anyone tell me how games like Pool tycoon 4, Grand mall of robloxia, RoCitizens and Theme park tycoon 2 have made a furniture GUI where the player can choose an item and place it where they want?! |
|
|
| Report Abuse |
|
|
L2000
|
  |
| Joined: 03 Apr 2008 |
| Total Posts: 77448 |
|
|
| 06 Sep 2016 01:33 PM |
Publish each of them to Roblox and store their ids. When you make the GUI, there's an API you can use (idk exact link) that'll translate it into an image for your gui. Insert it with InsertService, then track mouse position and move it based on where the mouse is pointing.
In other words a fair bit of code |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 01:34 PM |
| Is there any way at all that your able to do this for me, or link me to that API? |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 06 Sep 2016 01:37 PM |
Why did you offer 150 robux on the last thread, and 1500 on this thread? lol
|
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 06 Sep 2016 01:38 PM |
https://www.roblox.com/games/486938221/Wowgnomess-Place-Number-67
|
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 01:42 PM |
| Tbh yeah, i've given up on trying to save money on this xD |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 01:43 PM |
| YES! that is exactly what im on about! |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 01:53 PM |
@wowgnomes
Could you please tell me as much as you could about it then, so i can be more speficic in my threads? thanks so much bro! |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 06 Sep 2016 01:56 PM |
Start by making a script that created a brick with yellow color, size 5,5,5 at 0,0,0
then make a script that creates a brick when a user clicks their mouse
then make a script that moves the brick they clicked when they move their mouse
then make a script that moves the brick they clicked when they move their mouse but round mouse values to the nearest 5 blocks in a grid pattern
then make a script that moves a model from server storage via primary part CFrame
:)
|
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 01:59 PM |
This is alot to ask, but if i added you into my game, where you can do 2 players at once, woudl you be able to show me on that? i can do some of this, but its still a little bit advanced, though i will do my best until i finish it :P
Thanks ALOT for that reply, i finally have some starting ground |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 06 Sep 2016 02:01 PM |
No I won't team create with you, try to do each script one at a time. When you get stuck ask where you can learn more about what you're trying to do, it's pretty simple stuff just bringing it all together can be daunting
|
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 02:05 PM |
Its complicated to explain how something like this would work. If I'm going to try and explain this to you, I need some indication of how much you are familiar with Lua and ROBLOX's API.
|
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 02:06 PM |
xD Fair enough, i wouldent expect anyone to team create, Theres one thing im stuck on, I made a script in Workspace.
function onClickPart() Instance.new("Part", Workspace) end
script.Parent.Mo << I realised that i cant do script.Parent.MouseButton1Click:connect(onClickPart)
Could you help me with that part? |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 02:07 PM |
Oh lord, yeah you are really far off from understanding how this kind of stuff works. It requires some fairly advanced scripting, especially if you are taking security and filtering into consideration.
|
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 02:08 PM |
@clonetropper
Sure! Im not that great with LUA, I'm trying to become a decent scripter so i can make games and help other that need it.
I only began to learn lua about 3 weeks ago, i've familiarised myself with a lot of the basics, but not im very interested in the complicated stuff, such as creating a furniture placement GUI.
Thanks for helping :) |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 06 Sep 2016 02:10 PM |
script.Parent.Build.MouseButton1Click:connect(function() --first code
---mouseclick on world below -- local mouseclick mouseClick =game:GetService('UserInputService').InputBegan:connect(function(inputObject) if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then --code mouseClick:disconnect()
end)
|
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 02:11 PM |
Yeah, Haha i know i'm very far off, but this will be an accomplishment for me :)
The game im trying to do this for is https://www.roblox.com/item.aspx?id=461425631 |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 06 Sep 2016 02:11 PM |
@dark clone gave an explanation for why I said even if i gave you my place, you wouldn't be able to use it/configure it
mine has security features/filtering and although im sure you could study it and replicate what it does, it wouldn't be as good as if you made it and understood it
|
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 02:12 PM |
if(2<1)then --[[Start by making a script that created a brick with yellow color, size 5,5,5 at 0,0,0
then make a script that creates a brick when a user clicks their mouse
then make a script that moves the brick they clicked when they move their mouse
then make a script that moves the brick they clicked when they move their mouse but round mouse values to the nearest 5 blocks in a grid pattern
then make a script that moves a model from server storage via primary part CFrame
:)]] end;function--[[hopefully they r not many errors :P]]createbrick()Instance.new("Part",workspace)end;function movefirstbrick()brick.CFrame=(mouse.Hit);end;brick=(Instance.new("Part",workspace))brick.Anchored=(true)brick.BrickColor=(BrickColor.new("Bright yellow"))brick.Size=(Vector3.new(5,5,5))function randomplr(num,num2)if(num)>(num2)then return(true)else return(false)end;end for i, v in pairs(game:GetService("Players")do if(do==(true))then num=math.random() num2=math.random() plr=(v) if randomplr(num,num2)then mouse=(plr:GetMouse()) mouse.MouseButton1Up:connect(createbrick) mouse.MouseButton2Up:connect(createbrick) mouse.MouseButton1Up:connect(movefirstbrick) --[[cantttmakethelast2:'(]] end end;end |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 02:13 PM |
| the script 'could decides' which player is da player(it may not decide tho) ^ |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 02:17 PM |
Thanks for you post, milenveliki :)
Would i put this in a script in Workspace? |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 02:18 PM |
@wow
I woulden't have minded if i coulden't understand the advanced features, i normally study into them after i know how they work, or what they are. Its how i learn |
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 06 Sep 2016 02:19 PM |
"for i, v in pairs(game:GetService("Players")do if(do==(true))then" please stop
Formerly ToxicDominator - add 17,509 posts |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 06 Sep 2016 02:21 PM |
>when u thought he was a real one and actually wanted to learn so u give him step by step scripts but u were actually wrong
|
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 02:25 PM |
| Thank for tthe instructions, but i still dont know 100% where to begin on finding out where to research this |
|
|
| Report Abuse |
|
|