Hello people! I want to make a Bloxburg building system for my survival game.
I have tried tutorials, but they don’t achieve what I am trying to achieve.
I have also tried looking for topics similar to this post but weren’t any help.
I just wanna finish a game for once and not lose motivation because I don’t know how to fix a problem
Well I can’t really write the script for you myself, but I’ll give you some tips on how to tackle a big project like this.
First, you want to figure out how to implement this system with existing systems you might have. If it isn’t a game from a big studio, then this should probably be pretty straightforward.
Next, you wanna subdivide the work into abstract parts. You can do this by just putting notes in your code explaining what you wanna do in plain English. For example:
function enableBuildMode()
-- disable normal UI
-- make camera scriptable and tween it to its desired position
-- enable build UI
-- display a transparent preview of the selected part
-- on mouse click, place part (if valid placement)
end
And then what you want to do from there is make seperate functions that do each of those tasks.
For example:
function disableUI()
local localplayer = game.Players.LocalPlayer
localplayer.PlayerGUI.normalUI.Enabled = false
end
function enableBuildMode()
-- disable normal UI
disableUI()
-- [...]
end
At least that’s approximately how I remember the Bloxburg building system. I hope this helps. If you’re looking for a different answer, please explain the problem you’re facing and I’ll try to see if I can help more directly.