local playerz = game.Players.LocalPlayer
local character = playerz.Character
local uis = game:GetService("UserInputService")
local bodyparts = character:GetChildren()
uis.InputBegan:Connect(function(input, gameProcessedEvent)
if uis.KeyboardEnabled then print("E")
if input.KeyCode == Enum.KeyCode.B then
character = playerz.CharacterAdded:wait()
for i, v in pairs(bodyparts) do
if bodyparts:IsA("BasePart") then
bodyparts.Transparency =1
end
end
end
end
end)
Trying to figure out why this code dosent work but im puzzled the code prints E since im on Studio using Keyboard but it wont go on to the next if statements of they straight up dont work

2 comments
Thanks for the help but still dosent work. Which is really odd to me since you fixed my table//loop better than me essentially might be I have to move the directory over to StarterPlayerScripts but not sure
IT WORKED THANK YOU just had to hold the key for a little longer