Im wanna make a npc spawner with button and this is the script and dont works why?
local Clicker = script.Parent --ClickDetector
local Object = game.ReplicatedStorage:WaitForChild("Put") --Put is my object in replicatedstorage
local ObjectSpawn = game.Workspace:WaitForChild("ObjectSpawn") --Object Spawner
Clicker.onClicked:Connect(function()
local CloneObject = Object:Clone()
CloneObject.Parent = game.Workspace
CloneObject.Position = Vector3.new(ObjectSpawn.Position)
end)

5 comments
error please
Actually nvm
The script posted assumes that there is an object name "Put" in replicated storage, are you sure it exists?
Or does it output any error or message to the console?
Can't solve ur problem if u dont give an error