of     1   

RBXJared
#138816010Tuesday, July 01, 2014 2:38 AM GMT

I've been noticing a problem with GUI buttons when you click them they don't activate Bool Values. Here is part of a script were the problem would be: p=script.Parent.Parent.Parent.Parent.Name function OnClick() if script.Parent.Correct.Value == false and p==game.Workspace.Player1.Value then game.Workspace.PlayerDrop1.Value=true script.Parent.Parent:Remove() else game.Workspace.Correct.Value=true game.Workspace.Message.Text="Correct!" game.Workspace.StagePlatform.BrickColor = BrickColor.new("Lime green") script.Parent.Parent:Destroy() wait(2) game.Workspace.Message.Text="" game.Workspace.StagePlatform.BrickColor = BrickColor.new("Really black") end end script.Parent.MouseButton1Click:connect(OnClick)
RoyStanford
#138816220Tuesday, July 01, 2014 2:40 AM GMT

Output would help.
CodeWrighter
#138819058Tuesday, July 01, 2014 3:08 AM GMT

Please further explain what you're wanting to do. So "Player1" is a BoolValue? Hmm.. I wouldn't name it that for starts and if it's not a BoolValue then that's the first place it's most likely going wrong. - WrightRacer3n
CodeWrighter
#138819146Tuesday, July 01, 2014 3:09 AM GMT

Correction, if "Player1" is not a StringValue then that's where it's going wrong because you're making p equal to a string. - WrightRacer3n
RBXJared
#139053687Thursday, July 03, 2014 2:35 AM GMT

Player1 is a string value, and output really isn't saying anything.
lolb3
#139053957Thursday, July 03, 2014 2:37 AM GMT

because not everybody is named player1
lolb3
#139054073Thursday, July 03, 2014 2:38 AM GMT

local p = game.Players.localPlayer.Name function OnClick() if script.Parent.Correct.Value == false and game.Players.LocalPlayer.Character.Value.Value == p then game.Workspace.PlayerDrop1.Value=true script.Parent.Parent:Remove() else game.Workspace.Correct.Value=true game.Workspace.Message.Text="Correct!" game.Workspace.StagePlatform.BrickColor = BrickColor.new("Lime green") script.Parent.Parent:Destroy() wait(2) game.Workspace.Message.Text="" game.Workspace.StagePlatform.BrickColor = BrickColor.new("Really black") end end script.Parent.MouseButton1Click:connect(OnClick) also switch the script type to a localscriot
RBXJared
#139075932Thursday, July 03, 2014 6:25 AM GMT

It is already a local script. The script you wrote for me does work, but still does not change the BoolValues to true. That still doesn't work for some reason
lolb3
#139143820Thursday, July 03, 2014 9:24 PM GMT

haha i do this a lot too. you're probably looking in startergui instead of your player's playergui
RBXJared
#139182872Friday, July 04, 2014 4:37 AM GMT

I know exactly what I'm doing. This script did work before one of the updates a couple weeks ago.

    of     1