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

gui not becoming visible with localscript?

trying to make it so a gui becomes visible when you click on grass when you click on the grass it activates a gui in the player's model in workspace called "spiderchosen" the value is a boolvalue and the value does get set to true however the script does not work https://imgur.com/Iu3uYIZ https://imgur.com/iJNMIbm

local player = game.Players.LocalPlayer
local character = player.Character
wait(1)
local spiderchosen = character.spiderchosen.Value
while wait(.5) do
	if spiderchosen == true then
		script.Parent.Visible = true
		wait(5)
		script.Parent.Visible = false
	end
end

1 answer

✓ Accepted answer

For accurate data transfer, both of your scripts need to be the same type. If you use a normal script to change the spiderchosen value and use a localscript to check the value, it wont work. Both the scripts need to be the same type. Change both the scripts to the same type and it will work

1 comment

0

^ Yup. This is a working solution.

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