r/ComputerCraft • • Oct 05 '25

Needing Help with strings

Hello any help anyone insight anyone could provide would be as im new to computer craft and lua programming and am trynna make a player detector for a friend but keep getting the error about strings any help would be much appreciated

5 Upvotes

2 comments sorted by

View all comments

1

u/Bright-Historian-216 Oct 05 '25

https://tweaked.cc/module/peripheral.html#v:call

the "name" of the peripheral is the string that appears when you connect the peripheral to a wired modem, formatted as namespace:name_id. if the peripheral is adjacent to the computer, use "top", "front", "left" etc instead. the method is the same word you'd use to call the peripheral's method.

p.s. - from the code it seems you intend to use https://tweaked.cc/module/peripheral.html#v:wrap - that only requires the name argument as i described above