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

hello, this script wont let me change a gui text for some reason? norma script

Asked by
wswswff 39
2 years ago
script.Parent.Touched:Connect(function(hit)
    if hit and hit.Parent:FindFirstChild("Humanoid") then
        local hum = hit.Parent
        hum.HumanoidRootPart.Position = Vector3.new(130.6, -64.1, -77.7)
        game.StarterGui.LouStart.ChangeText.Visible = false
        game.StarterGui.LouStart.better.Text = "hmmm... everything seems normal"
        wait(5)
        game.StarterGui.LouStart.better.Text = "POV: Fortnite launcher opens"
        game.Workspace.bomba.Script.Enabled = true
    end
end)

1 answer

Log in to vote
1
Answered by
wswswff 39
2 years ago

Hello, it's me from the future, it turns out you need to change the playergui, not the starter gui so u have to get the player from character and then do player.playergui so you can acces their gui, lua is amazing

0
Good you figured it out!! theking66hayday 841 — 2y
Ad

Answer this question