Gate = script.Parent
local player = game:GetService("Players").LocalPlayer
Gate.Touched:Connect(function(hit)
wait()
if hit and hit.Parent:FindFirstChild("Humanoid") then
local head = player.Head
local ltorso = player.LowerTorso
local utorso = player.UpperTorso
local lleftarm = player.LeftLowerArm
local uleftarm = player.LeftUpperArm
local lrightarm = player.RightLowerArm
local urightarm = player.RightUpperArm
local lleftleg = player.LeftLowerLeg
local uleftleg = player.LeftUpperLeg
local lrightleg = player.RightLowerLeg
local urightleg = player.RightUpperLeg
local lhand = player.LeftHand
local rhand = player.RightHand
local lfoot = player.LeftFoot
local rfoot = player.RightFoot
wait(1)
lhand.Colour = {255, 255, 255} -- Imagine I've set everything to "255, 255, 255", I was just using "lhand" to test
end
end)
This is a script I've got that should change the Player's skin colour once touched a part, it doesn't work and in the output I get ' attempt to index nil with "Head" ', can anyone help please?

2 comments
You have to spell color the American way
i'm probably missing something but it still doesnt work, the players colour is not changing, and annoyingly the output has nothing to say. Does this have to be in a localscript by any chance?