How can i find the 'Main' Parent parent of the Part (excluding workplace)?
Asked by
6 years ago Edited 6 years ago
Hello, I have a Touched function from the server side seeing what the player has Touched. It does work and print's out the exact part what its touching but for my application i have a player and the touched function should return with the players name ( respectively the parent of the part i shall say).
01 | chilli.Touched:Connect(debounce( function (response) |
02 | if buttonPressed = = true then |
https://imgur.com/a/eNlwtyG
From the GIF above it should return with the parents name.In my Case its 'Bob'
thanks,
However,replacing the print command with (response.Parent.Name) will sometimes print the name but the chances are slim