#Plot System
1 messages · Page 1 of 1 (latest)
Placement Server
local Placement = require(game.ReplicatedStorage.Placement)
local remote = game.ReplicatedStorage:WaitForChild("InvokePlacement")
local furnitureFolder = game.ReplicatedStorage:WaitForChild("Furniture")
local activePlacements = {}
remote.OnServerEvent:Connect(function(player, func, canvasPart, modelName, cf)
if func == "Place" then
if not activePlacements[player] then
activePlacements[player] = Placement.new(canvasPart)
end
local model = furnitureFolder:FindFirstChild(modelName)
if model then
local clone = model:Clone()
clone:SetPrimaryPartCFrame(cf)
clone.Parent = activePlacements[player].CanvasObjects
end
local saveEvent = game.ReplicatedStorage.Events.SaveFurniture
saveEvent:Fire(player, modelName, cf)
end
end)```
Placement Client - StarterPlayerScripts
```lua
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local Placement = require(game.ReplicatedStorage:WaitForChild("Placement"))
local canvas = workspace:WaitForChild("GarageFloor", 5)
if not canvas then
warn("ERROR: Could not find a part named 'GarageFloor' in Workspace!")
return
end
local deskModel = game.ReplicatedStorage.Furniture:WaitForChild("Desk", 5)
if not deskModel then
warn("ERROR: Could not find a model named 'Desk' inside ReplicatedStorage.Furniture!")
return
end
local placement = Placement.new(canvas)
local previewModel = deskModel:Clone()
previewModel.Parent = workspace
for _, part in pairs(previewModel:GetDescendants()) do
if part:IsA("BasePart") then part.CanCollide = false end
end
game:GetService("RunService").RenderStepped:Connect(function()
local cf = placement:CalcPlacementCFrame(previewModel, mouse.Hit.p, 0)
previewModel:SetPrimaryPartCFrame(cf)
end)
mouse.Button1Down:Connect(function()
placement:Place(canvas, "Desk", previewModel.PrimaryPart.CFrame)
end)```
Don't copy paste that's my advice
i gotta start somewhere
Yes not with the most complicated stuff
i mean i had no clue where to start and there are 0 (good) tutorials on this
I just said the answer you gotta do other projects first to learn and eventually make ur dream game
but games using placement system would be one of the core concepts of the game. What the point of doing other side stuff if you havent got the core?
That's not a core concept
core part*
A plot and a placement system are 2 different things
Also never use object oriented programming without any clue that's "pro" stuff
Have you tried this tutorial before?https://youtu.be/T-ZHbbtZelU?si=JAaKrlS7QLGJ-Tcj / copy paste is not the way for learning
Explaining how to make a plot system in Roblox, just like every popular game!
Plot System ➜ https://create.roblox.com/store/asset/116182053991494/Easy-Plot-System
MAIN CHANNEL ➜ https://www.youtube.com/@supdoggy_
DISCORD SERVER ➜ discord.gg/supcord
SUP STUDIOS ➜ https://www.roblox.com/groups/11607234/SUP-Studios#!/
Roblox profile ➜ ...
sorry placement
** You are now Level 17! **
like grid placement
wrong thing
Wdym grid placement?
This guide was originally written for scriptinghelpers . The original can be found here . One of the most common requests I get for blog post topics are for a decoration placement system that saves. I’ve shied away from this topic in the past as there is no singular “correct” way to do it. That being said, I think it’s a good exercise ...
check this
Have you tried this?https://youtube.com/playlist?list=PLR9RLF7-52bTSV-3G9x7SKy9fs4S6dyy1&si=lR2jS7jGNYaSYuPX