0% found this document useful (0 votes)
613 views1 page

GTPS PNB Script for Roblox

The document contains a script for placing and punching items in a game environment using specific coordinates. It defines functions to place an item (Magplant 5640) and to punch at given coordinates, with a delay between actions. The script runs in an infinite loop to continuously execute the placement and punching functions based on the player's current position.

Uploaded by

pasa48719
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
613 views1 page

GTPS PNB Script for Roblox

The document contains a script for placing and punching items in a game environment using specific coordinates. It defines functions to place an item (Magplant 5640) and to punch at given coordinates, with a delay between actions. The script runs in an infinite loop to continuously execute the placement and punching functions based on the player's current position.

Uploaded by

pasa48719
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

itemid = 5640 -- Magplant 5640

delay = 300
function place(x,y)
pkt = {}
pkt.x = x*32
pkt.y = y*32
pkt.px = x;
pkt.py = y;
pkt.type = 3
pkt.value = itemid;
SendPacketRaw(false, pkt)

end

function punch(x,y)
pkt = {}
pkt.x = x*32
pkt.y = y*32
pkt.px = x;
pkt.py = y;
pkt.type = 3;
pkt.value = 18
SendPacketRaw(false, pkt)

end

function pnb()
place(math.floor(GetLocal().posX / 32) +1, math.floor(GetLocal().posY / 32))
place(math.floor(GetLocal().posX / 32) +2, math.floor(GetLocal().posY / 32))
place(math.floor(GetLocal().posX / 32) +3, math.floor(GetLocal().posY / 32))
Sleep(delay)

punch(math.floor(GetLocal().posX / 32) +1, math.floor(GetLocal().posY / 32))


punch(math.floor(GetLocal().posX / 32) +2, math.floor(GetLocal().posY / 32))
punch(math.floor(GetLocal().posX / 32) +3, math.floor(GetLocal().posY / 32))
end

while true do
pnb()
end

You might also like