Well, i'm not sure what you mean by this, do you mean telling the localscript what block the character touched, or having a preset block with a touch event telling the localscript it was touched?
02 | repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character |
03 | local player = game.Players.LocalPlayer |
04 | local character = player.Character |
05 | local block = game:GetService 'Workspace' :WaitForChild( "Part" ) |
06 | local gui = script.Parent |
10 | block.Touched:connect( function (p) |
11 | if debounce then return end |
13 | local humanoid = p.Parent:FindFirstChild 'Humanoid' |
14 | if humanoid and p.Parent = = character then |