Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

[solved] Why the the text gui not changing?

Asked by 2 years ago
Edited 2 years ago

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

0
The script looks alright for me... I think it’s just something with the variables and localizing objects ZIRFAL3 17 — 2y
0
Try adding a print() to check if it’s all working fine ZIRFAL3 17 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

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

Ad

Answer this question