How would I access player parts? For example, if I wanted to destroy the player's hand when the player steps on a brick. The script below
local debounce = false
local brick = script.Parent
brick.Touched:Connect(function(activate)
if not debounce then
debounce = true
local humanoid = activate.Parent:FindFirstChild("Humanoid")
if humanoid then
local player = game.Players:FindFirstChild(activate.Parent.Name)
player.RightHand.Disabled = true
end
end
end)
isn't working. There isn't any output either. Please help.
