Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

[solved] Why the the text gui not changing?

ok so when you hit the part the text is meant to change but it doesnt work so uhh

script.Parent.Touched:Connect(function(hit)
	if hit and hit.Parent:FindFirstChild("Humanoid") then
		local player = game.Players:GetPlayerFromCharacter(hit.Parent)
		player.PlayerGui.obj.Textlabel.Text = "Placeholder"
	end
end)

also this sites moderation hurts ive changed the title about 5 times

2 comments

0

The script looks alright for me... I think it’s just something with the variables and localizing objects

0

Try adding a print() to check if it’s all working fine

1 answer

ok so all i needed to do was add capitalization and now it works lol

This discussion is preserved as it was. New answers, comments, and votes are closed.