Help with Guis text to change!

You can write your topic however you want, but you need to answer these questions:

  1. I want to make when humanoid touches the part then textlabels text changes to “lol” or something.

  2. What is the issue? Include screenshots / videos if possible!
    No errors in output, btw it prints if you put there print(“lol”).

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried different things.
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

local part = game.Workspace.C
local button = game.StarterGui.TimerGUI.TimerLABEL



part.Touched:Connect(function(hit)
	if game.Players:GetPlayerFromCharacter(hit.Parent) then
		button.Text = "lol"
	end


end)
1 Like
local part = workspace:WaitForChild('C')

isAPlayer = function(hit)
    if game.Players:FindFirstChild(hit.Parent.Name) then
        return true
    end
    return false
end

part.Touched:Connect(function(hit)
    if isAPlayer(hit) then
        game.Players[hit.Parent.Name].PlayerGui.TimerGUI.TimerLabel.Text = 'lol'
    end
end)
1 Like

when you play the game u dont actually use StarterGui… When you join a server everything from StarterGui gets copied and pasted to PlayerGui that is located inside of player

1 Like

This really interesting I will study this bit Thanks guys!
Worked (yes)