Skip to content

Commit

Permalink
Changed WorldPivotData getter/setter to WorldPivot (rojo-rbx#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
phoriah authored Apr 30, 2024
1 parent 8ca9250 commit ddba210
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rbx_dom_lua/src/customProperties.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,14 @@ return {
},
WorldPivotData = {
read = function(instance)
return true, instance:GetPivot()
return true, instance.WorldPivot
end,
write = function(instance, _, value)
if value == nil then
return true, nil
else
return true, instance:PivotTo(value)
instance.WorldPivot = value
return true
end
end,
},
Expand Down

0 comments on commit ddba210

Please sign in to comment.