local Part = script.Parent Part.Touched:connect(function(hit) local Player = game.Players:GetPlayerFromCharacter(hit.Parent) If Player then Player.Backpack:ClearAllChildren() end end)
local Part = script.Parent Part.Touched:connect(function(hit) local Player = game.Players:GetPlayerFromCharacter(hit.Parent) if Player then -- 'if' starts with a lower case Player.Backpack:ClearAllChildren() end end)