Skip to content
This repository has been archived by the owner on Jul 22, 2023. It is now read-only.

Commit

Permalink
Resolved a bad indexing in the move-terrain example script (#53)
Browse files Browse the repository at this point in the history
* Resolved a bad indexing in the move-terrain example script

* Update 04-move-terrain.lua

Co-authored-by: Lucien Greathouse <[email protected]>
  • Loading branch information
ryan-c-scott and LPGhatguy authored May 18, 2021
1 parent 0ad5aaa commit b0a6ad6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/04-move-terrain.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local inputGame = remodel.readPlaceFile("input-place.rbxlx")
local outputGame = remodel.readPlaceFile("output-place.rbxlx");

-- This isn't possible inside Roblox, but works just fine in Remodel!
outputGame.Terrain:Destroy()
inputGame.Terrain.Parent = outputGame
outputGame.Workspace.Terrain:Destroy()
inputGame.Workspace.Terrain.Parent = outputGame.Workspace

remodel.writePlaceFile(outputGame, "output-place-updated.rbxlx")
remodel.writePlaceFile(outputGame, "output-place-updated.rbxlx")

0 comments on commit b0a6ad6

Please sign in to comment.