Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to spawn something from replicated storage in a certain position!?

Hello

I am trying to make a house spawn in from replicated storage to a designated plot location. I have tried to make the plot the PrimaryPart of the house but that didn't work and i am unsure what to do. This is what i tried but it will not spawn the house into plot1 (the part i would like it to spawn in.)

game.ReplicatedStorage.HouseEvents.SpawnHouse1.OnServerEvent:Connect(function()
	local location = game.ReplicatedStorage.House.House1.PrimaryPart
	local house = game.ReplicatedStorage.House.House1:Clone()
	house.Parent = game.Workspace.Plot1
	house.PrimaryPart = game.Workspace.Plot1

end)

Thanks!

1 answer

u kinda forgot to give house.PrimaryPart a parent u need to do: house.PrimaryPart.Parent = game.Workspace.Plot1

2 comments

0

Thanks! It still doesn't spawn the house on the plot though.

0

they add a position property maybe

This discussion is preserved as it was. New answers, comments, and votes are closed.