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

Gui parenting issues?

Asked by 10 years ago

What I'm trying to do is change the value in the player through clicking the button.

function watch(player)
    script.Parent.watch.BackgroundTransparency = 0.2
    script.Parent.play.BackgroundTransparency = 0.4
    status.Text = 'You are: Watching'
    player.Parent.play.Value = false
end
script.Parent.watch.MouseButton1Click:connect(watch)

1 answer

Log in to vote
0
Answered by 10 years ago

Nevermind. Fixed it.

function play()
    script.Parent.play.BackgroundTransparency = 0.2
    script.Parent.watch.BackgroundTransparency = 0.4
    status.Text = 'You are: Playing'
    script.Parent.Parent.Parent.Parent.Parent.play.Value = true
end


script.Parent.play.MouseButton1Click:connect(play)

Ad

Answer this question