Hello, thanks for your coming. My problem is that I am trying to change a text label when the player touches the part, but when the player touches the screen GUI will not change. I found out that the text will only change and refresh after the player dies. So what should I do?
basically what the comments said. Change the player player GUI. Then you would change the text from there. Such as:
script.Parent.Touched:Connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then player.PlayerGui.ScreenGui.TextLabel.Text = “Your Text Here” end end)