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

Gui parenting issues?

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

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)

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