Answered by
8 years ago Edited 8 years ago
PUT THIS SCRIPT INTO THE BLOCK THAT SPAWNS THE CHAIRS, NOTHING ELSE---
Making it Continuously spawn chairs will cause lag but let's do it anyways. This entire script is case sensitive so spell everything right, including caps.
------------------------------------------------------SETUP------------------------------------------------------------------
You will need to make a Folder into the ReplicatedStorage and name it Assets. Take you chair model and put it in the Assets Folder, then name it Chair.
------------------------------------------------------SCRIPT-----------------------------------------------------------------
01 | local chair = game.ReplicatedStorage.Assets.Chair |
03 | script.Parent.Touched:connect( function () |
05 | local newChair = chair:Clone() |
06 | newChair.Name = "Chair" |
07 | newChair.Parent = game.Workspace |
09 | newChair:MoveTo(part.Position) |
-----------------------------------------------------EXPLANATION---------------------------------------------------------This script is telling the server that when the block is touched to activate the loop. When the loop is activated it creates a clone of the chair then moves it to Workspace, then the block you would like it to "Spawn" on.
------------------------------------------------------WARNING--------------------------------------------------------------
This loop will NEVER END. If you want it to stop you would have to shutdown all servers then rejoin. This loop creates A LOT of lag so be cautious.
If this script doesn't work let me know in the comments of this answer
HAVE FUN