P/s : I tried
Player = game.Players.LocalPlayer
Char = Player.Character
P/s : I tried
Player = game.Players.LocalPlayer
Char = Player.Character
Solution you put it inside of a local script, then change the key.
Player = game.Players.LocalPlayer
Key = Enum.KeyCode.A
Player.CharacterAdded:connect(function(Character)
game:GetService("UserInputService").InputBegan:Connect(function(input)
if input.KeyCode == Key then
for _,Part in pairs(Character:GetDescendants()) do
if Part:IsA("BasePart") or Part:IsA("Decal") then
Part.Transparency = 1
end
end
end
end)
end)
Don't put inputbegan inside characteradded
Please use Connect instead of connect as it is deprecated
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Explain more, issues, what you tried
I want to make a script that if the player press a key then Player Model Transperancy = 1