local Clickd = script.Parent.ClickDetector
local Button = script.Parent
local RS = game:GetService("ReplicatedStorage")
local EndFolder = RS:WaitForChild("End")
local Pillar = EndFolder.Pillar
local Radius = 100
local X = math.random(0,Radius)
local Y = 0
local Z = math.random(0,Radius)
Clickd.MouseClick:Connect(function()
local ClonedPillar = Pillar:Clone()
ClonedPillar.Parent = workspace
ClonedPillar.Position = Vector3.new(X,Y,Z)
end)
-- Pos 0, -10, 0
-- Size 512, 20, 512
--1 -119, 0.5, -62
My cloned object is not spawning where I want it to, I've tried this with many other scripts and it doesn't work, one with an instance, the "Explosion" instance spawns at the middle of the baseplate. While the current script here spawns at one position, nothing else

2 comments
Where do you want it to spawn?
You wanted a random position for X and Z, or?