Fix formatting on some corescripts

This commit is contained in:
Lewin Kelly 2023-05-18 02:02:21 +01:00
parent a93f5ef15e
commit 2dfc35883b
2 changed files with 11 additions and 11 deletions

View File

@ -2107,10 +2107,10 @@ CreateBasicTutorialPage = (name, handleResize, skipTutorial, giveDoneButton) ->
Position: UDim2.new 0, 0, 0, 25 Position: UDim2.new 0, 0, 0, 25
Parent: frame Parent: frame
innerFrame.Size = UDim2.new 1, 0, 1, if giveDoneButton innerFrame.Size = if giveDoneButton
-75 UDim2.new 1, 0, 1, -75
else else
-22 UDim2.new 1, 0, 1, -22
local parentConnection local parentConnection
@ -3179,10 +3179,15 @@ t.CreateTerrainMaterialSelector = (size, position) ->
matName = getNameFromEnum newMaterialType matName = getNameFromEnum newMaterialType
buttons = scrollFrame\GetChildren! buttons = scrollFrame\GetChildren!
for i = 1, #buttons for i = 1, #buttons
if (buttons[i].Name == "Plastic (blue)" and matName == "Plastic (blue)") or if buttons[i].Name == "Plastic (blue)" and matName == "Plastic (blue)"
(buttons[i].Name == "Plastic (red)" and matName == "Plastic (red)") or goToNewMaterial buttons[i], matName
string.find buttons[i].Name, matName return
if buttons[i].Name == "Plastic (red)" and matName == "Plastic (red)"
goToNewMaterial buttons[i], matName
return
if string.find buttons[i].Name, matName
goToNewMaterial buttons[i], matName goToNewMaterial buttons[i], matName
return return

View File

@ -2262,11 +2262,6 @@ RemovePlayerFromTeam = (teamEntry, index) ->
@Args @Args
entry Player entry entry Player entry
--]] --]]
test = 5
test = 5
FindRemovePlayerFromTeam = (entry) -> FindRemovePlayerFromTeam = (entry) ->
if entry["MyTeam"] if entry["MyTeam"]
for j, oldEntry in ipairs entry["MyTeam"]["MyPlayers"] for j, oldEntry in ipairs entry["MyTeam"]["MyPlayers"]