✓ Accepted answer
Hey! This seems like an issue because you are referring to a part that does not exist on R15 avatars. If you are using R6, just let me know and I can try to figure out the issue from there.
When Roblox changed to R15, it turned both arms into 3 separate parts to allow for more freedom with animation. These parts are LeftUpperArm, LeftLowerArm, and LeftHand.
To make the entire left arm neon, you can do this:
local players = game.Players.LocalPlayer
local character = players.Character
local UIS = game:GetService("UserInputService")
UIS.InputBegan:Connect(function(key)
if key.KeyCode == Enum.KeyCode.T then
character["LeftUpperArm"].Material = Enum.Material.Neon
character["LeftLowerArm"].Material = Enum.Material.Neon
character["LeftHand"].Material = Enum.Material.Neon
end
end)
EDIT: As you are using R6, this issue is because there is a space in "Left Arm".
To refer to an object with a space, you should use character["Left Arm"] as opposed to character.Left Arm.
local players = game.Players.LocalPlayer
local character = players.Character
local UIS = game:GetService("UserInputService")
UIS.InputBegan:Connect(function(key)
if key.KeyCode == Enum.KeyCode.T then
character["Left Arm"].Material = Enum.Material.Neon
end
end)
3 comments
Best tutorial I ever seen. Upvoted immediately without thinking.
I'm using R6
Edited to include what would work for R6