Alright. I'm making my own 'stamper tool'. Since there is filtering enable available. I'm going to use remote events to place blocks for everyone to see.
--< A Server Script in ServerScriptService >--
remote.Main.PlaceModel.OnServerEvent:Connect(function(player,model,assetGroup,cframe)
local playerBase = workspace.BuildingAreas:FindFirstChild("Area"..player.gameData.baseNumber.Value)
local myStorage = workspace.ConstructionStorage:FindFirstChild(player.Name.."'s construction")
local base = workspace.BuildingAreas:FindFirstChild("Area"..player.gameData.baseNumber.Value)
local reg = Region3.new(base.RegionPart1.Position,base.RegionPart2.Position)
local finalRegion3 = workspace:FindPartsInRegion3(reg,player.Character)
or _, part in pairs(finalRegion3) do --< Make sure the cursorBlock is in the player's build area.
print(part.Parent.Name)
if part.Parent.Name == model then
local finalProduct = replicatedStg.GameStg.GameBlks:FindFirstChild(assetGroup):FindFirstChild(model
):Clone()
finalProduct.Parent = myStorage
finalProduct.ModelConfig.ModelOwner.Value = player
finalProduct:SetPrimaryPartCFrame(cframe)
finalProduct.Name = finalProduct.Name.." (#"..math.random(1,100000)..")"
break
end
end
end)
As you can see, I'm using Region3 functions to make sure the player is not stamping out if his/her baseplate. The problem is, after a while of placing blocks, you can't place anymore blocks all of a sudden (Non - stop placing), If you click during this time, no block will be placed. Is there a way to fix this problem?
Thank you.
NoBoot
