How to get block at coordinates?
#3
(04-12-2021, 09:07 PM)NiLSPACE Wrote: You can do it with this code:
local blocktype = world:GetBlock(player:GetPosition():addedY(-1));

I get error attempt to index local 'PlayerWorld' (a nil value)
with this code:

33 function testBlock(aPlayerOldPositionNewPosition)
34     local PlayerWorld = OldPosition.world -- I get error here
35     local block = PlayerWorld:GetBlock(aPlayer:GetPosition():addedY(-1))[/font]

36 end

And thank you for your support! Big Grin
Reply
Thanks given by:


Messages In This Thread
How to get block at coordinates? - by _XxFedexX_ - 04-12-2021, 08:38 PM
RE: How to get block at coordinates? - by _XxFedexX_ - 04-12-2021, 11:30 PM
RE: How to get block at coordinates? - by 12xx12 - 04-12-2021, 11:33 PM



Users browsing this thread: 3 Guest(s)