Hi, I am fairly new to Lua and I am making a tycoon as my first project and currently I am scripting the Entrance so far if you touch it, it will turn slightly transparent and will let you walk past but my problem is that the Humanoid's text is still "Touch to Claim Tycoon!". I want it so that when you touch the door it will change to " Tycoon" and I just can't figure out how to do that, here is the code for the script called "GateControl" :
script.Parent.Head.Touched:connect(function(part)
local door = script.Parent.Head
local hum = part.Parent:FindFirstChild("Humanoid")
local player = game.Players:GetPlayerFromCharacter(part.Parent)
if hum ~= nil and player ~= nil then
door.Transparency = .5
door.CanCollide = false
end
end)
If anyone could provide me with a good answer that I will be able to understand it will be very appreciated. Thanks!

2 comments
This is only a little part of making a tycoon door. The next step would probably be preventing players who aren't the designated player to enter.
Your help worked but as you said "The next step would probably be preventing players who aren't the designated player to enter" do you have any idea how I would do that?