local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function()
	if player:WaitForChild("SETTINGS").TITTLE.Value == 0 then
		script.Parent.Parent.Parent.EQUIP.Visible = true
		script.Parent.Parent.Parent.EQUIP.TextLabel.Text = "Basic"
	elseif player:WaitForChild("SETTINGS").TITTLE.Value == 1 then
		script.Parent.Parent.Parent.EQUIP.Visible = true
		script.Parent.Parent.Parent.EQUIP.equip.Visible = false
		script.Parent.Parent.Parent.EQUIP.unequip.Visible = true
		script.Parent.Parent.Parent.EQUIP.TextLabel.Text = "Basic"
	end
end)

1 comment

0

If this is NOT a local script you can't use game.players.localplayer (just incase that's the problem..)