richiitalia
(SPDM_Richii)
February 26, 2021, 6:57pm
#22
i know but if he put a server check that detects how many planks the player owns then they cant, example:
-- fires for 50 planks
-- if player have only 5 then return false
-- if players have 75 planks then planks = 75-50
-- give money plank * 50
EDIT: all server sided ofc
1 Like
TigerLeo77
(Tigerros)
February 26, 2021, 6:59pm
#23
As to the general question, I believe youre looping through an array here :for i,v in pairs(plr.Inventory.PlanksAndRocks:GetChildren()) do
, so you should try using ipairs() instead
TigerLeo77
(Tigerros)
February 26, 2021, 6:59pm
#24
Also try using less remote functions
TFlanigan
(teef)
February 26, 2021, 6:59pm
#25
that sounds a bit easier, because im not gonna have to change like every script in the game