game:GetService("Players").PlayerAdded:Connect(function (player)
player.CharacterAdded:Connect(function (character)
local head = character:WaitForChild("Head", 5)
if (head) then
head.Transparency = 0.001
end
end)
end)
The script is in ServerScriptService and it is a server-side script.
Change it to a local script in StarterPlayerScripts and do this (after fixing up the remote events)
local event = — event here
local player = game.Players.LocalPlayer
event.OnClientEvent:Connect(function()
player.Character.Head.LocalTransparencyModifier = .001
end)
I just realized that you meant it turns transparent even when it’s 0.01 away from zero. I forgot what transparency meant for a second, no idea why it’s going transparent, that shouldn’t happen. Unless you are looking through any glass objects and its transparency is above or equal to 0.011 it will turn invisible because of Roblox engine limitations.