-For my 2D Obby.
When i try to regen the model it only regen one. Im a basic scripter so i dont know what to do :c
model = game.Workspace.piranha
backup = model:clone()
function onChatted(msg, recipient, speaker)
local source = string.lower(speaker.Name)
msg = string.lower(msg)
if (msg == "regenpiranhas") then
model:remove()
model = backup:clone()
model.Parent = game.Workspace
model:makeJoints()
end
end
function onPlayerEntered(newPlayer)
newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end)
end
game.Players.ChildAdded:connect(onPlayerEntered)
