Hello there!
I am Trying to keep the Display Name On But When the Part Transparency is (1) the name Disappear’s.
I have a feeling that Something is Wrong In the script. So this is what I got.
function onTouched(part)
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil then
script.Parent.Parent.Name = h.Parent.Name.. "'s Truck"
local player = game.Players:playerFromCharacter(h.Parent)
if player == nil then
script.Parent.Name = "Not Used"
else
script.Parent.Parent.Head.Transparency = 1
script.Parent.Parent.Humanoid.DisplayName = true
end
end
end
script.Parent.Touched:connect(onTouched)
If I missed Something Please let me know. This is a Normal Script.
- Official_Simulation