georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
|
| 26 Jul 2015 08:36 PM |
| How would I go about creating a "in-game" building system, such as Urbis has when placing furniture. How does this work? |
|
|
| Report Abuse |
|
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
| |
|
Clxver
|
  |
| Joined: 19 Oct 2014 |
| Total Posts: 727 |
|
|
| 26 Jul 2015 08:47 PM |
| Start learning how to script. |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 08:49 PM |
| If you mean building stuff in-game, you need to go to studio, create a place, insert F3X building tools into the game, then make the place a personal server in the Configure page and change it to where you and whoever else you want help from can join only. |
|
|
| Report Abuse |
|
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
|
| 26 Jul 2015 08:50 PM |
No I don't mean that. I mean have players be able to join a "place" objects. |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 09:00 PM |
Start learning how to script. (2)
fartyburp, Scripting Guru and 3 Year Building Veteran, kiss kiss |
|
|
| Report Abuse |
|
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
|
| 26 Jul 2015 09:01 PM |
| I have, I just can't seem to find any help on the Wiki for constraining parts to the mouse position |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 09:02 PM |
Study F3X tools, the moving section.
fartyburp, Scripting Guru and 3 Year Building Veteran, kiss kiss |
|
|
| Report Abuse |
|
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
|
| 26 Jul 2015 09:29 PM |
I mean the user can build during the game. Example: Urbis - When you buy furniture you can then place/move it in your apartment |
|
|
| Report Abuse |
|
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
|
| 26 Jul 2015 09:52 PM |
Alright, here is what I came up with:
IN STARTERGUI:
local function Round(Number,Increment) return math.floor(Number/Increment*Increment) end
local Mouse = game.Players.LocalPlayer:GetMouse()
while wait(2) do game.Workspace.Position.Value.X = Vector3.new(Round(Mouse.Hit.X,4)) game.Workspace.Position.Value.Y = Vector3.new(Round(Mouse.Hit.Y,4)) game.Workspace.Position.Value.Z = Vector3.new(Round(Mouse.Hit.Z,4)) end
There is a Vector3 Value in Workspace named "Position"
I have a part in workspace with the following code inside it:
while wait() do script.Parent.Position = Vector3.new(game.Workspace.Position.Value) end
ERROR: X cannot be assigned to |
|
|
| Report Abuse |
|
|
| |
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
|
| 26 Jul 2015 09:56 PM |
| I've been away from ROBLOX for a long time learning different languages. I know the error is something stupid |
|
|
| Report Abuse |
|
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
| |
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
|
| 26 Jul 2015 10:00 PM |
Wait, Oh yeah! I can't assign sub vectors |
|
|
| Report Abuse |
|
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
|
| 26 Jul 2015 10:06 PM |
It does, well, something at least but still very weird.
local function Round(Number,Increment) return math.floor(Number/Increment*Increment) end
local Mouse = game.Players.LocalPlayer:GetMouse()
while wait() do game.Workspace.Part.Position = Vector3.new(Round(Mouse.Hit.Z,4)) game.Workspace.Part.Position = Vector3.new(Round(Mouse.Hit.X,4)) game.Workspace.Part.Position = Vector3.new(Round(Mouse.Hit.Y2,4)) end |
|
|
| Report Abuse |
|
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
| |
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
|
| 27 Jul 2015 11:41 AM |
| Nevermind, figured it out! |
|
|
| Report Abuse |
|
|
glurbman
|
  |
| Joined: 02 Nov 2010 |
| Total Posts: 1903 |
|
|
| 27 Jul 2015 11:47 AM |
| hi my solution would be a modified stamper tool and the default building tools ..yeah as tools -> you will find anything in the roblox toolbox . |
|
|
| Report Abuse |
|
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
| |
|